Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache listening sockets problem [solved]
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
kevintshaver
n00b
n00b


Joined: 14 Feb 2006
Posts: 49

PostPosted: Thu Aug 28, 2008 4:11 am    Post subject: apache listening sockets problem [solved] Reply with quote

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
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Thu Aug 28, 2008 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
kevintshaver
n00b
n00b


Joined: 14 Feb 2006
Posts: 49

PostPosted: Fri Aug 29, 2008 4:30 pm    Post subject: Reply with quote

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
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