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 sv1, Jun 5, 2005.

  1. sv1

    sv1 Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    after an attempt to recompile Apache we get this error:

    root@server2 [~]# httpd status

    Looking up localhost
    localhost
    Making HTTP connection to localhost
    Sending HTTP request.
    HTTP request sent; waiting for response.
    Alert!: Unexpected network read error; connection aborted.
    Can't Access `http://localhost/server-status'
    Alert!: Unable to access document.

    lynx: Can't access startfile

    Any help with this would be great.

    -Seth
     
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Did you check the apache error log?. It will help you to solve this issue.
    Let me know the status.
     
  3. sv1

    sv1 Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    ****@***** [/usr/local/apache/logs]# tail error_log
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29589 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29588 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29587 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29583 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29582 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29581 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29580 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29579 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29578 exit signal Segmentation fault (11)
    [Sun Jun 5 02:51:14 2005] [notice] child pid 29577 exit signal Segmentation fault (11)


    also a new error:
    service httpd start
    Syntax error on line 1090 of /usr/local/apache/conf/httpd.conf:
    Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration
    /etc/init.d/httpd start: httpd could not be started

    and this is what I did to get it to start:
    vi /usr/local/apache/conf/httpd.conf
    :1,$ s/^BytesLog/#BytesLog/g

    So now apache starts but all sites are pointing to say a reseller's shared IP goes to the reseller site when attempting to load their site (www.CLIENTsite.com goes to www.RESELLERsite.com)

    -Seth
     
  4. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You'll have to rebuild httpd.conf to get your web sites pointing to the correct IP, assuming that you didn't mess with any of the DNS zones and/or DNS files.
     
  5. sv1

    sv1 Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    no we have not done anything with the dns zones. how would you go about fixing this? what needs to be done?

    -Seth
     
  6. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Run this command at the prompt:
    /usr/local/apache/bin/apachectl configtest
    Then
    /scripts/rebuildhttpdconf

    If none works, PM me.
     
  7. sv1

    sv1 Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    this did not resolve our issue.

    -seth
     
  8. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You'll need to hire a sys admin to take a look at your server, especially httpd.conf and DNS zones.
     
  9. sv1

    sv1 Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    I have contacted rack911
     
  10. sv1

    sv1 Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    To fix the byteslog,

    cd /usr/local/cpanel/apache
    /usr/local/apache/bin/apxs -iac mod_log_bytes.c

    then remove the comments..

    to the fix other problems

    add a

    NameVirtualHost ip:80

    for each ip on the server.

    Restart apache.. All done.
     
  11. Mike3d

    Mike3d Member

    Joined:
    May 9, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    im only a newbie to all this so this may not work for you.

    whenever i get a httpd.conf error and cant resolve it i usually roll back to a time it worked.

    i believe its under restore a configuration file.

    Mike
     
  12. sv1

    sv1 Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Which also did not resolve our issue :)
     
Loading...

Share This Page