Apache2 Service started twice

Posted by Relentless on Server Fault See other posts from Server Fault or by Relentless
Published on 2012-11-26T17:25:23Z Indexed on 2012/11/30 5:08 UTC
Read the original article Hit count: 556

Filed under:
|

My apache2 web-server starts twice and wont bind, so i have to do this:

sudo netstat -nap | grep 0.0.0.0:443
sudo kill -9 1243
sudo /etc/init.d/apache2 restart

Is there any way i can make a script out of the code above so that i can run automatically on start up?

I have Ubuntu 10.04, this happened after an update.

UPDATE: ports.conf - Could this be cause it:

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

could it be listening to 443 twice? or do i need to add NameVirtualHost *:443

© Server Fault or respective owner

Related posts about apache2

Related posts about ubuntu-10.04