View previous topic :: View next topic |
Author |
Message |
MrMullen n00b
Joined: 24 Jan 2003 Posts: 27
|
Posted: Wed Nov 19, 2003 11:33 pm Post subject: Apache Loggin problems |
|
|
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 |
|
|
hadfield Retired Dev
Joined: 18 Mar 2003 Posts: 308 Location: Vancouver, BC, Canada
|
Posted: Thu Nov 20, 2003 12:18 am Post subject: |
|
|
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 |
|
|
MrMullen n00b
Joined: 24 Jan 2003 Posts: 27
|
Posted: Thu Nov 20, 2003 5:42 pm Post subject: Apache logging |
|
|
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 |
|
|
hadfield Retired Dev
Joined: 18 Mar 2003 Posts: 308 Location: Vancouver, BC, Canada
|
Posted: Thu Nov 20, 2003 7:37 pm Post subject: |
|
|
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 |
|
|
MrMullen n00b
Joined: 24 Jan 2003 Posts: 27
|
Posted: Fri Nov 21, 2003 9:31 pm Post subject: Follow up |
|
|
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 |
|
|
|