Learn about Centmin Mod LEMP Stack today
Become a Member

If php-fpm.conf is overwritten, PHP may not work.

Discussion in 'Bug Reports' started by Liam W, Feb 19, 2016.

Tags:
  1. Liam W

    Liam W Member

    57
    15
    8
    Jun 26, 2014
    Barrow-in-Furness, Cumbria, England
    Ratings:
    +19
    Local Time:
    7:59 AM
    nginx/1.9.11
    10.1.11
    I change the php-fpm.conf and php.conf files to use Nginx sockets instead of TCP sockets.

    However, when I last did a PHP downgrade (and then upgrade), selecting to update & overwrite my php-fpm.conf file, my PHP stopped working.

    This was because, while the php.conf file had been changed to use the TCP socket, Nginx didn't appear to have been restarted when it was changed...

    Or have I missed something?
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,053
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    4:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    did you forget to edit /usr/local/etc/php-fpm.conf to use Unix sockets as well ? as php-fpm.conf config file and php include file /usr/local/nginx/conf/php.conf both need updating to use Unix sockets for it to work

    generally don't need to overwrite those 2 files on php upgrade unless i specifically mention updates to those but haven't done for ages

    also for stability, TCP is better than Unix sockets for php-fpm ;)