Search code examples
nginxfpmopcachesymfony5php-7.4

Php7.4 preload with opcache enabled fpm error


I'm currently using nginx, php7.4-fpm (php7.4.2) and symfony5.

I tried to enable php7.4 preload feature I'm getting fpm error.

*1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client

php.ini: opcache.preload=/var/www/domain/var/cache/prod/App_KernelProdContainer.preload.php opcache.preload_user=ubuntu

Any suggestions what could be wrong?


Solution

  • I had the same issue with php7.4.2, symfony 5 and nginx and after some research, here what I found:

    It seems to be a bug with opcache.preload_user parameter which is mandatory :)

    I suggest you to comment opcache.preload and opcache.preload_user and wait for php7.4.3.

    Hope it helps