httpd autostart problem.
hi there
i got an apache server running on my Fedora and it works fine. /etc/init.d/httpd start gets the server up as it should but autostart wont work... Code:
[root@fedora mephisto]# chkconfig --list httpd someone got an idea whats wrong? thx for your help edit: i run level 5! |
Check that you actually have links in /etc/rc.d/rc2.d/S85httpd etc. Please post the output from this command (run as root):-
Code:
find /etc/rc.d -name "*httpd" -print |
Code:
[root@fedora mephisto]# find /etc/rc.d -name "*httpd" -print |
That looks fine. When the machine boots, do you see it attempting to start HTTP and it fails, or does it not appear on screen at all? (Need to go out for an hour or so soon, so might not be able to reply immediately to your answer :) )
|
i just found this in the boot.log
Code:
Starting httpd: [Mon Mar 29 11:57:37 2010] [warn] module fcgid_module is already loaded, skipping |
Have you modified your etc/httpd/conf/httpd.conf file, or is it standard? Specifically, what does the "Listen" entry look like?
Not sure why it would start manually but not at boot time - at least it's trying though. |
yes i have modified the httpd.conf becouse i run FastCGI and suExec
|
So I guess the next obvious question is what happens when you use a default configuration?
|
i forgot to backup the default... somone got it for me?
|
Perhaps save your current config files, remove httpd, and reinstall it.
|
Quote:
If it is, then apache tries to start before the network comes up. |
@blacky_5251: can i just remove httpd and then reinstall it and it will work again if i copy my config back to it?
@bathory: yes i'm shure! otherwhise the server wouldn't start up manualy. after apache only 2 services start up... atd and cron -------------------------------- edit: just found somthing out... the server starts only if i'm logged in as root if i start apache as local user: [Code] [mephisto@fedora conf]$ /etc/init.d/httpd start Starting httpd: [Mon Mar 29 12:08:45 2010] [warn] module fcgid_module is already loaded, skipping Warning: SuexecUserGroup directive requires SUEXEC wrapper. Warning: SuexecUserGroup directive requires SUEXEC wrapper. (13)Permission denied: make_sock: could not bind to address 10.1.1.66:80 no listening sockets available, shutting down Unable to open logs [FAILED] [Code] the user apache runs as is "apache" |
Quote:
Could be a SELinux problem. Try to disable it and see if it works. |
Quote:
|
You can delete the httpd service from chkconfig and use /etc/rc.d/rc.local to start apache (rc.local executes after all the other startup scripts).
Just add: Code:
/usr/sbin/apachectl start |
All times are GMT -5. The time now is 04:30 PM. |