Welcome to Centmin Mod Community
Register Now

Beta Branch reorder php.conf before staticfiles.conf include files in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 31, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:03 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    reorder php.conf before staticfiles.conf include files in 123.09beta01

    - Update for newly created nginx vhost creation routines and templates and default nginx vhosts to ensure /usr/local/nginx/conf/php.conf include file comes before and not after /usr/local/nginx/conf/staticfiles.conf include file as per Patch 1 by rcbarriga · Pull Request #140 · centminmod/centminmod
    - Existing created nginx vhosts will not be automatically updated so as to not overwrite users customisations. So you'd need to manually reorder them. Centmin.sh menu option 22 wordpress nginx vhosts already have the correct order so do not need altering.

    older 123.09beta01 had

    previous default order:
    Code (Text):
    include /usr/local/nginx/conf/staticfiles.conf;
    include /usr/local/nginx/conf/php.conf;


    updated order:
    Code (Text):
    include /usr/local/nginx/conf/php.conf;
    include /usr/local/nginx/conf/staticfiles.conf;



    newer 123.09beta01 had additional pre-staticfile include files too

    previous default order
    Code (Text):
    include /usr/local/nginx/conf/pre-staticfiles-local-cache-yourdomain.com.conf;
    include /usr/local/nginx/conf/pre-staticfiles-global.conf;
    include /usr/local/nginx/conf/staticfiles.conf;
    include /usr/local/nginx/conf/php.conf;


    updated default order
    Code (Text):
    include /usr/local/nginx/conf/php.conf;
    include /usr/local/nginx/conf/pre-staticfiles-local-cache-yourdomain.com.conf;
    include /usr/local/nginx/conf/pre-staticfiles-global.conf;
    include /usr/local/nginx/conf/staticfiles.conf;


    Continue reading...

    123.09beta01 branch
     
  2. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    9:03 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    The same for Phpmyadmin vhost?

    This is what i have now...
    Code:
      include /usr/local/nginx/conf/phpmyadmin_https.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      #include /usr/local/nginx/conf/php.conf;
      include /usr/local/nginx/conf/drop.conf;
      include /usr/local/nginx/conf/errorpage.conf;
    like this:

    Code:
      include /usr/local/nginx/conf/phpmyadmin_https.conf;
      #include /usr/local/nginx/conf/php.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/drop.conf;
      include /usr/local/nginx/conf/errorpage.conf;
    ?
     
    Last edited: Aug 31, 2020
  3. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:03 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Actually no need to for phpmyadmin.sh it's php.conf is commented out and uses phpmyadmin_https.conf which is above staticfiles.conf include file and phpmyadmin_https.conf include line
    Code (Text):
    include /usr/local/nginx/conf/php_${DIRNAME}.conf;

    is one responsible for phpmyadmin.sh's PHP usage
     
    Last edited: Sep 1, 2020