Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Please help Apache down

Discussion in 'EasyApache' started by cybernux, Oct 13, 2004.

  1. cybernux

    cybernux Member

    Joined:
    Jun 29, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Dear all
    I am a newbie

    I am doing nothing but in the morning when I turn on my cellular phone , I get alert from the server "Apache failed"

    When I try to restart , this message come out

    /etc/init.d/httpd restart
    /etc/init.d/httpd restart: httpd not running, trying to start
    fopen: No such file or directory
    httpd: could not open document config file /usr/local/apache/conf/jk.conf
    /etc/init.d/httpd restart: httpd could not be started

    Help me please
    What should I do

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. aerostar

    aerostar Member

    Joined:
    Dec 10, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Pittsburgh , Pennsylvania
    im not sure why your httpd.conf is trying to load a jk.conf file I might assume that security has been broken on this server please contact me for more information or post logs and the portion of your httpd.conf that is referring to a second config file
     
  3. cybernux

    cybernux Member

    Joined:
    Jun 29, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    I am a newbie how to post logs and the portion of my httpd.conf

    How to get my httpd online again

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. aerostar

    aerostar Member

    Joined:
    Dec 10, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Pittsburgh , Pennsylvania
    contact me via aim/icq i can help you further one on one.
    i also updated my contact information in my profile
    aim/icq 258451017

    ~Tim
     
  5. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,191
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    Root Administrator
    while restarting httpd; tail the /var/log/messages file as below:
    ============================

    /etc/rc.d/init.d/httpd start; tail -f /var/log/messages

    =============================

    and paste the results for the next 30 seconds over here. the issue as far as i can see is that your httpd.conf is requiring a file names jk.conf( could be something related to tomcat) that is missing. To immediately restart; you can either comment the line calling this jk.conf and try a restart.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cybernux

    cybernux Member

    Joined:
    Jun 29, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    This reslut after tail -f /var/log/messages

    Oct 14 10:24:12 earth named[1449]: lame server resolving '117.42.124.222.in-addr.arpa' (in '42.124.222.in-addr.arpa'?): 203.130.196.5#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '75.21.124.222.in-addr.arpa' (in '21.124.222.in-addr.arpa'?): 203.130.196.5#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '75.21.124.222.in-addr.arpa' (in '21.124.222.in-addr.arpa'?): 202.134.0.62#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '86.31.124.222.in-addr.arpa' (in '31.124.222.in-addr.arpa'?): 203.130.196.5#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '86.31.124.222.in-addr.arpa' (in '31.124.222.in-addr.arpa'?): 202.134.0.62#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '86.31.124.222.in-addr.arpa' (in '31.124.222.in-addr.arpa'?): 203.130.196.5#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '86.31.124.222.in-addr.arpa' (in '31.124.222.in-addr.arpa'?): 202.134.0.62#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '153.114.65.202.in-addr.arpa' (in '114.65.202.in-addr.arpa'?): 202.65.112.21#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '75.21.124.222.in-addr.arpa' (in '21.124.222.in-addr.arpa'?): 203.130.196.5#53
    Oct 14 10:24:13 earth named[1449]: lame server resolving '75.21.124.222.in-addr.arpa' (in '21.124.222.in-addr.arpa'?): 202.134.0.62#53
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,191
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    Root Administrator
    the messages dont help much; but you need to see also

    /usr/local/apahe/logs/error_log to see for errors.

    BTW: open /usr/local/apahe/conf/httpd.conf and search for string jk.conf. If it is there; comment that line using (#). then try restart.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cybernux

    cybernux Member

    Joined:
    Jun 29, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Thanks for your suggestion now Apache already running :)

    bravo linux-image :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice