You are not logged in.
Hi all
I have an issue with apache, it does not start after a reboot.
I installed apache, customized httpd.conf and then start it and it was fine.
Shut it down, then booted it up the following afternoon and httpd failed to start so I thought well, I'll just try the default config I guess.
That didn't work either. So I checked for updates, of which there were none, and then reinstalled apache.
It worked after that. So leaving everything as it was upon reinstallation, I rebooted and it has failed again.
I would have checked /var/log/httpd except I have another problem: There are none? I tried setting httpd.conf to debug level as well and that has shown nothing.
If anybody has any idea on what is causing the problem please let me know.. ![]()
Last edited by slipper (2009-05-29 14:02:27)
Offline
Is httpd listed in your rc.conf startup (DAEMONS) line?
Last edited by ckristi (2009-05-29 11:50:48)
In love I believe and in Linux I trust
Offline
Is httpd listed in your rc.conf startup (DAEMONS) line?
Nope. Only daemons in there are: network, iptables, dnsmasq, sshd, openntpd
Offline
Well.. if you want to start httpd at boot-time, you should add it to that list.
In love I believe and in Linux I trust
Offline
Well.. if you want to start httpd at boot-time, you should add it to that list.
I plan to, once I get it working ![]()
Offline
run a
httpd -tto check the syntac of the config file.
*edit*
to be sure, you're saying that it will start properly after install but refuses to start after a reboot. You do not have in in rc.conf so I'm assuming you're attempting to start it with /etc/rc.d/httpd start after the reboot?
Last edited by stefanwilkens (2009-05-29 13:08:59)
Arch i686 on Phenom X4 | GTX760
Offline
run a
*edit*to be sure, you're saying that it will start properly after install but refuses to start after a reboot. You do not have in in rc.conf so I'm assuming you're attempting to start it with /etc/rc.d/httpd start after the reboot?
Yes, of course ![]()
Thanks for showing me that httpd -t command.. would have helped a lot before.
It returns as 'Syntax OK', so the httpd.conf is fine.
Offline
rc.d/httpd just calls
/usr/sbin/apachectl startbut sends errors to /dev/null
run that code directly and check for output when it fails, there's probably a verbose or debug option you can pass as well.
//github/
Offline
rc.d/httpd just calls
/usr/sbin/apachectl startbut sends errors to /dev/null
run that code directly and check for output when it fails, there's probably a verbose or debug option you can pass as well.
Thankyou! ![]()
It returned:
(2)No such file or directory: httpd: could not open error log file /var/log/httpd/error_log.
Unable to open logs
By default my logfiles were in /var/log/httpd
There was no /httpd dir...
mkdir /var/log/httpd fixed both of my problems... Thanks ![]()
Offline