LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   service httpd fails (https://www.linuxquestions.org/questions/linux-software-2/service-httpd-fails-460329/)

Red Squirrel 07-02-2006 01:39 PM

service httpd fails
 
I'm using FC5 and when I try to start httpd it fails, but if I type it, it works, and if it fails, it actually tells my why, unlike when I try to start it with service.

How can I make it work with service? I want it to start on it's own at system startup.

btmiller 07-02-2006 02:42 PM

Look at the /etc/init.d/httpd script and figure out exactly what command line options it is using with httpd. if it starts fine by hand then chances are that one of the pre-set options is the problem. You should also check the /var/log/httpd/error_log file to see if anythinh is reported there.

marozsas 07-02-2006 02:53 PM

From the Fedora Core 5 Linux Installation Notes:
Quote:

Originally Posted by http://stanton-finley.net/fedora_core_5_installation_notes.html
Go to "System" > "Administration" > "Security Level and Firewall". Provide your root password, click "ok" and on the "Firewall Options" tab make sure the check boxes next to "WWW (HTTP)" and "Secure WWW (HTTPS) are ticked. On the "SELinux" tab click the arrow on the left of "Modify SELinux Policy" and under (expanded) "HTTPD Service" make sure all the checkboxes are ticked except "Disable SELinux protection for httpd daemon" and "Disable SELinux protection for http suexec". (Please see http://fedora.redhat.com/docs/selinux-faq-fc5/ for important SELinux considerations.) Click "ok". Reboot your machine to enable the new SELinux settings.


Red Squirrel 07-02-2006 03:22 PM

I did not install a GUI... so am I screwed? I'll look at those scripts though to see if there's anything obvious in there. And nothing was being produced in the error log (which suprisingly exists, since FC5 seems to lack logging of lot of stuff)


All times are GMT -5. The time now is 09:16 PM.