Unable to start Apache2

Discussion in 'Server Operation' started by satimis, May 29, 2008.

  1. satimis

    satimis Member

    Hi folks,


    Ubuntu 6.05 drake amd64

    $ sudo /etc/init.d/apache2 start
    Code:
    * Starting apache 2.0 web server...                                            
    (98)Address already in use: make_sock: could not bind to address [::]:80
    no listening sockets available, shutting down
    Unable to open logs                                           [fail]
    

    $ tail /var/log/apache2/error.log
    Code:
    [Thu May 29 23:05:26 2008] [warn] RSA server certificate CommonName (CN) `SMSL' does NOT match server name!?
    [Thu May 29 23:05:26 2008] [notice] Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.1 PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a configured -- resuming normal operations
    [Thu May 29 23:06:01 2008] [error] [client 192.168.0.10] File does not exist: /var/www/favicon.ico
    [Thu May 29 23:20:15 2008] [notice] Graceful restart requested, doing restart
    [Thu May 29 23:20:15 2008] [warn] RSA server certificate CommonName (CN) `SMSL' does NOT match server name!?
    [Thu May 29 23:20:15 2008] [notice] Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.1 PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a configured -- resuming normal operations
    [Thu May 29 23:43:28 2008] [notice] Graceful restart requested, doing restart
    [Thu May 29 23:43:28 2008] [warn] RSA server certificate CommonName (CN) `SMSL' does NOT match server name!?
    [Thu May 29 23:43:28 2008] [notice] Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.1 PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a configured -- resuming normal operations
    [Thu May 29 23:58:55 2008] [notice] caught SIGTERM, shutting down
    
    Please advise how to fix the problem. TIA


    B.R.
    satimis
     
  2. topdog

    topdog Active Member

    recreate the certificate to match your hostname.
     
  3. satimis

    satimis Member

    Solved

    Hi topdog,


    Thanks for your advice.


    Problem already solved as follows;

    $ sudo /etc/init.d/apache2 stop
    Code:
     * Stopping apache 2.0 web server...                                         [ ok ] 
    
    $ sudo killall apache2
    No complaint

    $ sudo netstat -l | grep www
    No printout


    $ sudo /etc/init.d/apache2 restart
    Code:
     * Forcing reload of apache 2.0 web server...                                       Apache/2.0.55 mod_ssl/2.0.55 (Pass Phrase Dialog)
    Some of your private key files are encrypted for security reasons.
    In order to read them you have to provide us with the pass phrases.
    
    Server lampserver:443 (RSA)
    Enter pass phrase:
    
    Ok: Pass Phrase Dialog successful.
                                                                                 [ ok ]
    
    $ netstat -l | grep www
    Code:
    tcp6       0      0 *:www                   *:*                     LISTEN     
    
    B.R.
    satimis
     

Share This Page