Join the community today
Become a Member

Install PHP 7.0.20 installation errors on fresh centmin installation

Discussion in 'Install & Upgrades or Pre-Install Questions' started by noly, Jul 29, 2017.

  1. noly

    noly Premium Member Premium Member

    82
    11
    8
    Jul 24, 2017
    Germany
    Ratings:
    +22
    Local Time:
    6:00 PM
    1.13.x
    10.x
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.3
    • PHP Version Installed: 7.0.20
    • MariaDB MySQL Version Installed: 10.1.25
    • When was last time updated Centmin Mod code base ? : code is uptodate
    • Persistent Config:
      NGXDYNAMIC_NGXPAGESPEED='y'
      NGINX_PAGESPEED='y'

    On a fresh centmin installation when upgrading to PHP 7.0.20 i get the following errors...

    Code:
    HTTP/1.1 404 Not Found
    
    ...
    
    PHP was not installed properly
    ...
    
    configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
    
    php_configure.inc make -j2
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.002s
    user    0m0.000s
    sys    0m0.002s
    
    make: *** No rule to make target `install'.  Stop.
    
    real    0m0.002s
    user    0m0.002s
    sys    0m0.000s
    
    strip PHP binary...
    ls: cannot access /usr/local/bin/php: No such file or directory
    ls: cannot access /usr/local/bin/php-cgi: No such file or directory
    strip: '/usr/local/bin/php': No such file
    strip: '/usr/local/bin/php-cgi': No such file
    ls: cannot access /usr/local/bin/php: No such file or directory
    ls: cannot access /usr/local/bin/php-cgi: No such file or directory
    
    ...
    
    Starting php-fpm /etc/init.d/php-fpm: line 69: /usr/local/sbin/php-fpm: No such file or directory
     failed
    
    ...
    
    PHPMUVER = 7.0
    PHP_PGO = n
    make -j2
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.002s
    user    0m0.002s
    sys    0m0.000s
    
    Sat Jul 29 12:08:28 UTC 2017
    Error: 2, PHP make failed (1.2.3-eva2000.09.005)

     
  2. ArisC

    ArisC Member

    43
    14
    8
    Jun 1, 2017
    Ratings:
    +21
    Local Time:
    7:00 PM
    Nginx 1.13.6
    MariaDB 10.1.28

    Try 7.0.21
     
    • Optimistic Optimistic x 1
  3. noly

    noly Premium Member Premium Member

    82
    11
    8
    Jul 24, 2017
    Germany
    Ratings:
    +22
    Local Time:
    6:00 PM
    1.13.x
    10.x
    Same same. :-/

    Code:
    PHP was not installed properly
     
  4. ArisC

    ArisC Member

    43
    14
    8
    Jun 1, 2017
    Ratings:
    +21
    Local Time:
    7:00 PM
    Nginx 1.13.6
    MariaDB 10.1.28
  5. eva2000

    eva2000 Administrator Staff Member

    30,862
    6,905
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,397
    Local Time:
    3:00 AM
    Nginx 1.13.x
    MariaDB 5.5
  6. ArisC

    ArisC Member

    43
    14
    8
    Jun 1, 2017
    Ratings:
    +21
    Local Time:
    7:00 PM
    Nginx 1.13.6
    MariaDB 10.1.28
    Im Getting the same error.... Clean Installation Let'sEncrypt="y" also getting 403 forbidden...
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,862
    6,905
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,397
    Local Time:
    3:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    • What version of Centmin Mod ? .07 stable or .08 stable or .09 beta01 ? Was it fresh install or upgrade ? How long ago did you install Centmin Mod ? There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.
    • What version of PHP used ? Did you upgrade or downgrade PHP recently ? Which version did you upgrade from ?
    • If you upgrade to PHP 7.0.* it doesn't support memcache, igbinary, geoip or imagick PHP extensions. If you're testing PHP 7, on restarting PHP-FPM you will get some PHP warnings that some PHP extensions are unable to load as PHP 7 doesn't support them. So all you need to do is delete the releveant *.ini files for them


    Every centmin.sh menu option has a full server log created with time stamped file name at /root/centminlogs. You can check that specific error log for clues or copy and paste log contents and post to pastebin.com or gist.github.com for sharing.

    To troubleshoot, you need to check the the php upgrade logs 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 nginx_upgrade and php_upgrade logs. You can see full details at How to troubleshoot Centmin Mod initial install issues

    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 php_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.

    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 a specific log, in this case most recent php_upgrade.log logs

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
     
  8. noly

    noly Premium Member Premium Member

    82
    11
    8
    Jul 24, 2017
    Germany
    Ratings:
    +22
    Local Time:
    6:00 PM
    1.13.x
    10.x
    Fresh installations and upgrading to php 7.0.20 or 7.0.21 went smooth now. :)

    Thank you so much @eva2000 for keeping your ears open to alarm bells. :love:
     
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    30,862
    6,905
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,397
    Local Time:
    3:00 AM
    Nginx 1.13.x
    MariaDB 5.5
  10. ArisC

    ArisC Member

    43
    14
    8
    Jun 1, 2017
    Ratings:
    +21
    Local Time:
    7:00 PM
    Nginx 1.13.6
    MariaDB 10.1.28
    • Like Like x 1