apache2 won't start, no error given
Hi folks,
I'm pretty well versed in using apache, so this is really bugging me. I've googled and searched here. Can't find anything. Using Suse 9.1, and have installed as typical web server (apache2 2.0.49, php4 4.3.4, mysql 4.0.18). Everything seemed to install fine. However, when I do a /etc/init.d/apache2 start, it fails. Further, /var/log/apache2 has 3 files, error and access files are 0 length. rcapache2.out only contains "Syntax OK". Even if I manually enter: /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf (which is the cmdline that is executed from /etc/init.d/apache2), exits with error code 0 and no httpd daemon. Same with apache2ctl. How can I get some diagnostics to see what is wrong? I can't even get an exit code to debug. TIA Mike |
I had a similar situation when my error_log had bloated to over 3 gigs in size. If the logs are of 0 size, id say theres definately something wrong with them. Perhaps try deleting them, and let apache re-create?
|
Did that. Recreates with 0 size. Brand new installation, so it should be straight forward.
|
a possible method to take a closer look to what might fail, would be to monitor 'acctail' while attempting to start apache. Its not standar software, but a helluve nice tool. It monitors all exiting processes and their exit status.
|
Any chance you've got a pid file hanging around that didn't get cleaned up? I've had similar things happen on my servers.....
check /var/run/httpd2.pid If it's there and you're certain (seems so lol) it's not running, delete it and attempt a start... |
To the earlier recommendation to try acctail (great program!):
Code:
root@CRMServer acctail-1.3 # acctail |
Checked. No stale PID file.
|
you could always try strace to see if it gives you any indication of when in the process it's dying....
Code:
strace httpd2-prefork -f /etc/apache2/httpd.conf |
Wow. I learned something today. Here's the tail of strace:
Code:
lstat64("/etc/apache2/conf.d", {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0 |
Nothing telling there, I just compared the trace output to one of my suse box's (default apache install) and got identical output with a fully running process resulting....Appears as thought it's starting, then dying after sucessful start...
Have you made any changes to the default config's? if so, what? I'll think on it some more and post back if anything comes to me ..... |
Any progress?
Howdy All,
Any progress on this problem? We're seeing the same thing with Apache2 on Solaris ... Thanks in advance for any information. Cheers, Ashley. |
Having this issue with ubuntu
Just happened after a reboot!
|
Fixed my error.
OK WTF Happened I dont know but im guessing there was an update the wiped the apache2 exec file and renamed it apache2.1 I removed apache2 and renamed apache2.1 to apache2 and its up again.
|
All times are GMT -5. The time now is 01:35 AM. |