Discover Centmin Mod today
Register Now

[Solved] php-fpm with socket & default_phpupstream.conf

Discussion in 'Bug Reports' started by Matt, Mar 8, 2019.

  1. Matt

    Matt Well-Known Member

    932
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    5:20 PM
    1.5.15
    MariaDB 10.2
    Latest everything on CentOS7.

    I've switched PHP-FPM to use unix socket, but each time nginx is rebuilt, the default_phpupstream.conf is over written with the previous version setting the server value back to 127.0.0.1:9000


    Code:
    upstream dft_php {
      zone dftphp_zone 128k;
      server unix:/tmp/php7-fpm.sock;
      keepalive 2;
    }
    
    Is it possible to have this not overwritten on nginx rebuild?
     
  2. eva2000

    eva2000 Administrator Staff Member

    59,350
    12,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,144
    Local Time:
    2:20 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Ah it actually gets overwritten on centmin.sh launches :oops: I will update 123.09beta01 so that /usr/local/nginx/conf/default_phpupstream.conf only gets created initially if it doesn't already exist (i.e. for existing centmin mod installs). This will skip overriding /usr/local/nginx/conf/default_phpupstream.conf if you already have the file - so your own settings won't be overridden :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    59,350
    12,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,144
    Local Time:
    2:20 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+