HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Installing A LAMP System With Fedora Core 6 (http://www.howtoforge.com/forums/showthread.php?t=8331)

Linocks 20th November 2006 04:53

Installing A LAMP System With Fedora Core 6
 
Hello,

I am in the process of installing a LAMP System with FC6 as per the 'Howto' at http://howtoforge.org/installing_a_l..._fedora_core_6. Everything was going well until I got to the section marked "6 Install Some Software" at http://howtoforge.org/installing_a_l...dora_core_6_p3.

Having entered the below command : -
Code:

yum install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp
I get the error message as shown below : -
Code:

ileutils ncftp
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retreive mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=core-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution').
Error; Cannot find a valid baseurl for repo: core

I think the problem is that I have no internet connection.

My network is set up as follows : -

I connect to the Internet via Cable Modem. This Cable Modem feeds into a SmoothWall Box which has 3x NICs : -
  1. NIC 1 = Red (accepts connection from the Internet - IP Address assigned via DHCP from ISP).
  2. NIC 2 = Orange (Is the DMZ and feeds into the Server - Static IP Address 10.10.0.1).
  3. NIC 3 = Green(Feeds a Wireless Router which in turn feeds the LAN IP Address IP Address 10.10.0.20 - assigned via DHCP).

The addreses on the LAN are all assigned via a DHCP running on the Wireless Router and are on a different subnet.

I used to have a working Apache Web Server using this set up before. Can anyone tell me what went wrong:confused: ? All I did was remove the HDD and place a new one in the machine for this exercise.

I have also used the folloing settings for the server.
IP Address = 10.10.0.10
Subnet = 255.255.255.0
Gateway = 10.10.0.1 (the IP address for the Orange NIC in the SmoothWall Box)
Broadcast = 10.10.0.255
Primary DNS = 194.168.4.100
Secondary DNS = 194.168.8.100
The DNS Servers are those belonging to my ISP.
The Server is connected to the Orange interface of the Smoothwall box via a 'Cross-over' cable.

falko 21st November 2006 15:44

Quote:

Originally Posted by Linocks
Hello,

I am in the process of installing a LAMP System with FC6 as per the 'Howto' at http://howtoforge.org/installing_a_l..._fedora_core_6. Everything was going well until I got to the section marked "6 Install Some Software" at http://howtoforge.org/installing_a_l...dora_core_6_p3.

Having entered the below command : -
Code:

yum install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp
I get the error message as shown below : -
Code:

ileutils ncftp
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retreive mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=core-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution').
Error; Cannot find a valid baseurl for repo: core


Did you try more than once? Sometimes yum behaves like this, then you must somply try again.

What's the output of
Code:

ifconfig
and
Code:

ping -c4 google.com
and
Code:

dig google.com
?

Did you disable SELinux and the Fedora firewall?

Linocks 22nd November 2006 02:00

Installing A LAMP System With Fedora Core 6
 
It was my internet connection but now I have sorted that I get the below message : -

Code:

[root@web ~]# yum install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                      100% |=========================| 1.1 kB    00:00
updates                  100% |=========================| 1.2 kB    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 205 kB    00:00
http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/core/updates/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from updates: [Errno 256] No more mirrors to try.
[root@web ~]#

So what now?:confused:

falko 22nd November 2006 17:53

Please run yum again.

What's the output of
Code:

ls -l /etc/yum.repos
?

Linocks 22nd November 2006 23:48

Installing A LAMP System With Fedora Core 6
 
Quote:

Please run yum again.

What's the output of
Code:

ls -l /etc/yum.repos

?
The results are below : -

Code:

[root@web ~]# yum install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                      100% |=========================| 1.1 kB    00:00
updates                  100% |=========================| 1.2 kB    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 211 kB    00:00
################################################## 680/680
primary.xml.gz            100% |=========================| 1.4 MB    00:06
http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from extras: [Errno 256] No more mirrors to try.
You have new mail in /var/spool/mail/root
[root@web ~]# less /var/spool/mail/root
[root@web ~]# ls =l /etc/yum.repos
ls: =l: No such file or directory
ls: /etc/yum.repos: No such file or directory
[root@web ~]# ls =l /etc/yum.repos.d/
ls: =l: No such file or directory
/etc/yum.repos.d/:
fedora-core.repo                fedora-legacy.repo
fedora-development.repo        fedora-updates.repo
fedora-extras-development.repo  fedora-updates-testing.repo
fedora-extras.repo
[root@web ~]#

Sorry - Different output below : -
Code:

[root@web yum.repos.d]# ls -l
total 56
-rw-r--r-- 1 root root 1054 Oct 15 19:07 fedora-core.repo
-rw-r--r-- 1 root root 1750 Oct 15 19:07 fedora-development.repo
-rw-r--r-- 1 root root 1490 Oct 15 19:07 fedora-extras-development.repo
-rw-r--r-- 1 root root  981 Oct 15 19:07 fedora-extras.repo
-rw-r--r-- 1 root root  517 Oct 15 19:07 fedora-legacy.repo
-rw-r--r-- 1 root root 1039 Oct 15 19:07 fedora-updates.repo
-rw-r--r-- 1 root root 1112 Oct 15 19:07 fedora-updates-testing.repo
[root@web yum.repos.d]#


falko 23rd November 2006 18:05

What's in /etc/yum.repos/fedora-extras.repo?

Linocks 24th November 2006 14:59

Installing a LAMP System With Fedora Core 6
 
Quote:

What's in /etc/yum.repos/fedora-extras.repo?
See contents below : -
Code:

[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$
basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-$releasever&a
rch=$basearch
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-debuginfo]
name=Fedora Extras $releasever - $basearch - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$
basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-debug-$releas
ever&arch=$basearch
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-source]
name=Fedora Extras $releasever - Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/S
RPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-source-$relea
sever&arch=$basearch
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
(END)


falko 25th November 2006 15:05

Please set gpgcheck to 0 in all three lines in the file and run yum again.

Linocks 26th November 2006 14:19

Installing A LAMP System With Fedora Core 6 - Page 4
 
Quote:

Please set gpgcheck to 0 in all three lines in the file and run yum again.
That worked & I was able to download the appropriate programs. Thanks! But why did I have to edit that file? It's not in your instructions! :confused:

Then I went on to the next stage and got the below result : -

Code:

[root@web /]# yum install quota
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                      100% |=========================| 1.1 kB    00:00
updates                  100% |=========================| 1.2 kB    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do

So I figured I must have already installed it and moved on : -

Code:

[root@web /]# mount -o remount /
mount: / not mounted already, or bad option
[root@web /]# quotacheck -avugm
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
[root@web /]#

Things definitely not going to plan. It seems to work for others, why not me? I know! I must've overlooked something again. :o

Linocks 27th November 2006 14:12

Installing A LAMP System With Fedora Core 6 - Page 4
 
Falko,

I retraced my steps & found an error. I did not edit a file properly (at Installing A LAMP System With Fedora Core 6 - Page 3). :o

Code:

vi /etc/fstab
I have now rectified that issue and another has arisen. I think this is a good time to re-check everything instead of continuing to hound you with other issues so what I intend to do is to start over again. :eek:

Thanks for all your help. I have no doubt that I will be calling upon you again in the future.

Keep up the good work!

Thanks again for all your help!


All times are GMT +2. The time now is 22:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.