Welcome to Centmin Mod Community
Become a Member

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

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

  1. Matt

    Matt Moderator Staff Member

    819
    360
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +549
    Local Time:
    12:11 AM
    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?
     
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    39,779
    8,774
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,505
    Local Time:
    9:11 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 :)
     
    • Like Like x 2
  3. eva2000

    eva2000 Administrator Staff Member

    39,779
    8,774
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,505
    Local Time:
    9:11 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
..