Discover Centmin Mod today
Register Now

PHP-FPM PHP Downgrade Error

Discussion in 'Install & Upgrades or Pre-Install Questions' started by ivanc82, Dec 6, 2017.

  1. ivanc82

    ivanc82 New Member

    24
    2
    3
    Dec 1, 2015
    Ratings:
    +4
    Local Time:
    9:24 AM
    1.11.4
    MariaDB 10
    • Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.7
    • PHP Version Installed: 7.0.25
    • MariaDB MySQL Version Installed: 10.1.21
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 5
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? No

      When i try to downgrade (due to some incompatibility issue with Wordpress plugin) from the latest PHP 7.2.0 to 7.0.25, i get this error. How can i fix it

      PHP:
      PHP Warning:  PHP StartupUnable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.socannot open shared object fileNo such file or directory in Unknown on line 0
      PHP 7.0.25 
      (cli) (builtDec  6 2017 00:23:53) ( NTS )
      Copyright (c1997-2017 The PHP Group
      Zend Engine v3.0.0
      Copyright (c1998-2017 Zend Technologies
          with Zend OPcache v7.0.25
      Copyright (c1999-2017by Zend Technologies
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,021
    6,924
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,430
    Local Time:
    11:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    To troubleshoot, you need to check the the php upgrade or downgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Also post output for the following

    Code (Text):
    php -v
    php --ini
    php --ri 'Zend Opcache'
    ls -lah /usr/local/bin/php
    


    Code (Text):
    ls -lah $(cat /usr/local/bin/php-config | awk '/^extension_dir/ {extdir=$1} END {gsub(/\047|extension_dir|=|)/,"",extdir); print extdir}')


    If you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade or php in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    

    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    -rw-r--r--  1 root root  2.6M Oct  3 03:48 centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    -rw-r--r--  1 root root  664K Oct 12 09:24 centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    

    So the last php upgrade log was named centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    then use cat command to output the contents of that log. Do the same for any other relevant logs. i.e. if you ran centmin.sh menu option 10, you would have memcached_reinstall.log log too

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of 1 specific log, in this case most recent php_upgrade.log logs