Apache wont start
Im running Fedora Core 3 on my webserver. This is on a fresh install. Ran apachectl configtest and everything is fine. I ran apachectl start and no errors. I run apachectl stop i get:
httpd (no pid file) not running When /etc/init.d/httpd start is ran i get httpd: (FAILED) is there some way of getting apache to start correctly? |
Is apache running?
ps -ef | grep httpd |
When run, it says that apache isnt running. Is there something else I can try?
|
What do you get from:
ps -ef | grep httpd What errors show up in the apache error_log file? |
It give me:
root 3319 1 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start apache 3320 3319 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start apache 3321 3319 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start apache 3322 3319 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start apache 3323 3319 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start apache 3324 3319 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start apache 3325 3319 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start apache 3326 3319 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start apache 3327 3319 0 13:48 ? 00:00:00 /usr/sbin/httpd -k start root 3330 2800 0 13:48 tty1 grep httpd I dont know what that really means. When I run apachectl start it tells me that it can find the servers fully qualified domain name so its using localhost.localdomain. |
That means apache is running.
If you have a FQDN then specify it in your hosts file and in httpd.conf otherwise it should run fine anyway. |
Can you please tell me what an FQDN is? I dont know exactly.
Thanks for helping me through this process! |
You said it yourself earlier ;)
FQDN=Fully Qualified Domain Name |
So would I add a line for one of the ip addresses that i have in the hosts file? Lets say
192.168.2.200 iprats.com ? |
Yes. Then set this in httpd.conf:
ServerName iprats.com |
Wonderful! That works!!
Thanks alot for your help with this!! |
With that said, I now have a new problem and it is with SSL and apache. Mod_ssl is installed. The problem that i have been running into with the problem earlier is that if I turn off encryption using Webmin on the virtual domain, then everything works fine without a ServerName present in httpd.conf. If I turn it on and restart apache, then apache wont start. If I put in a domain name in httpd.conf then it simply says httpd:failed.
When I setup a domain using virtualmin in Webmin, it says that SSL Enable is turned not available. do you know of what I can do to get https:// enabled on the site and still have apache run smoothly? |
I have no idea what webmin is doing when you are changing these options.
Do you get any errors in your apache error_log file? |
Where is the apache error log located?
|
It depends on your configuration. /var/log/httpd is a fairly standard location.
|
All times are GMT -5. The time now is 09:07 PM. |