Apache2 not starting anymore

Discussion in 'Server Operation' started by 2smooth, Feb 4, 2009.

  1. 2smooth

    2smooth New Member

    Apache does not start anymore, i did an upgrade of alle pakages, but i'm not sure if this is causing the problem.

    When i try to start apache manually or automatically after reboot, nothing happens. No error,

    * Starting web server apache2 [ OK ]

    There's no error message in error.log, neither in syslog...

    I checked if there was an proces with

    ps ax | grep -i apache

    Nothing.

    I'm running Ubuntu Hardy
     
  2. DigitalLinx

    DigitalLinx New Member

    Run apache in debug mode, post the output
    Code:
    /usr/sbin/apache2 -X
    
     
  3. 2smooth

    2smooth New Member


    Code:
    # /usr/sbin/apache2 -X
    apache2: bad user name ${APACHE_RUN_USER}
    
    Code:
    in the output of strace /usr/sbin/apache2 -X
    
    i also see these lines:
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    ..cut..
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    ..cut..
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    ..cut..
    
     
    Last edited: Feb 4, 2009
  4. falko

    falko Super Moderator

    What's the output of
    Code:
    apache2 -t
    ?
     
  5. 2smooth

    2smooth New Member

    #apache2ctl configtest
    Syntax OK

    # apache2ctl restart
    httpd not running, trying to start

    # ps aux | grep -i apache
    root 8353 0.0 0.0 5164 916 pts/0 S+ 16:58 0:00 grep -i apache

    #apache2ctl status

    #apache2ctl restart
    httpd not running, trying to start


    #apache2ctl status

    Looking up localhost
    Making HTTP connection to localhost
    Alert!: Unable to connect to remote host.

    lynx: Can't access startfile http://localhost/server-status
     
  6. 2smooth

    2smooth New Member

    I've reinstalled apache after purging everything and it seems it's working again... :)
     
: apache2

Share This Page