Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 not running
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
horus
n00b
n00b


Joined: 09 Mar 2004
Posts: 64
Location: /dev/null

PostPosted: Wed Feb 23, 2005 8:34 pm    Post subject: Apache2 not running Reply with quote

Hi

After starting apache by typing "apache2 -k start" my server doesnt respond any errors.
Config Check is successfull
Code:

#apache2 -t
Syntax OK


but it doesnt seem like its running!
I always get a connection refused when connecting to port 80.
nmap also doesnt see this port opened.
I didnt change the standard port.

Code:
serviserv conf # pstree | grep apache
serviserv conf # pstree | grep httpd
serviserv conf #

i think its not running...

But... why?

Greetz & thx
horusab
_________________
Acer Aspire 1501LMi
AMD64 3000+
60GB Ultra ATA/100 HDD
512MB DDR SDRAM
IEEE 802.11g
10/100/1000MB Ethernet


Last edited by horus on Wed Feb 23, 2005 8:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
horus
n00b
n00b


Joined: 09 Mar 2004
Posts: 64
Location: /dev/null

PostPosted: Wed Feb 23, 2005 8:38 pm    Post subject: Reply with quote

Sorry, forgot to give some more information :)

System:
Gentoo 2004.3 i386
development-sources 2.6.10-r1
Intel P3, 600MHz
128MB RAM

Apache
apache-2.0.52-r1
mod_php-4.3.10

Greetz & Thx
horusab
_________________
Acer Aspire 1501LMi
AMD64 3000+
60GB Ultra ATA/100 HDD
512MB DDR SDRAM
IEEE 802.11g
10/100/1000MB Ethernet
Back to top
View user's profile Send private message
lookinin
Guru
Guru


Joined: 21 Jan 2005
Posts: 486

PostPosted: Wed Feb 23, 2005 8:40 pm    Post subject: Reply with quote

not sure what's going on - but try it like this:

Code:
# /etc/init.d/apache start


and assuming that works:

Code:
# rc-update add apache default


If it still doesn't work, check out your logs in /var/log/apache2 and post any errors you see
Back to top
View user's profile Send private message
horus
n00b
n00b


Joined: 09 Mar 2004
Posts: 64
Location: /dev/null

PostPosted: Wed Feb 23, 2005 8:47 pm    Post subject: Reply with quote

Hi

Thanks for your fast answer.

Code:

serviserv conf # /etc/init.d/apache start
-/bin/bash: /etc/init.d/apache: No such file or directory
serviserv conf # /etc/init.d/apache2 start
 * Starting mysqld...                                                     [ ok ]
 * Starting apache2...                                                    [ !! ]

serviserv conf # nmap localhost

Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-02-23 17:40 UTC
Interesting ports on localhost (127.0.0.1):
(The 1660 ports scanned but not shown below are in state: closed)
PORT    STATE SERVICE
22/tcp  open  ssh
139/tcp open  netbios-ssn
445/tcp open  microsoft-ds

Nmap run completed -- 1 IP address (1 host up) scanned in 0.335 seconds
serviserv conf #


nano logs/error_log:
Code:

(....)
[Wed Feb 23 17:39:23 2005] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "serviserv"
Configuration Failed



Greetz & thx
horus
_________________
Acer Aspire 1501LMi
AMD64 3000+
60GB Ultra ATA/100 HDD
512MB DDR SDRAM
IEEE 802.11g
10/100/1000MB Ethernet
Back to top
View user's profile Send private message
lookinin
Guru
Guru


Joined: 21 Jan 2005
Posts: 486

PostPosted: Wed Feb 23, 2005 8:51 pm    Post subject: Reply with quote

Quote:
serviserv conf # /etc/init.d/apache start
-/bin/bash: /etc/init.d/apache: No such file or directory


Sorry, was going from memory...

Quote:
There are no logs in /var/log looking like WWW or apache.


My logs are in /var/log/apache2/error_log. Is it possible you changed your configuration and it's putting logs somewhere else?
Back to top
View user's profile Send private message
horus
n00b
n00b


Joined: 09 Mar 2004
Posts: 64
Location: /dev/null

PostPosted: Wed Feb 23, 2005 8:53 pm    Post subject: Reply with quote

Hi

It works now.

I commented
Code:
LoadModule unique_id_module              modules/mod_unique_id.so
out :)

Thx 4 your help.

Greetz
horus
_________________
Acer Aspire 1501LMi
AMD64 3000+
60GB Ultra ATA/100 HDD
512MB DDR SDRAM
IEEE 802.11g
10/100/1000MB Ethernet
Back to top
View user's profile Send private message
lookinin
Guru
Guru


Joined: 21 Jan 2005
Posts: 486

PostPosted: Wed Feb 23, 2005 8:55 pm    Post subject: Reply with quote

yw :) Glad you got it going! Please insert [solved] into the title of your first post
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