Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache Loggin problems
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
MrMullen
n00b
n00b


Joined: 24 Jan 2003
Posts: 27

PostPosted: Wed Nov 19, 2003 11:33 pm    Post subject: Apache Loggin problems Reply with quote

I am running Apache 2.0.28 on a up to date gentoo system. I am trying to get Apache working, but am having problems. I have Apache installed with mod_perl and a fairly standard apache2.conf (Nothing special, really). However, when I run /etc/init.d/apache2 start I get this:

* Starting apache2...
no listening sockets available, shutting down
Unable to open logs


Anyone have any ideas? The log directory is owned by apache. I have bunch of virtual hosts, but for now I am just dumping the logs into a single place ("LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost" and "CustomLog /var/log/apache2/access_log vhost")

Nothing is listening on port 80.

Also forgot to add, how do I turn on FULL loging so I know exactly what Apache is trying to do. I mean real full debugging logging to the terminal.
Thanks
Back to top
View user's profile Send private message
hadfield
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 308
Location: Vancouver, BC, Canada

PostPosted: Thu Nov 20, 2003 12:18 am    Post subject: Reply with quote

Who are you trying to run the apache2 script as? You need to run it as root. It almost seems to me as if you're trying to run it as the apache user and it can't open a socket. Only root can open sockets below than 1024.

For the logging, perhaps this will help:
http://httpd.apache.org/docs-2.0/logs.html

Try increasing your LogLevel in apache2.conf
Back to top
View user's profile Send private message
MrMullen
n00b
n00b


Joined: 24 Jan 2003
Posts: 27

PostPosted: Thu Nov 20, 2003 5:42 pm    Post subject: Apache logging Reply with quote

I am starting it as root and running /etc/init.d/apache2.

I'll check out increasing the logging level. The problem I have that I don't know what it is doing. For example, if you have a problem with sshd, you can start it like "/usr/sbin/sshd -d -d -d" and you know _exactly_ what the sshd is doing and why it fails. I need the same for apache2.
Back to top
View user's profile Send private message
hadfield
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 308
Location: Vancouver, BC, Canada

PostPosted: Thu Nov 20, 2003 7:37 pm    Post subject: Reply with quote

Well I'm not sure if this will give you any better output, but you could try:
/usr/sbin/apache2ctl

I think there is a /usr/sbin/apache2 command as well.
Back to top
View user's profile Send private message
MrMullen
n00b
n00b


Joined: 24 Jan 2003
Posts: 27

PostPosted: Fri Nov 21, 2003 9:31 pm    Post subject: Follow up Reply with quote

Thanks for the help, but I rolled back to 1.3.x and it worked right away. I did not even change the config files in anyway.

Really weird.
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