LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache wont start (https://www.linuxquestions.org/questions/linux-software-2/apache-wont-start-325602/)

stlyz3 05-21-2005 03:57 AM

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?

david_ross 05-21-2005 08:42 AM

Is apache running?
ps -ef | grep httpd

stlyz3 05-23-2005 10:38 AM

When run, it says that apache isnt running. Is there something else I can try?

david_ross 05-23-2005 01:09 PM

What do you get from:
ps -ef | grep httpd

What errors show up in the apache error_log file?

stlyz3 05-26-2005 01:34 PM

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.

david_ross 05-26-2005 01:37 PM

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.

stlyz3 05-26-2005 01:51 PM

Can you please tell me what an FQDN is? I dont know exactly.

Thanks for helping me through this process!

david_ross 05-26-2005 01:55 PM

You said it yourself earlier ;)
FQDN=Fully Qualified Domain Name

stlyz3 05-26-2005 02:06 PM

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

?

david_ross 05-26-2005 02:10 PM

Yes. Then set this in httpd.conf:
ServerName iprats.com

stlyz3 05-26-2005 02:15 PM

Wonderful! That works!!
Thanks alot for your help with this!!

stlyz3 05-27-2005 05:34 PM

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?

david_ross 05-28-2005 09:07 AM

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?

stlyz3 05-29-2005 04:08 PM

Where is the apache error log located?

david_ross 05-30-2005 01:25 PM

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.