View previous topic :: View next topic |
Author |
Message |
retsam n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jul 2004 Posts: 5
|
Posted: Fri Jul 16, 2004 9:08 pm Post subject: Apache 2 will not start. (solved) |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
clar77 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/877713948401fe9f139356.jpg)
Joined: 02 Feb 2004 Posts: 210 Location: Charm City, MD
|
Posted: Fri Jul 16, 2004 9:13 pm Post subject: |
|
|
have you tried a straight:
apache2ctrl start
?
are there any error messages in /var/log/apache2/ ? _________________ Pointless screenshots
My dogs :) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
retsam n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jul 2004 Posts: 5
|
Posted: Fri Jul 16, 2004 9:20 pm Post subject: |
|
|
"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 |
|
![](templates/gentoo/images/spacer.gif) |
retsam n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jul 2004 Posts: 5
|
Posted: Fri Jul 16, 2004 11:28 pm Post subject: |
|
|
How odd. I got it working by adding "127.0.0.1 integral" to /etc/hosts. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
azrail n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Nov 2003 Posts: 37 Location: Rochester, NY, USA
|
Posted: Sat Jul 17, 2004 1:11 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|