Want to subscribe to topics you're interested in?
Become a Member

PHP-FPM XF 1.5 and php 7

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Nik, Dec 8, 2015.

  1. Nik

    Nik New Member

    4
    1
    3
    Dec 7, 2015
    Ratings:
    +2
    Local Time:
    8:03 AM
    First time CentOS/centminmod user so bear with me. More of a debian guy.

    I just setup a fresh vps box with CMM, all good. Using latest 09LE branch, created a new vhost, set it up, tested with standard issue php 5.5, works well (even got an LE cert issued first time). Good job @eva2000 on the builds.

    Migrated a backup copy of my Xenforo 1.5 forum with a few addons. All works. So, proceeded to do a php 7 upgrade expecting some issues, restarted it all and I get an error 500, nothing in the page source, nothing in the error log for the site, no messages (in var/log). Clueless as to what addon/problem can cause this.

    Anyone with any tips on how to debug this? Should I drop in the PHP debug flags and check.
     
    • Informative Informative x 1
  2. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    2:03 PM
    1.9.9
    10.1.10
    First off the 09LE branch does not get any updates that the 09beta01 branch gets, LE branch is solely for letsencrypt testing so I think you might have pulled the php-dev version.
    Run php -v to check if it says 7.0.0 or 7.1.0-dev.

    Now on-topic, check the logs located at /home/nginx/domains/$DOMAIN_NAME/log/error.log.
    If there is nothing check /var/log/php-fpm/www-php.error.log aswell.
     
    • Like Like x 1
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    10:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    Thanks for testing 123.09beta01le and Letsencrypt SSL integration :D
    @Nik yup correct 123.09beta01le is solely Letsencrypt integration code changes and doesn't get 123.09beta01 updates so support for PHP 7.0.0 GA stable isn't in 123.09beta01le, only 123.08stable and 123.09beta01 got those updates

    checking php version would be easiest way to confirm which you got :)
    Code:
    php -v
     
  4. Nik

    Nik New Member

    4
    1
    3
    Dec 7, 2015
    Ratings:
    +2
    Local Time:
    8:03 AM
    Thanks, didn't even check, it was the devel version. But again, nothing in any error log file which I found intriguing. Going to rebase it back to 09beta1 and reinstall php 7, and see what happens.
     
  5. eva2000

    eva2000 Administrator Staff Member

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    10:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    Also post your Xenforo domain's nginx vhost conf file contents in CODE tags.

    When you create a new nginx vhost domain via centmin.sh menu option 2 or /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags | Centmin Mod Community
     
  6. Nik

    Nik New Member

    4
    1
    3
    Dec 7, 2015
    Ratings:
    +2
    Local Time:
    8:03 AM
    Thanks. The vhosts are identical to your examples for XF with nothing else changed. I even took it off my loadbalancer group just in case http2 proxying was an issue of sorts.

    Anyway, I've had to respin the VPS as the github clone process hung (cloning the 09beta1) and swiftly annihilated centmin in the process. So, starting from fresh as we speak. Will keep you posted.
     
    • Like Like x 1