Apache will NOT run for some reason.

Discussion in 'Apache' started by visitorQ, Oct 21, 2007.

  1. #1
    hello all.
    i'm running ubuntu 7.04 Feisty Fawn. i have had apache2 installed and running now for weeks. i turned off my computer last night, which i rarely do. and i booted this morning, and started working on a site in development. then i find out that my localhost isn't running...

    
    kumi@throne:~ % sudo /etc/init.d/apache2 stop 
     * Stopping web server (apache2)...
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    httpd (no pid file) not running
                                                                                                                              [ OK ]
    kumi@throne:~ % sudo /etc/init.d/apache2 start
     * Starting web server (apache2)...
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
    no listening sockets available, shutting down
    Unable to open logs
                                                                                                                               [fail]
    
    
    Code (markup):
    it has always mentioned something about not being able to determine the server's domain name or whatever, but it always worked. i've never had this problem before and i REALLY REALLY need some help with this one. any suggestions? thanks in advanced.
     
    visitorQ, Oct 21, 2007 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    login as root

    then check apache config using

    rcapache2 configtest
    rcapache2 extreme-configtest

    and see what ouput you get
    may be the erorr output helps you to pin point your problem-cause
     
    hans, Oct 26, 2007 IP
  3. mergemedia

    mergemedia Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    something is wrong with your SSL virtualhosts, grep your configs for 0.0.0.0 ?

    checked your error log?
     
    mergemedia, Oct 26, 2007 IP
  4. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The error message you posted says that something else is already listening on port 443 (which is used for SSL)
    Type this on the command line:
    sudo netstat -anp | grep LISTEN | grep 443
    Code (markup):
    to find out which program is listening on port 443 and it's process id (PID)

    Once you know that, track down where it gets started and configured and change the configuration so that it isn't a problem anymore.

    The most likely problems are that either Apache didn't start properly and then didn't shut down properly and left a process listening on port 443 but no PID stored in the pidfile or that you have Apache 2 and Apache 1.3 installed and one of them gets started up before the other one does.

    I spotted another error in that error message you posted which can be solved by putting a
    ServerName localhost
    Code (markup):
    directive in your httpd.conf, but somewhere that's not inside a VirtualHost directive.
     
    Ladadadada, Oct 27, 2007 IP