Hi All
I hope I can get some help here. I have just upgraded my two computers here from PCLOS 2012.07 to PCLOS 2013.02. One of them seems fine but I have a problem with the other.
I have a MySQL Database with LibreOffice Base as the Front End. However when I set-up the MySQL, MyAdmin and associated programs I hit a problem with httpd. When I install it I get the error message ...
"Warning: network-up is needed by httpd in runlevel 4"
And as a result I'm unable to set httpd the 'Run at Boot' and 'Start'.
I'm told that this is something to do with the Network not starting early enough in the Boot Cycle.
Can anyone help me out with this please??
Many thanks.
Open a console window and type in
chkconfig --list <press return/enter>
find the line starting with httpd and post that line.
Example:
[dwmoar@laptop dwmoar]$ chkconfig --list
acpid 0:off 1:off 2:off 3:on 4:on 5:on 6:off 7:on
alsa 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
apmd 0:off 1:off 2:on 3:on 4:on 5:on 6:off 7:off
apmiser 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
apt 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off 7:off
avahi-daemon 0:off 1:off 2:off 3:on 4:off 5:on 6:off 7:off
bpalogin 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
coherence 0:off 1:off 2:off 3:on 4:on 5:on 6:off 7:off
cpufreq 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off 7:off
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off 7:off
denyhosts 0:off 1:off 2:off 3:on 4:on 5:on 6:off 7:off
dm 0:off 1:off 2:on 3:off 4:on 5:on 6:off 7:on
haldaemon 0:off 1:off 2:on 3:on 4:on 5:on 6:off 7:on
hddtemp 0:off 1:off 2:on 3:on 4:on 5:on 6:off 7:off
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:offibod 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
To change it, open a console window as root enter the following command
chkconfig --level 2345 httpd on <press return/enter>
You should see the following
[root@laptop dwmoar]# chkconfig --level 2345 httpd on
Warning: network-up is needed by httpd in runlevel 4
Warning: network-up is needed by httpd in runlevel 4
Warning: network-up is needed by httpd in runlevel 4
Warning: network-up is needed by httpd in runlevel 4
Ignore these warnings
Again enter chkconfig --list <press enter/return>
Look for the httpd line. It should now look like this
httpd 0:off 1:off
2:on 3:on 4:on 5:on 6:off 7:off
Enter the following command
service xinetd restart <press return/enter>
You should see this
[root@laptop dwmoar]# service xinetd restart
Stopping xinetd
[ OK ]Starting xinetd
[ OK ][root@laptop dwmoar]#
Now enter the following
service httpd start <press enter/return>
You should see this
[root@laptop dwmoar]# service httpd start
Starting httpd:
[ OK ][root@laptop dwmoar]#
If you see this
[root@laptop dwmoar]# service httpd start
apache is already running.
[root@laptop dwmoar]#
then use the command service httpd restart instead
Your web erver is now running and it is set to start upon booting.