Discover Centmin Mod today
Register Now

Fresh Install Nginx Failure 1.2.3-eva2000.08

Discussion in 'Bug Reports' started by ethanpil, Jul 20, 2016.

  1. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    1:08 PM
    Just installed 1.2.3-eva2000.08 using the bash one liner on a brand new linode Centos 7.
    Attached install log. NginX wont start.

    I have examined the error messages, etc. and located the problem within the file /usr/local/nginx/conf/php.conf


    Code:
    include /usr/local/nginx/conf/503include-only.conf
    503include-only.conf doesnt exist in /usr/local/nginx/conf/ or /usr/local/nginx/conf/conf.d/
    I commented out the line and nginx started without problem.

    Update:
    I upgraded to PHP 5.6.23 via CentMinMod menu item. After the install completed, the /usr/local/nginx/conf/php.conf reverted to the original error state above, and needed to be fixed again.
     

    Attached Files:

    Last edited: Jul 20, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:08 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    strange first look can't see anything that could this and can't reproduce it on centos 7 + 123.08stable install

    what's output for
    Code (Text):
    ls -lahrt  /usr/local/nginx/conf/


    can you try a fresh centos 7 reload and another install attempt ?
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:08 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Jul 20, 2016
  4. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    1:08 PM
    Whats the best way to update my install with this fix so I don't need to comment out that line every time I update PHP....
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:08 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    fresh install or update edit php.conf one more time to remove the include + update 123.08stable code one more time via centmin.sh menu option 23 submenu option 2 should be it
     
  6. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    1:08 PM
    Can I just wget a few files from GitHub and replace them on the server? I have made a few other changes and I dont want to do a full upgrade
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:08 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Upgrades don't really make changes to other files needlessly. You really need to try and keep the code/routines that Centmin Mod users up to date.

    You can try the following by backing up the main files first and then do a fresh Centmin Mod code replacement by backing up and moving /usr/local/src/centminmod.

    Replace branchname with branch you want either 123.08stable or 123.09beta01. The cp copy commands backup the key files/vhost/ssl etc first
    Code (Text):
    branchname=123.08stable
    cp -a /etc/my.cnf /etc/my.cnf-old
    cp -a /usr/local/etc/php-fpm.conf /usr/local/etc/php-fpm.conf-old
    cp -a /etc/centminmod /etc/centminmod-old
    cp -a /usr/local/nginx/conf /usr/local/nginx/conf-old
    cd /usr/local/src
    mv centminmod centminmod-old
    git clone -b ${branchname} --depth=1 https://github.com/centminmod/centminmod.git centminmod
    cd centminmod
    ./centmin.sh

    the last run for centmin.sh syncs any needed changes

    then you can compare all the new and old directory and files and transfer them back manually if needed
    Code (Text):
    sdiff /etc/my.cnf /etc/my.cnf-old
    sdiff /usr/local/etc/php-fpm.conf /usr/local/etc/php-fpm.conf-old
    diff -qr /etc/centminmod /etc/centminmod-old
    diff -qr /usr/local/nginx/conf /usr/local/nginx/conf-old
    diff -qr /usr/local/src/centminmod /usr/local/src/centminmod-old
    

    example if file differs
    Code (Text):
    diff -qr /etc/centminmod /etc/centminmod-old
    Files /etc/centminmod/email-primary.ini and /etc/centminmod-old/email-primary.ini differ

    then use sdiff to see what the actual difference is

    sdiff side by side view
    Code (Text):
    sdiff /etc/centminmod/email-primary.ini /etc/centminmod-old/email-primary.ini

    sdiff side by side view only differences flag -s
    Code (Text):
    sdiff -s /etc/centminmod/email-primary.ini /etc/centminmod-old/email-primary.ini

    Code (Text):
    sdiff /etc/centminmod/email-primary.ini /etc/centminmod-old/email-primary.ini
    3                                                             | 1


    These steps ensure you're running the latest routines that power Centmin Mod.

    If you can post the output of the diff -qr commands, I can tell whether or not there's a better way to ensure some changes persist after Centminn Mod updates i.e. if you can use persistent config file method via /etc/centminmod/custom_config.inc etc

    There's also a list of other file comparison tools you can use within SSH or locally on own PC listed at List of file comparison tools | Centmin Mod Community For windows I use BeyondCompare
     
    Last edited: Jul 20, 2016