Apache error help

Discussion in 'Apache' started by Lordy, Oct 14, 2007.

  1. #1
    [root@server4 init.d]# service httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: /etc/init.d/httpd: line 55: 23132 Segmentation fault $ENV $httpd -k start -DSSL


    Anyone familiar with this?
     
    Lordy, Oct 14, 2007 IP
  2. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I haven't seen that error before but it looks like the script used to start Apache has caught the error and displayed the line of it's code that caused it.

    You probably won't get much more information by running the command manually but Apache usually puts all it's important error messages in it's error_log.

    Depending on your distro, these could be in /var/log/apache.
     
    Ladadadada, Oct 14, 2007 IP
  3. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #3
    [Sun Oct 14 20:34:22 2007] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a DAV/2 PHP/5.2.4 configured -- resuming normal operations
    [Sun Oct 14 20:34:35 2007] [error] [client 222.184.214.61] File does not exist: /home/whdotter/domains/sharedip/\xc8\xc3\xc4\xe3\xbd\xfb\xb2\xbb\xd7\xa1\xd2\xaa\xc9\xe4\xb5\xc4\xbev\xb4\xa8\xdc\xe7,\xd6\xb5\xb5\xc3\xd5\xe4\xb2\xd8@www.sejie.info@chenxi550919, referer: http://bbs.vip8.wo.tc/\xc8\xc3\xc4\...\xd5\xe4\xb2\xd8@www.sejie.info@chenxi550919/
    [Sun Oct 14 20:34:37 2007] [error] [client 218.244.198.8] File does not exist: /var/www/html/zl.gif, referer: http://bbs.situteng.com/index.php
    [Sun Oct 14 20:34:42 2007] [error] [client 222.130.235.192] File does not exist: /var/www/html/zl.gif, referer: http://bbs.situteng.com/index.php
    [Sun Oct 14 20:34:52 2007] [error] [client 66.249.73.43] script '/var/www/html/profile.php' not found or unable to stat
    [Sun Oct 14 20:35:01 2007] [notice] caught SIGTERM, shutting down

    Aer you able to login and help me take a look at it?
     
    Lordy, Oct 15, 2007 IP
  4. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's a strange one to be sure, but it's interesting that it manages to go for forty seconds and serves several files in that time before crashing.

    Even more interesting is that it politely logs a [notice] that it caught a SIGTERM and is shutting down. That sounds less like a crash and more like something else asked Apache to shut down. However the Segmentation fault you originally posted sounds very much like a crash.

    I would try backing up your httpd.conf and commenting out everything that's not necessary (and by this I'm including PHP, mod_ssl and all of your vhosts... Start with a blank file and add everything that Apache complains about when you start it up), then start adding bits in from your backed up version, one by one until you find this error again.

    Incidentally, are you running Apache2 in prefork or worker mode ? I know that Apache in worker mode can cause some issues with PHP because most PHP extensions are not thread-safe.
     
    Ladadadada, Oct 17, 2007 IP
  5. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #5
    an apache config test may help you to find details if error results from apache config bug
    as root in shell on server run any of below 2 tests

    rcapache2 configtest
    rcapache2 extreme-configtest

    if you have OTHER than apache 2 - search for the exact syntax of your apache version to test your version.

    if any error - the test shows quiet accurately what lines in the config files
     
    hans, Oct 21, 2007 IP
  6. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #6
    I got the same error when my server reached 400 domains

    Then I contacted cPanel. The problem was with Apache version 2 and OpenSSL. Here is the email I received from the cPanel tech.




    Solution : Downgrade to 1.3
     
    qualityhostings, Oct 30, 2007 IP