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... And wont restart even after recompile :s

Discussion in 'EasyApache' started by AlexSmithMCP, Jun 14, 2004.

  1. AlexSmithMCP

    AlexSmithMCP Well-Known Member

    Joined:
    May 26, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    i just got home from work and found that apache had failed, when i try 2 restart all i get is this
    PHP:
    [root@svr1 bin]# service httpd start
    /etc/init.d/httpd starthttpd could not be started
    thats even after a recompile.

    tail on the error_log file shows this
    PHP:
    [root@svr1 logs]# tail error_log -f -n5
    [Mon Jun 14 23:17:10 2004] [error] (2)No such file or directorycould not open bytes log file /usr/local/apache/domlogs/newtolinux.co.uk-bytes_log.
    [
    Mon Jun 14 23:25:49 2004] [error] (2)No such file or directorycould not open bytes log file /usr/local/apache/domlogs/newtolinux.co.uk-bytes_log.
    [
    Mon Jun 14 23:25:49 2004] [error] (2)No such file or directorycould not open bytes log file /usr/local/apache/domlogs/newtolinux.co.uk-bytes_log.
    [
    Mon Jun 14 23:25:49 2004] [error] (2)No such file or directorycould not open bytes log file /usr/local/apache/domlogs/newtolinux.co.uk-bytes_log.
    [
    Mon Jun 14 23:29:36 2004] [error] (2)No such file or directorycould not open bytes log file /usr/local/apache/domlogs/newtolinux.co.uk-bytes_log.
    [
    Mon Jun 14 23:33:23 2004] [error] (2)No such file or directorycould not open bytes log file /usr/local/apache/domlogs/newtolinux.co.uk-bytes_log.
    [
    Mon Jun 14 23:33:28 2004] [error] (2)No such file or directorycould not open bytes log file /usr/local/apache/domlogs/newtolinux.co.uk-bytes_log.
    (newtolinux.co.uk is one of my domains)

    any ideas?:confused:
     
  2. AlexSmithMCP

    AlexSmithMCP Well-Known Member

    Joined:
    May 26, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    o and the /usr/local/apache/domlogs/ folder doesnt exist....
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Try creating a domlogs folder.

    In shell,
    cd /usr/local/apache
    mkdir domlogs
    chown 0711 domlogs

    If that doesn't help, try this:
    /usr/local/apache/bin/apachectl configtest
     
  4. AlexSmithMCP

    AlexSmithMCP Well-Known Member

    Joined:
    May 26, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    thanks :D worked a treat, wonder y it stoped working in the first place lol

    /me hugs ya (in a non gay kinda way lol)
     
    #4 AlexSmithMCP, Jun 14, 2004
    Last edited: Jun 14, 2004
  5. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    I had my server provider update the kernel a while back and when they were done my sites didn't work. I took a quick look myself and noticed the was no domlogs directory so I created one and restarted apache and all went well. I figured it would take care of your problem as well.
     
Loading...

Share This Page