Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I seem to have some problems installing mod_python with apache.

./configure --prefix=/usr/local/apache2
make
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 0.0.0.0:80
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

2 Answers 2

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 mod_python.so file is. I still do not see in in /usr/local/apache2/modules/. It is not even in /usr/lib/apache2/modules. How is mod_python.so 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

 
discard

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