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.

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:
    1
    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
     
  2. aerostar

    aerostar Member

    Joined:
    Dec 10, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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:
    1
    I am a newbie how to post logs and the portion of my httpd.conf

    How to get my httpd online again

    Thanks
     
  4. aerostar

    aerostar Member

    Joined:
    Dec 10, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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,192
    Likes Received:
    1
    Trophy Points:
    38
    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.
     
  6. cybernux

    cybernux Member

    Joined:
    Jun 29, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  7. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    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.
     
  8. cybernux

    cybernux Member

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

    bravo linux-image :)
     
Loading...
Similar Threads - Please help Apache
  1. deathy
    Replies:
    1
    Views:
    84
  2. DeepXP
    Replies:
    2
    Views:
    605
  3. saman1991
    Replies:
    1
    Views:
    633

Share This Page