View previous topic :: View next topic |
Author |
Message |
kevintshaver n00b
Joined: 14 Feb 2006 Posts: 49
|
Posted: Thu Aug 28, 2008 4:11 am Post subject: apache listening sockets problem [solved] |
|
|
I'm having a difficult time getting apache working. Here is the problem:
Code: | server ~ # /etc/init.d/apache2 start
* Caching service dependencies ... [ ok ]
* Starting apache2 ... [ !! ]
server ~ # apache2
no listening sockets available, shutting down
Unable to open logs |
I've installed apache tons of times previously without problem. I've looked through httpd.conf to make sure there is no "Listen 80" directive. The only "Listen 80" is in /etc/apache/vhosts.d/00_default_vhost.conf. There is a "Listen 443" directive in 00_default_ssl_vhost.conf but I think that's OK and editing it out doesn't fix my problem anyway. I've tried adding the Listen 80 directive to httpd.conf instead of the 00_default_vhost.conf file. I've tried both apache 2.2.8 and 2.2.9.
Also:
Code: | server vhosts.d # netstat -nat | grep LIST | grep 80
server vhosts.d # |
Any ideas?
Last edited by kevintshaver on Fri Aug 29, 2008 4:31 pm; edited 1 time in total |
|
Back to top |
|
|
elgato319 Guru
Joined: 15 Sep 2005 Posts: 546
|
Posted: Thu Aug 28, 2008 9:07 am Post subject: |
|
|
How about trying to fix the error message?
Code: |
Unable to open logs
|
Please post some lines from /var/log/apache2/error_log
"Listen 80" should stay in /etc/apache/vhosts.d/00_default_vhost.conf
It's fine the way it is. |
|
Back to top |
|
|
kevintshaver n00b
Joined: 14 Feb 2006 Posts: 49
|
Posted: Fri Aug 29, 2008 4:30 pm Post subject: |
|
|
Thanks elgato319! I got it working. Here's how:
The error log said:
Code: | [Thu Aug 14 23:00:03 2008] [crit] (38)Function not implemented: mod_rewrite: could not create rewrite_log_lock
Configuration Failed |
There is another forum post helping out with this:
https://forums.gentoo.org/viewtopic-t-399310.html
The quick summary is that you need to enable System V IPC in the kernel (no idea why it was disabled).
Code: | cd /usr/src/linux
make menuconfig
General Setup -->
[*] System V IPC |
|
|
Back to top |
|
|
|