PHP Segfaults -- 500 Errors

Discussion in 'Installation/Configuration' started by kvenable, Oct 25, 2019.

  1. kvenable

    kvenable New Member


    I am experiencing an issue on my ISPConfig 3.1.15p1 box, running Debian 10, which seems to be causing HTTP 500 errors. The server has multiple versions of PHP (using the"Multiple PHP Guide" for Debian 9, even though I'm using 10)

    This is the message I am seeing in /var/log/syslog when the 500 errors pop up on any site running PHP 5.6.30 as Fast-CGI (PHP-FPM seems to have similar issues).

    kernel: [1173262.696979] php-fpm[28774]: segfault at 7f6e1f0809c0 ip 00007f6e1f0809c0 sp 00007ffdb93fb498 error 15 in[7f6e1f079000+9000]

    From a site's error.log:

    fcgid:warn] [pid 13521] (104)Connection reset by peer: [client] mod_fcgid: error reading data from FastCGI server, referer:
    [Fri Oct 25 14:05:58.143574 2019] [core:error] [pid 13521] [client] End of script output before headers: index.php, referer:

    Here is the configure command I used for PHP 5.6.30:

    ./configure --prefix=/opt/php-5.6.30 --with-pdo-pgsql --with-zlib-dir --with-freetype-dir=no --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-pdo-mysql --with-mysqli --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl=/opt/openssl --with-openssl-dir=/opt/openssl --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm --with-gd --with-mysql

    Since it seems to be related to OpenSSL, here is the relevant info from a phpinfo()

    OpenSSL support enabled
    OpenSSL Library Version OpenSSL 1.0.2s 28 May 2019
    OpenSSL Header Version OpenSSL 1.0.1t 3 May 2016
    Openssl default config /opt/openssl/ssl/openssl.cnf
    Directive Local Value Master Value
    openssl.cafile no value no value
    openssl.capath no value no value

    Anyone have any thoughts on this one?

Share This Page