Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 2 will not start. (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
retsam
n00b
n00b


Joined: 16 Jul 2004
Posts: 5

PostPosted: Fri Jul 16, 2004 9:08 pm    Post subject: Apache 2 will not start. (solved) Reply with quote

When I try to start Apache 2, it fails, but I cannot find any sort of reason for this at all.
Code:
integral root # /etc/init.d/apache2 start
 * Starting apache2...                        [ !! ]

integral root #

The server definitely is not running, and there is nothing about this in /var/log/messages or /var/log/apache2/error_log. Everything appears to be (and should be) fine, since I have not touched configuration except for setting ServerName to integral.lan, but the server will not start up if i change it to other things (such as localhost).
Code:
integral apache2 # apache2ctl configtest
Syntax OK
integral apache2 #

I even tried unmerging and remerging Apache (which included rewriting all of the configuration files), but that did not help. Is there any place else I can look for clues on why Apache will not start?
Code:
integral conf # apache2 -v
Server version: Apache/2.0.50
Server built:   Jul 16 2004 10:59:35
integral conf #


Last edited by retsam on Fri Jul 16, 2004 11:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
clar77
Apprentice
Apprentice


Joined: 02 Feb 2004
Posts: 210
Location: Charm City, MD

PostPosted: Fri Jul 16, 2004 9:13 pm    Post subject: Reply with quote

have you tried a straight:

apache2ctrl start

?

are there any error messages in /var/log/apache2/ ?
_________________
Pointless screenshots
My dogs :)
Back to top
View user's profile Send private message
retsam
n00b
n00b


Joined: 16 Jul 2004
Posts: 5

PostPosted: Fri Jul 16, 2004 9:20 pm    Post subject: Reply with quote

"apache2ctl start" does not return anything, and there server does not start. And there are not any error messages in /var/log/apache2.
Back to top
View user's profile Send private message
retsam
n00b
n00b


Joined: 16 Jul 2004
Posts: 5

PostPosted: Fri Jul 16, 2004 11:28 pm    Post subject: Reply with quote

How odd. I got it working by adding "127.0.0.1 integral" to /etc/hosts.
Back to top
View user's profile Send private message
azrail
n00b
n00b


Joined: 22 Nov 2003
Posts: 37
Location: Rochester, NY, USA

PostPosted: Sat Jul 17, 2004 1:11 am    Post subject: Reply with quote

That would do it. Apache checks to see if there is a :
Code:

x.x.x.x    your_hostname.domain_name.root    your_hostname

line in /etc/hosts

using the loopback is not always the best idea, i would add a line after getting your ip addr, ifconfig,
Code:

192.168.0.5   integral.net  integral
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum