Segfault at PHP

  • December 9, 2014

If you happen to see lots of this error in the apache logs (/usr/loca/apache/logs/error_log), there are some of the suggested options to do:

Dec 8 10:19:06 sg kernel: php[16824]: segfault at 51 ip 0000000000787c97 sp 00007fff7bdbb4e0 error 4 in php[400000+6f1000]
Dec 8 10:19:48 sg kernel: php[16912]: segfault at 0 ip 0000000000781d8b sp 00007fffe77d5d90 error 6 in php[400000+6f1000]
Dec 8 10:21:29 sg kernel: php[17236]: segfault at 0 ip 00007fb70e729500 sp 00007fffb6f992d8 error 4 in[7fb70e5ff000+18a000]

  1. update your kernel (yum update kernel)
  2. activate the Rlimit feature in the apache and let them calculate the correct amount (verify the value via command  grep "RLimitMEM" /usr/local/apache/conf/httpd.conf )
  3. install libc via yum (yum install
  4. update .htaccess to include the following:

    # compress text, html, javascript, css, xml:

    AddOutputFilterByType DEFLATE text/plain

    AddOutputFilterByType DEFLATE text/html

    AddOutputFilterByType DEFLATE text/xml

    AddOutputFilterByType DEFLATE text/css

    AddOutputFilterByType DEFLATE application/xml

    AddOutputFilterByType DEFLATE application/xhtml+xml

    AddOutputFilterByType DEFLATE application/rss+xml

    AddOutputFilterByType DEFLATE application/javascript

    AddOutputFilterByType DEFLATE application/x-javascript

    AddType x-font/otf .otf

    AddType x-font/ttf .ttf

    AddType x-font/eot .eot

    AddType x-font/woff .woff

    AddType image/x-icon .ico

    AddType image/png .png

Otherwise, try to  play around with the memory allocation to your php, mysql, and apache.

How helpful was this article to you?

Posting has been disabled.