Learn about Centmin Mod LEMP Stack today
Register Now

Xenforo My xenforo site get HTTP ERROR 500

Discussion in 'Forum software usage' started by Thanh, Oct 10, 2016.

Tags:
  1. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM
    Sory If i post wrong BOX, Please move it help me. Thank you.
    My website get error.. I don't know what error on my website. My website using Xenforo.

    Code:
    The www.domain.com page isn’t working
    www.domain.com is currently unable to handle this request.
    
    HTTP ERROR 500
    Thank you helping
     
  2. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM
    Nobody help me.. Please help me. My website turn off more a day :(
     
  3. Matt

    Matt Moderator Staff Member

    680
    314
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +433
    Local Time:
    12:00 AM
    1.7.1
    MariaDB 10
    You need to look in your error logs as 500 is an internal server error.
     
    • Like Like x 1
  4. Matt

    Matt Moderator Staff Member

    680
    314
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +433
    Local Time:
    12:00 AM
    1.7.1
    MariaDB 10
    /var/log/php-fpm
    /var/log/nginx

    Start in there.
     
    • Like Like x 2
  5. cloud9

    cloud9 Premium Member Premium Member

    140
    54
    28
    Oct 6, 2015
    England
    Ratings:
    +75
    Local Time:
    12:00 AM
    1.11.x
    10.x
    For Nginx access and error logs:

    Code:
     tail -10 /usr/local/nginx/logs/access.log
      tail -10 /usr/local/nginx/logs/error.log
    For specific domainname.com access and error log:

    Code:
    tail -10 /home/nginx/domains/domainname.com/log/access.log
      tail -10 /home/nginx/domains/domainname.com/log/error.log
    For other system error logs located at /var/log:

    list /var/log files in ascending time order so the most recently modified files are at the bottom

    Code:
    ls -lhrt /var/log
    Code:
    drwx------. 2 root  root  4.0K Jun 10  2014 ppp
    drwxr-xr-x. 2 root  root  4.0K Jul 14  2014 anaconda
    drwxr-xr-x. 2 ntp   ntp   4.0K May 31 10:29 ntpstats
    -rw-r--r--. 1 root  root   380 Sep 11 15:52 maillog-20160919
    -rw-------. 1 root  root     0 Sep 11 16:04 tallylog
    -rw-------. 1 root  root     0 Sep 11 16:05 spooler-20160919
    drwxr-xr-x  2 nginx nginx 4.0K Sep 11 16:18 pagespeed
    -rw-------. 1 root  utmp  1.2K Sep 11 16:19 btmp-20161001
    drwxr-xr-x. 2 root  root  4.0K Sep 15 14:08 tuned
    -rw-r--r--  1 root  root   32K Sep 16 23:26 dmesg.old
    -rw-r--r--  2 root  root  9.0K Sep 16 23:51 boot.log
    -rw-r--r--  1 root  root   32K Sep 16 23:59 dmesg
    -rw-r--r--  1 root  root   160 Sep 16 23:59 wpa_supplicant.log
    -rw-r--r--. 1 root  root   44K Sep 18 21:40 secure-20160919
    -rw-r--r--  1 root  root     0 Sep 19 03:06 maillog-20160925
    -rw-------  1 root  root     0 Sep 19 03:06 spooler-20160925
    -rw-r--r--. 1 root  root  3.0M Sep 19 03:06 messages-20160919
    -rw-r--r--. 1 root  root  181K Sep 19 03:06 cron-20160919
    -rw-------. 1 root  root  5.0K Sep 19 21:20 grubby
    -rw-r--r--  1 root  root  2.6K Sep 24 15:53 secure-20160925
    -rw-r--r--  1 root  root     0 Sep 25 03:28 maillog-20161003
    -rw-------  1 root  root     0 Sep 25 03:28 spooler-20161003
    -rw-r--r--  1 root  root  156K Sep 25 03:28 messages-20160925
    -rw-r--r--  1 root  root  142K Sep 25 03:28 cron-20160925
    -rw-------  1 root  utmp     0 Oct  1 03:31 btmp
    -rw-r--r--  1 root  root  3.0K Oct  2 23:30 secure-20161003
    -rw-------  1 root  root    20 Oct  3 03:11 lfd.log-20161009.gz
    -rw-r--r--  1 root  root     0 Oct  3 03:11 maillog-20161009
    -rw-------  1 root  root     0 Oct  3 03:11 spooler-20161009
    -rw-r--r--  1 root  root  196K Oct  3 03:11 messages-20161003
    -rw-r--r--  1 root  root  189K Oct  3 03:11 cron-20161003
    drwxr-x---. 2 root  root  4.0K Oct  5 04:10 audit
    -rw-r--r--  1 root  root   938 Oct  7 19:14 secure-20161009
    -rw-------  1 root  root     0 Oct  9 03:43 lfd.log
    -rw-------  1 root  root     0 Oct  9 03:43 spooler
    -rw-r--r--  1 root  root     0 Oct  9 03:43 maillog
    -rw-r--r--  1 root  root  143K Oct  9 03:43 messages-20161009
    -rw-r--r--  1 root  root  140K Oct  9 03:43 cron-20161009
    drwxr-xr-x. 2 root  root  4.0K Oct 10 00:00 sa
    drwxr-xr-x  2 nginx nginx 4.0K Oct 10 03:25 amplify-agent
    drwxr-xr-x. 2 root  root  4.0K Oct 10 03:25 nginx
    -rw-r--r--  1 root  root   562 Oct 10 16:31 secure
    -rw-rw-r--. 1 root  utmp   38K Oct 10 16:31 wtmp
    -rw-r--r--. 1 root  root  286K Oct 10 16:31 lastlog
    -rw-------. 1 root  root   40K Oct 10 16:32 yum.log
    -rw-r--r--  1 root  root   40K Oct 10 17:10 messages
    -rw-r--r--  1 root  root   36K Oct 10 17:10 cron
    For PHP-FPM error log:

    Code:
    tail -10 /var/log/php-fpm/www-error.log
    And / Or

    Code:
    /var/log/php-fpm/www-php.error.log
     
    • Like Like x 2
  6. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM
    My servier's LOG

    /var/log/php-fpm/www-error.log

    Code:
    [01-Oct-2016 17:47:31] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/geoip.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [01-Oct-2016 17:47:31] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [01-Oct-2016 17:47:31] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [01-Oct-2016 17:47:35] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/geoip.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [01-Oct-2016 17:47:35] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [01-Oct-2016 17:47:35] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [01-Oct-2016 17:49:11] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/geoip.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [01-Oct-2016 17:49:11] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [01-Oct-2016 17:49:11] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    /var/log/php-fpm/www-php.error.log

    Code:
    [10-Oct-2016 15:22:18 UTC] PHP Fatal error:  Class 'Zend_Registry' not found in /home/nginx/domains/cungcaphangsi.com/public/library/XenForo/Application.php on line 12
    [10-Oct-2016 16:21:07 UTC] PHP Fatal error:  Class 'Zend_Registry' not found in /home/nginx/domains/cungcaphangsi.com/public/library/XenForo/Application.php on line 12
    [10-Oct-2016 16:45:56 UTC] PHP Fatal error:  Class 'Zend_Registry' not found in /home/nginx/domains/cungcaphangsi.com/public/library/XenForo/Application.php on line 12
    [10-Oct-2016 17:10:05 UTC] PHP Fatal error:  Class 'Zend_Registry' not found in /home/nginx/domains/cungcaphangsi.com/public/library/XenForo/Application.php on line 12
    [10-Oct-2016 17:10:07 UTC] PHP Fatal error:  Class 'Zend_Registry' not found in /home/nginx/domains/cungcaphangsi.com/public/library/XenForo/Application.php on line 12
    /var/log/nginx/localhost.error.log
    Code:
    2016/10/10 11:57:50 [error] 4132#0: *113 open() "/usr/local/nginx/html/manager/html" failed (2: No such file or directory), client: 201.183.237.8, server: li866-xx.members.linode.com, request: "GET /manager/html HTTP/1.1", host: "139.162.24.xx"
    2016/10/10 13:50:49 [error] 4132#0: *167 open() "/usr/local/nginx/html/ncsi.txt" failed (2: No such file or directory), client: 93.80.102.152, server: li866-xx.members.linode.com, request: "GET http://www.msftncsi.com/ncsi.txt HTTP/1.1", host: "www.msftncsi.com", referrer: "http://139.162.24.xx/"
    2016/10/10 16:22:04 [error] 4132#0: *208 open() "/usr/local/nginx/html/cgi/common.cgi" failed (2: No such file or directory), client: 187.161.198.123, server: li866-xx.members.linode.com, request: "GET /cgi/common.cgi HTTP/1.0", host: "139.162.24.xx"
    2016/10/10 16:22:04 [error] 4132#0: *209 open() "/usr/local/nginx/html/stssys.htm" failed (2: No such file or directory), client: 187.161.198.123, server: li866-xx.members.linode.com, request: "GET /stssys.htm HTTP/1.0", host: "139.162.24.xx"
    
    /var/log/nginx/localhost_ssl.error.log

    Code:
    2016/10/01 18:58:14 [error] 4508#0: *70 open() "/usr/local/nginx/html/74DE6B8B61EF729D227A1BC5F3E1EDE8.txt" failed (2: No such file or directory), client: 91.199.212.132, server: domaib.com, request: "GET /74DE6B8B61EF729D227A1BC5F3E1EDE8.txt HTTP/1.1", host: "www.domaib.com"
    2016/10/01 18:58:16 [error] 4508#0: *71 open() "/usr/local/nginx/html/74DE6B8B61EF729D227A1BC5F3E1EDE8.txt" failed (2: No such file or directory), client: 91.199.212.132, server: domaib.com, request: "GET /74DE6B8B61EF729D227A1BC5F3E1EDE8.txt HTTP/1.1", host: "domaib.com"
    2016/10/02 03:16:30 [error] 9476#0: *204 access forbidden by rule, client: 66.220.158.108, server: li866-xx.members.linode.com, request: "GET /***_mysqladmin***/ HTTP/1.1", host: "li866-xx.members.linode.com"
    
     
    Last edited by a moderator: Oct 11, 2016
  7. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM

    1. Screenshot by Lightshot
    2. Screenshot by Lightshot
    3. Screenshot by Lightshot
     
  8. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    9:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    • what version of centmin mod used ? 123.08stable or 123.09beta01 ?
    • when was centmin mod installed ?
    • have you made any updates to centmin mod via centmin.sh menu option 23 yet ?
    • have you done any php upgrades via centmin.sh menu option 4 and 5 yet ?
    • installed any centmin mod addons ? like phpmyadmin.sh ? i see in one of your errors you have phpmyadmin.sh installed ? i masked the exact url to your install to keep it private :)
    • what version of nginx and php used ? output for these commands
      Code (Text):
      nginx -V
      php -v
      Instead of screenshots, might want to copy and paste output and use CODE tags for code How to use forum BBCODE code tags :)

    1. has xenforo install ever worked on centmin mod lemp stack previously ? or was it working and then suddenly not working ? what updates did you do recently i.e. new XF addons installed or uninstalled etc ?
    2. if xenforo was just installed or setup first time on centmin mod lemp stack, make sure all your xenforo related files are properly uploaded to your web root where you installed xenforo. The web root is listed when you first create nginx vhost via centmin.sh menu option 2, 22 or nv command outlined here Nginx Vhost & NSD DNS Setup - CentminMod.com LEMP Nginx web stack for CentOS and is also listed on official Config Files page at Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS
    From error logs i see your site has old spdy directive instead of updated http2 directive for nginx http/2. You can switch following the instructions under Nginx HTTP/2 vs Nginx SPDY section at Nginx HTTP/2 protocol to succeed Google SPDY. Same error you reported and i posted the fix for at Install - i get error when i add 2 vhost | Centmin Mod Community. Or could be an older log entry already fixed.

    For php unable to load dynamic library redis.so, mongo.so, and geoip.so they're related to php extensions that failed to install properly after php install or php update. You can remove their respective .ini settings files found by their paths from this command

    Code (Text):
    php --ini
    


    example output
    Code (Text):
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/mailparse.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini

    So geoip extension settings file at /etc/centminmod/php.d/geoip.ini and redis at /etc/centminmod/php.d/redis.ini. And mongodb would be at /etc/centminmod/php.d/mongodb.ini

    Remove all 3 respective .ini files and recompile latest PHP version via centmin.sh menu option 5 i.e. update to PHP 5.6.26 or 7.0.11 (if you do XF widget framework needs to be 2.6 beta otherwise use php 5.6.26)

    You also have an error on line 7 of your /usr/local/nginx/conf/phpmyadmin_https.conf unless that was fixed at Install - i get error when i add 2 vhost | Centmin Mod Community ?
     
    Last edited: Oct 11, 2016
  9. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM
    i try all but get same error :(
     
  10. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    9:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    When you create a new nginx vhost domain via centmin.sh menu option 2 or menu option 22 or via /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)
     
  11. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    9:00 AM
    Nginx 1.13.x
    MariaDB 5.5
  12. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM
    Before my website is good. But today i don't know why my website has that error :(
    My Config

    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    # For SPDY SSL Setup
    # read http://centminmod.com/nginx_configure_https_ssl_spdy.html
    
    # redirect from www to non-www  forced SSL
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
     server {
        server_name cungxxx.com www.cungxxx.com;
        return 302 https://$server_name$request_uri;
    }
    
    server {
      listen 443 ssl http2;
      server_name cungxxx.com www.cungxxx.com;
    
      ##  redirect https www to https non-www
          if ($host = 'www.cungxxx.com' ) {
             return 302 https://cungxxx.com$request_uri;
          }
    
      ssl_dhparam /usr/local/nginx/conf/ssl/cungxxx.com/dhparam.pem;
      ssl_certificate      /usr/local/nginx/conf/ssl/cungxxx.com/cungxxx.com.crt;
      ssl_certificate_key  /usr/local/nginx/conf/ssl/cungxxx.com/cungxxx.com.key;
      include /usr/local/nginx/conf/ssl_include.conf;
    
      # mozilla recommended
      ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:!CAMELLIA:!DES-CBC3-SHA;
      ssl_prefer_server_ciphers   on;
      #add_header Alternate-Protocol  443:npn-spdy/3;
      #add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
      #add_header  X-Content-Type-Options "nosniff";
      #add_header X-Frame-Options DENY;
      #spdy_headers_comp 5;
      ssl_buffer_size 1400;
      ssl_session_tickets on;
     
      # enable ocsp stapling
      #resolver 8.8.8.8 8.8.4.4 valid=10m;
      #resolver_timeout 10s;
      #ssl_stapling on;
      #ssl_stapling_verify on;
      #ssl_trusted_certificate /usr/local/nginx/conf/ssl/cungxxx.com/cungxxx.com-trusted.crt;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      # limit_conn limit_per_ip 16;
      ssi  on;
    
      access_log /home/nginx/domains/cungxxx.com/log/access.log combined buffer=256k flush=60m;
      error_log /home/nginx/domains/cungxxx.com/log/error.log;
    
      root /home/nginx/domains/cungxxx.com/public;
    
      # prevent access to ./directories and files
      location ~ (?:^|/)\. {
       deny all;
      }
    
      location / {
    
    # block common exploits, sql injections etc
    #include /usr/local/nginx/conf/block.conf;
    
      # Enables directory listings when index file not found
      autoindex  on;
    
      # Shows file listing times as local time
      #autoindex_localtime on;
    
      # Enable for vBulletin usage WITHOUT vbSEO installed
      # More example Nginx vhost configurations at
      # http://centminmod.com/nginx_configure.html
      #try_files    $uri $uri/ /index.php;
    
      }
    
      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;
      include /usr/local/nginx/conf/vts_server.conf;
    }
    
     
  13. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    9:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    seems like you misconfigured xenforo as your location / context is missing any active try_files line for xenforo friendly urls as outlined at Nginx Rewrites for Xenforo Friendly Urls - CentminMod.com LEMP Nginx web stack for CentOS

    Not sure how you managed to get your forums to work without it ? are you enabling friendly seo urls in xenforo ?

    so change from
    Code (Text):
      location / {
    
    # block common exploits, sql injections etc
    #include /usr/local/nginx/conf/block.conf;
    
      # Enables directory listings when index file not found
      autoindex  on;
    
      # Shows file listing times as local time
      #autoindex_localtime on;
    
      # Enable for vBulletin usage WITHOUT vbSEO installed
      # More example Nginx vhost configurations at
      # http://centminmod.com/nginx_configure.html
      #try_files    $uri $uri/ /index.php;
    
      }


    to replace your location / {} context with
    Code (Text):
            location / {
                index index.php index.html index.htm;
                try_files $uri $uri/ /index.php?$uri&$args;
        
            }


    then restart nginx

    still need those answers though to help you

    • what version of centmin mod used ? 123.08stable or 123.09beta01 ?
    • when was centmin mod installed ?
    • have you made any updates to centmin mod via centmin.sh menu option 23 yet ?
    • have you done any php upgrades via centmin.sh menu option 4 and 5 yet ?
    • installed any centmin mod addons ? like phpmyadmin.sh ? i see in one of your errors you have phpmyadmin.sh installed ? i masked the exact url to your install to keep it private :)
    • what version of nginx and php used ? output for these commands
      Code (Text):
      nginx -V
      php -v
      Instead of screenshots, might want to copy and paste output and use CODE tags for code How to use forum BBCODE code tags :)
     
    Last edited: Oct 11, 2016
    • Like Like x 1
  14. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    9:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  15. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM
    Code:
    [root@li866-82 ~]# nginx -V
    
    nginx version: nginx/1.11.4
    
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    
    built with LibreSSL 2.4.3
    
    TLS SNI support enabled
    
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro' --with-cc-opt='-m64 -mtune=native -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_realip_module --with-http_geoip_module --with-openssl-opt=enable-tlsext --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../nginx-http-concat-master --add-module=../memc-nginx-module-0.17 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_devel_kit-0.3.0 --add-module=../set-misc-nginx-module-0.30 --add-module=../echo-nginx-module-0.59 --add-module=../redis2-nginx-module-0.13 --add-module=../ngx_http_redis-0.3.7 --add-module=../nginx_upstream_check_module-0.3.0 --add-module=../nginx-module-vts --add-module=../headers-more-nginx-module-0.30 --with-openssl=../libressl-2.4.3 --with-libatomic --with-pcre=../pcre-8.38 --with-pcre-jit
    
    [root@li866-82 ~]#
    
    Code:
    [root@li866-82 centminmod]# php -v
    Cannot load Zend OPcache - extension already loaded
    PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1685 but version 1686 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
    PHP 5.6.26 (cli) (built: Oct 10 2016 21:53:35)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    [root@li866-82 centminmod]# 
    I'M USING CENTIMINMOD 123.08stable
    Access Log
    [​IMG]

    Error Log

    [​IMG]
     
    Last edited: Oct 11, 2016
  16. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    9:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    when you see that, run centmin.sh menu option 15 to recompile imagick php extension after a yum imagemagick package update

    for access and errors logs don't use image screenshots instead copy and paste into pastebin.com or gist.gitub.com entries you can link to
     
  17. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM
    Last edited: Oct 11, 2016
  18. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    9:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  19. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    7:00 PM
  20. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    9:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    remove below as it's already included in include /usr/local/nginx/conf/php.conf file as per Xenforo - My xenforo site get HTTP ERROR 500 | Centmin Mod Community
    Code (Text):
      location ~ \.php$ {
        try_files $uri =404;
        fastcgi_pass    127.0.0.1:9000;
        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include         fastcgi_params;
      }
     
    • Like Like x 1