Want to subscribe to topics you're interested in?
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

    62
    17
    8
    Jun 26, 2014
    United Kingdom
    Ratings:
    +22
    Local Time:
    5:47 AM
    nginx
    10.3.x
    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

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    2:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 ;)