The httpd cannot be started after reboot
I've installed the Apache Httpd Server on RH Linux. In order to start the httpd after the machine rebooted. But it failed.
I also check the /var/log/message but couldn't find any message about httpd. I have start the httpd manually. Now I can find in /var/log/message a message that "httpd started successfully" My /etc/rc.d/init.d/httpd looks as follow. Can someone help? Code:
#!/bin/bash |
Hi,
What does Code:
chkconfig --list httpd |
It returns:
Code:
httpd 0:On 1:Off 2:On 3:On 4:On 5:On 6:Off |
How do you manually start httpd?
What happens if you use: Code:
service httpd stop Quote:
|
I start the httpd as follow:
Code:
service httpd start Code:
Stopping httpd: [ OK ] Code:
Starting httpd: [ OK ] Code:
Stopping httpd: [ OK ] Code:
Starting httpd: [ OK ] The code I attached in my last post is wrong. It should be: Code:
httpd 0:Off 1:Off 2:On 3:On 4:On 5:On 6:Off |
Everything look OK. The service starts/stops successfully
If it still doesn't start on boot, click on "show details" (or something like that) on the splash boot screen and watch the output for errors. |
All times are GMT -5. The time now is 05:26 AM. |