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 failed

Discussion in 'EasyApache' started by tekdns, Jul 5, 2002.

  1. tekdns

    tekdns Well-Known Member

    Joined:
    Jun 9, 2002
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Hi,


    Apache server failed and not restarting.

    Why?

    Help me please
     
  2. Elena

    Elena Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    California
    stop apache (probably don't have to, but write this down anyway) - just type this command when in the shell as root:
    /etc/rc.d/init.d/httpd stop

    then start apache with this command:
    /etc/rc.d/init.d/httpd start

    When you start it, you will see some stuff come up on the screen.. you will be able to see what might be the problem. If there is too much info there, just check your error log.

    If you find there is an error, most likely will be in your httpd.conf
    /usr/local/apache/conf/httpd.conf

    Edit that to remove whatever might be the problem.. if you need help with that post the error you see in your error log.

    After you edit httpd.conf it is a good idea to test before trying to restart Apache. Use this command to test the syntax is ok:
    /usr/local/apache/bin/apachectl configtest

    If it says it's ok, then you will now be able to restart Apache.. good luck!
     
  3. tekdns

    tekdns Well-Known Member

    Joined:
    Jun 9, 2002
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    error_log

    Yes, error_log more large (20MB),

    What can i make?

    How can i look error_log?
     
  4. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    As root
    tail -f /usr/local/apache/logs/error_log


    (while you are attempting to test what is going on with apache when stopping and starting)

    That should definitely provide some detail so you can begin to determine what is going on.
    Hopefully?
     
  5. tekdns

    tekdns Well-Known Member

    Joined:
    Jun 9, 2002
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    root@server1 [~]# /usr/local/apache/bin/apachectl configtest
    Warning: DocumentRoot [/home/aniforce/public_html/www.szgoku] does not exist
    httpd: bad user name aniforce


    This error appeared.

    How can i make?
     
  6. Elena

    Elena Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    California
    Do you have the account with the username aniforce on the server? Has it been terminated? If it has, then you can remove the virtualhost entry for that account. This warning could also mean that the user aniforce created a subdomain, however did not remove the subdomain, only removed the subdomain directory. That would cause the subdomain virtualhost entry to stay in the httpd.conf and thus the warning.

    However, that is a warning.. warnings wouldn't cause apache to not restart (at least I've never encountered that). At the end when you ran the configtest, did it say Syntax [OK] or what did it give you? Any other errors? I'm pretty much guessing here, but most likely you have some module that is messing with Apache... if you recently ran the Apache upgrade this would most likely be it.
     
  7. tekdns

    tekdns Well-Known Member

    Joined:
    Jun 9, 2002
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Thanks,

    Problem fixed now.
     
Loading...

Share This Page