Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I seem to have some problems installing mod_python with apache.

./configure --prefix=/usr/local/apache2
make install
/usr/local/apache2/bin/apachectl start

On the final line, I seem to get this error.

(13)Permission denied: make_sock: could not bind to address
no listening sockets available, shutting down
Unable to open logs

Actually there are two errors. I think we could get rid of make_sock by committing out the listen port is. However I do not know what the hell when it means no listening socket available means

share|improve this question

Forgive the stupid questions, but (a) you are doing this as root, yes, and (b) apache had previously been shut down, yes? If either of those two wasn't true, that error would be expected.

share|improve this answer
Both of these are true. Acutally I changed the port name in httpd.conf file. That somehow shut it up. However I still get Syntax error on line 3 of /etc/apache2/httpd.conf: Invalid command 'PythonHandler', perhaps misspelled or defined by a module not included in the server configuration. I wonder where my file is. I still do not see in in /usr/local/apache2/modules/. It is not even in /usr/lib/apache2/modules. How is even created? – user59537 Nov 8 '10 at 13:46
Which distro are you running? – MadHatter Nov 8 '10 at 15:01

You could try running

netstat -apnt | grep :80

To see if something else is running on port 80. Also, check your log location is writable by the web server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.