Learn about Centmin Mod LEMP Stack today
Register Now

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

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 1, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:51 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 https://github.com/centminmod/centminmod/pull/140
    - 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:
    include /usr/local/nginx/conf/staticfiles.conf;
    include /usr/local/nginx/conf/php.conf;

    updated order:
    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
    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
    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...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.