LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-05-2003, 11:42 PM   #1
rob19
Member
 
Registered: Mar 2003
Location: New Zealand
Distribution: Red Hat Linux 8 & 9
Posts: 32

Rep: Reputation: 15
Unhappy Apache httpd won't start


Hi,

I am running RH8 and Apache 2.0.40. The web server (httpd daemon) was running fine but now won't start at all.

I tried the following as root from the shell:
cd /etc/rc.d/init.d
./httpd start

but it came back with
Starting httpd: [FAILED]

I was using the Apache Configuration tool that comes with RH8 which tells me not to manually edit the /etc/httpd/conf/httpd.conf file.

I thought that I would simply stop using the Apache Configuration tool because maybe it is a bit buggy and I would instead resort to manually editing the httpd.conf file for stability reasons. I downloaded the latest version of Apache 2.0.45 but did not install it because I could not uninstall the existing version of Apache. rpm gave a list of dependencies which scared me off.

I am happy to run version 2.0.40 but simply cannot start it. Can anyone please help a newbie out?
 
Old 05-05-2003, 11:48 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Try running:

apachectl configtest

to see if your config file is setup properly. About the gui for apache...yeah I found it buggy as well. Just edit it yourself.
 
Old 05-06-2003, 05:42 AM   #3
rob19
Member
 
Registered: Mar 2003
Location: New Zealand
Distribution: Red Hat Linux 8 & 9
Posts: 32

Original Poster
Rep: Reputation: 15
I just responded but got a browser error so I hope this doesn't come twice.

I tried the apachectl configtest which said Syntax OK.

I then noticed that the log file /var/log/httpd/error_log says it can't find "idmail" which is the old hostname of the server. The server is now named "pop". Where is Apache looking for the hostname? What do I do to properly change the hostname so that Apache (and other programs) are OK? I think I simply edited a file like /etc/hosts which is probably wrong.
 
Old 05-06-2003, 06:10 AM   #4
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
the servername is stored in /etc/sysconfig/network
HOSTNAME=pop
 
Old 05-06-2003, 06:18 AM   #5
rob19
Member
 
Registered: Mar 2003
Location: New Zealand
Distribution: Red Hat Linux 8 & 9
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks iceman. I just found that and changed it. But the article I found said I had to change /etc/hosts, /etc/sysconfig/network and also use the hostname command.

The hostname command I thought should look like this:
hostname -s pop

but I get the error "hostname: Unknown host"

If I type hostname with no arguments it returns "idmail".

Now what do I do?
 
Old 05-06-2003, 06:29 AM   #6
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
My RedHat webserver runs apache too and I only changed /etc/sysconfig/network for the hostname.
When hostname is called without arguments, it displays the hostname as it is at that moment.
Maybe you could try changing the name in /etc/sysconfig/network and restart network services?
service network restart
 
Old 05-06-2003, 10:41 PM   #7
rob19
Member
 
Registered: Mar 2003
Location: New Zealand
Distribution: Red Hat Linux 8 & 9
Posts: 32

Original Poster
Rep: Reputation: 15
Restarting the network service didn't work.

I renamed the /etc/hosts and /etc/sysconfig/network files back to idmail and was then able to start httpd with the /sbin/service httpd start command.

I'm going to be more wary of changing the hostname in future.

Thx to all who helped on this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache httpd start failed on fedora core 1 k_1701 Linux - Software 10 05-05-2006 07:40 AM
Unable to start Apache "Cannot load /etc/httpd/modules/libphp4.so" dagalicous Linux - Software 1 03-10-2005 01:43 AM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
httpd won't start (apache 2.0 newly installed) Who Linux - Software 1 03-28-2003 08:06 AM
Apache problem - httpd won't start. Iced_Falcon Linux - Networking 3 12-22-2001 04:31 PM


All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration