Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-21-2005, 03:57 AM
|
#1
|
Member
Registered: Mar 2005
Posts: 54
Rep:
|
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?
|
|
|
05-21-2005, 08:42 AM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Is apache running?
ps -ef | grep httpd
|
|
|
05-23-2005, 10:38 AM
|
#3
|
Member
Registered: Mar 2005
Posts: 54
Original Poster
Rep:
|
When run, it says that apache isnt running. Is there something else I can try?
|
|
|
05-23-2005, 01:09 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
What do you get from:
ps -ef | grep httpd
What errors show up in the apache error_log file?
|
|
|
05-26-2005, 01:34 PM
|
#5
|
Member
Registered: Mar 2005
Posts: 54
Original Poster
Rep:
|
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.
|
|
|
05-26-2005, 01:37 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
05-26-2005, 01:51 PM
|
#7
|
Member
Registered: Mar 2005
Posts: 54
Original Poster
Rep:
|
Can you please tell me what an FQDN is? I dont know exactly.
Thanks for helping me through this process!
|
|
|
05-26-2005, 01:55 PM
|
#8
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You said it yourself earlier 
FQDN=Fully Qualified Domain Name
|
|
|
05-26-2005, 02:06 PM
|
#9
|
Member
Registered: Mar 2005
Posts: 54
Original Poster
Rep:
|
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
?
|
|
|
05-26-2005, 02:10 PM
|
#10
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Yes. Then set this in httpd.conf:
ServerName iprats.com
|
|
|
05-26-2005, 02:15 PM
|
#11
|
Member
Registered: Mar 2005
Posts: 54
Original Poster
Rep:
|
Wonderful! That works!!
Thanks alot for your help with this!!
|
|
|
05-27-2005, 05:34 PM
|
#12
|
Member
Registered: Mar 2005
Posts: 54
Original Poster
Rep:
|
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?
|
|
|
05-28-2005, 09:07 AM
|
#13
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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?
|
|
|
05-29-2005, 04:08 PM
|
#14
|
Member
Registered: Mar 2005
Posts: 54
Original Poster
Rep:
|
Where is the apache error log located?
|
|
|
05-30-2005, 01:25 PM
|
#15
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
It depends on your configuration. /var/log/httpd is a fairly standard location.
|
|
|
All times are GMT -5. The time now is 11:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|