Get the most out of your Centmin Mod LEMP stack
Become a Member

PHP-FPM I can not upgrade php 5.3.28 to php 5.4

Discussion in 'Install & Upgrades or Pre-Install Questions' started by computer19852007, Jul 4, 2015.

  1. computer19852007

    computer19852007 Member

    53
    5
    8
    Jun 25, 2014
    Ratings:
    +5
    Local Time:
    11:27 PM
    Centmin Mod 1.2.3-eva2000.06
    MariaDB 5.5.34
    I can not upgrade php 5.3.28 to php 5.4
    I have used centos 6.6 x64bit, Please Help me @eva2000

    Code:
    PHP Upgrade - Would you like to continue? [y/n] y
    
    Install which version of PHP? (version i.e. 5.4.33): 5.4.33
    Do you want to update to latest php-fpm.conf ? It will overwrite your existing p
    hp-fpm.conf [y/n]: y
    Does this server have less than <=2048MB of memory installed ? [y/n]: y
    *************************************************
    * Upgrading PHP
    *************************************************
    yum -y erase php*
    Loaded plugins: downloadonly, fastestmirror, priorities
    Setting up Remove Process
    No Match for argument: php-5.3.28
    Loading mirror speeds from cached hostfile
    * base: centos.usonyx.net
    * epel: mirror.smartmedia.net.id
    * extras: centos.usonyx.net
    * rpmforge: mirror.smartmedia.net.id
    * updates: centos.usonyx.net
    1647 packages excluded due to repository priority protections
    No Match for argument: php-5.3.28.tar.gz
    No Packages marked for removal
    --2015-07-04 12:34:07--  http://php.net/get/php-5.4.33.tar.gz/from/this/mirror
    Resolving php.net... 72.52.91.14, 2a02:cb41::7
    Connecting to php.net|72.52.91.14|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: http://php.net/distributions/php-5.4.33.tar.gz [following]
    --2015-07-04 12:34:07--  http://php.net/distributions/php-5.4.33.tar.gz
    Connecting to php.net|72.52.91.14|:80... connected.
    HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
    
        The file is already fully retrieved; nothing to do.
    
    tar (child): php-5.4.33.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    inc/php_upgrade.inc: line 180: cd: php-5.4.33: No such file or directory
    
    *************************************************
    * Updating php.ini...
    *************************************************
    old php.ini will be saved at /usr/local/lib/php.ini-oldversion_040715-123040
    if you have modified your old php.ini i.e. installed and loaded
    APC, Xcache, Memcache or Suhosin - please re-install them after php upgrade
    ...
    cp: cannot stat `php.ini-production': No such file or directory
    
    make: *** No rule to make target `clean'.  Stop.
    inc/php_upgrade.inc: line 223: ./buildconf: No such file or directory
    make: *** No rule to make target `clean'.  Stop.
    ../configure --enable-cgi --enable-fpm --enable-pcntl --disable-fileinfo --with-
    mhash --with-zlib --with-gettext --enable-intl --enable-exif --enable-zip --with
    -bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-s
    ysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=
    mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mys
    ql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calen
    dar --enable-ftp --enable-gd-native-ttf --with-freetype-dir=lib64 --with-jpeg-di
    r=lib64 --with-png-dir=lib64 --with-xpm-dir=lib64 --enable-pdo --with-pdo-sqlite
    --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-s
    sl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --wit
    h-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fil
    einfo --with-config-file-scan-dir=/etc/centminmod/php.d
    inc/php_configure.inc: line 130: ../configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.002s
    user    0m0.001s
    sys     0m0.000s
    make: *** No rule to make target `install'.  Stop.
    
    real    0m0.002s
    user    0m0.001s
    sys     0m0.000s
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    *************************************************
    
    Sat Jul  4 12:34:09 UTC 2015
    Success: PHP configure ok
    
    *************************************************
    make -j2
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.002s
    user    0m0.001s
    sys     0m0.000s
    *************************************************
    
    Sat Jul  4 12:34:10 UTC 2015
    Error: 2, PHP make failed (1.2.3-eva2000.07)
    
    *************************************************
    
    ccache stats:
    cache directory                     /home/.ccache
    cache hit (direct)                    69
    cache hit (preprocessed)               0
    cache miss                          3855
    called for link                      352
    called for preprocessing             308
    compile failed                        64
    preprocessor error                    43
    bad compiler arguments                60
    unsupported source language           38
    autoconf compile/link                625
    unsupported compiler option           11
    no input file                        128
    files in cache                      8349
    cache size                         223.7 Mbytes
    max cache size                       2.0 Gbytes
    
    THanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,573
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,755
    Local Time:
    2:27 AM
    Nginx 1.13.x
    MariaDB 5.5
    First ensure you're on latest centmin mod .07 stable code as some bug fixes were for broken php.net download urls or latest .08 beta 03

    Second remove all php downloads form /svr-setup as it could be a partial or incomplete php tarball download

    Code:
    rm -rf /svr-setup/php-5.4*
    Third then run centmin.sh menu option 5 to upgrade and FYI, latest PHP 5.4 is = 5.4.42

    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code which you downloaded via zip file or via github. 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 is best.
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.

    There's 3 ways you can upgrade your .07 stable or .08 beta03 code you have on your server. They are outlined in respective upgrade sections of the first posts linked below:
    1. For .07 stable 1st post see section on upgrades Install - Centmin Mod 1.2.3-eva2000.07 stable install
    2. For .08 beta 03 1st post see section on upgrade to latest code CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ?
    3. For either .07 stable or .08 beta03 via github command line Upgrade - Working with git command line for updating Centmin Mod local copies
    Github commit log for
     
    • Useful Useful x 1