LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   apache2 no socket (https://www.linuxquestions.org/questions/debian-26/apache2-no-socket-391879/)

rblampain 12-12-2005 07:52 AM

apache2 no socket
 
New to Debian Sarge 3.1 and its Apache2 configuration.
Can anyone help with the problem described below?

lt:/home/rene# /etc/init.d/apache2 stop
Stopping web server: Apache2 ... no pidfile found! not running?.
lt:/home/rene# /etc/init.d/apache2 start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
lt:/home/rene#

Thank you for your help.

uberNUT69 12-12-2005 07:58 AM

Quote:

Originally Posted by rblampain
lt:/home/rene# /etc/init.d/apache2 start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address [::]:80

Looks like you've got something else serving on port 80.
Try this as an example:
Code:

# netstat -tap | grep www
tcp        0      0 *:www                  *:*                    LISTEN    30383/apache2


rblampain 12-12-2005 09:50 PM

Thank you. Here is the result.
My knowledge is not good enough to make sense of it.

lt:/home/rene# netstat -tap | grep www
tcp 0 0 *:www *:* LISTEN 3 740/apache-perl
tcp 0 0 192.168.1.13:35059 72.14.203.104:www ESTABLISHED2 420/mozilla-bin
tcp 0 0 192.168.1.13:35058 72.14.203.104:www ESTABLISHED2 420/mozilla-bin

uberNUT69 12-12-2005 11:07 PM

Quote:

Originally Posted by rblampain
tcp 0 0 *:www *:* LISTEN 3 740/apache-perl

OK, so you already have a webserver running.
My guess would be that you have apache 1.x installed.
Are you sure you want that?
Either stop/kill the server and/or uninstall it.

rblampain 12-13-2005 10:00 PM

Yes, that was the problem, I Installed Apache1.3.perl thinking I was installing a module for Apache2 (failing to read properly what I was doing).

Thank you for the help.


All times are GMT -5. The time now is 06:36 PM.