error when installing zend opcache

Discussion in 'Installation/Configuration' started by momo1240, Jan 11, 2016.

  1. momo1240

    momo1240 Member

    Hello Guys
    Hope someone can help me
    I'm using ispconfig 3 on debian 6 server with php 5.3.3
    I'm running a prestashop website with fast cgi and suexec

    In order to speed up the website I tried to install zend opcache like this :
    -pecl install zendopcache-7.0.2
    then I created a file opcache.ini on /etc/php5/conf.d with this config :

    zend_extension=/usr/lib/php5/20100525/opcache.so (changed with my config)
    opcache.memory_consumption=128
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=4000
    opcache.revalidate_freq=60
    opcache.fast_shutdown=1

    opcache.enable_cli=1

    but when I tried to access to mywebsite I have this error

    (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    [Sun Jan 10 13:07:52 2016] [error] [client xx.xx.xx.xx] Premature end of script headers: index.php

    Thanks a lot for your help guys
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as opcache causes the php binary to fail. Check that the opcache path /usr/lib/php5/20100525/opcache.so is correct.
     
  3. momo1240

    momo1240 Member

    Thank you for your reply Till

    when I installed zend opcache , I have this message at th end of the installation, do you think the problem may come from this message :

    Warning: preg_match(): Delimiter must not be alphanumeric or backslash in PEAR/Command/Install.php on line 777
    Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /usr/share/php/PEAR/Command/Install.php on line 777

    thank you
     
  4. momo1240

    momo1240 Member

    Hello guys
    I think to problem came from here but I don't understand the signification
    Build process completed successfully
    Installing '/usr/lib/php5/20090626/opcache.so'
    Warning: preg_match(): Delimiter must not be alphanumeric or backslash in PEAR/Command/Install.php on line 777
    Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /usr/share/php/PEAR/Command/Install.php on line 777

    when I check this line this is what I have :
    $ts = preg_match('Thread Safety.+enabled', $info) ? '_ts' : '';
    Thank you for your help
     
    Last edited: Jan 12, 2016
  5. momo1240

    momo1240 Member

    any help guys ?
    so After installing opcache and put the path on opache.ini
    everything seems to be fine
    when I check with php -v , I don't have any error and it tells me that zend opcache is installed
    But when I try to access to my website or ispconfig panel I have an error.
    I check the logs this is what I have :
    [warn] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    [warn] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

    Thank you for your help
     
    Last edited: Jan 13, 2016

Share This Page