The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache won't start!!!

Discussion in 'EasyApache' started by grey_fox, Nov 16, 2004.

  1. grey_fox

    grey_fox Member

    Joined:
    Feb 13, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sillypore
    Need help here. I'm new to whm, everything was working fine until of late. It seems that apache (although started) will not show anything at all. I'm only able to get to my WHM via the IP address and in there I see the following error message.

    Unable to obtain apache version information. Your apache server at XX.XXX.XXX.XXX may be down, or unreachable.

    I already did the folllowing.

    1. did a ./easyapache
    2. restore an older httpd.conf file
    3. restarted the server


    I did a /usr/sbin/apache configtest and found the following.

    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts
    [Tue Nov 16 12:21:39 2004] [warn] NameVirtualHost xx.xxx.xxx.xxx:80 has no VirtualHosts

    Anyone has any ideas?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Those warnings shouldn't prevent Apache from starting. Try opening two SSH sessions to the server and doing the following:

    Session 1:

    tail -f /etc/httpd/logs/error_log

    Session 2:

    http stop
    http stop
    http startssl

    Watch what happens in the error_log and post any errors here - leave it going a couple of minutes for any errors to appear.
     
  3. grey_fox

    grey_fox Member

    Joined:
    Feb 13, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sillypore
    This is what happens as per your instructions.

    [Tue Nov 16 15:57:34 2004] [notice] caught SIGTERM, shutting down
    [Tue Nov 16 15:57:34 2004] [notice-phpa] Cache shared memory removed (pid 26362)
    [Tue Nov 16 15:57:34 2004] [notice-phpa] Cache semaphores removed (pid 26362)
    [Tue Nov 16 15:57:45 2004] [notice-phpa] Acquiring cache : uid 99 gid 99 perms 666 (pid 26823)
    [Tue Nov 16 15:57:45 2004] [notice-phpa] PHPA 1.3.3r2 on linux_i686_glibc2.1.3 (pid 26823)
    [Tue Nov 16 15:57:45 2004] [notice-phpa] Initialised 16MB cache at 0xbe5be000 with 512 process entries (pid 26823)
    [Tue Nov 16 15:57:45 2004] [notice-phpa] Lock thresholds 10/10 (pid 26823)
    [Tue Nov 16 15:57:45 2004] [notice] mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.9 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a configured -- resuming normal operations
    [Tue Nov 16 15:57:45 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Tue Nov 16 15:57:45 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Tue Nov 16 15:57:47 2004] [error] [client 12.96.160.84] File does not exist: /home/openfor/public_html/favicon.ico
    [Tue Nov 16 15:57:47 2004] [error] [client 12.96.160.84] File does not exist: /home/openfor/public_html/404.shtml
    [Tue Nov 16 15:57:57 2004] [error] [client 12.96.160.84] File does not exist: /home/openfor/public_html/favicon.ico
    [Tue Nov 16 15:57:57 2004] [error] [client 12.96.160.84] File does not exist: /home/openfor/public_html/404.shtml
    [Tue Nov 16 15:57:59 2004] [error] [client 12.96.160.84] File does not exist: /home/openfor/public_html/favicon.ico
    [Tue Nov 16 15:57:59 2004] [error] [client 12.96.160.84] File does not exist: /home/openfor/public_html/404.shtml

    Seems that whatever i do, i'm unable to revive my site. I tried to search for a solution here but to no avail. My site has been down for more than 16 hours already and i'm panicking! Please help.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That appears to be running up just fine - are you sure it's not a DNS issue? Have you tried connecting to your site locally from the server:

    lynx http://www.yourdomain.com
     
  5. grey_fox

    grey_fox Member

    Joined:
    Feb 13, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sillypore
    Hmm the lynx command works. What should i now check on?
     
  6. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    If you are running your own nameservers, then the lynx command will work just fine even if the name has not propagated.

    From a remote machine do

    nslookup yourdomain.com and check the IP that comes back and compare it to the IP of the server. If they do not match, you either have the nameservers wrong at the registrar, or it simply has not propagated to your ISP yet.
     
Loading...

Share This Page