Welcome to Centmin Mod Community
Become a Member

PHP 5.6.12

Discussion in 'Bug Reports' started by Tracy Perry, Sep 4, 2015.

  1. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    7:22 AM
    1.21.6
    MariaDB 10.3.36
    Was trying to upgrade to the latest PHP via the CentMin Mod option 5.
    This is what I get (and php.net shows that 5.6.12 is the latest stable)
    Code:
    * Upgrading PHP
    *************************************************
    tar (child): php-5.6.12.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 256: cd: php-5.6.12: No such file or directory


     
  2. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    sounds like maybe the tarball failed to download completely in /svr-setup so the incomplete .tar.gz is being extracted which = invalid file try manually removing the file first

    Code:
    rm -rf /svr-setup/php-5*
    then re-run centmin.sh menu option 5

    if you're Centmin Mod version is pretty old, I'd also update it to latest first Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS so to ensure the php routine and download urls are up to date.
     
  3. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    7:22 AM
    1.21.6
    MariaDB 10.3.36
    Will try that.. but did a git update from the CentMin menu before I did that.. another issue (actually 2) is that compiling nginx gives an error for the pcre-jit and then the
    Code:
    Starting nginx: nginx: [emerg] unknown directive "vhost_traffic_status" in /usr/local/nginx/conf/vts_mainserver.conf:5
    and another vts_ conf file.
    When I did the git update, it said I had the latest.
    Code:
    Saved working directory and index state WIP on 123.08beta03: ace3532 update installer.sh
    HEAD is now at ace3532 update installer.sh
    Already up-to-date.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what was pcre-jit specific error ? sounds like you had a few downloads in /svr-setup fail to completely download ?

    for vhost_traffic_status did you disable it from centmin.sh NGINX_VHOSTSTATS=n ?

    make sure after git update, you exit centmin.sh menu option 24 and re-change back into /usr/local/src/centminmod before running centmin.sh menu options as well
     
  5. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    7:22 AM
    1.21.6
    MariaDB 10.3.36
    Tried the PHP update/change after issuing the RM command - here is what I got
    Code:
    Detected PHP 5.6 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y
    
    *************************************************
    * Zend Optimizer Plus OPcache installed
    *************************************************
    *************************************************
    * Upgrading PHP
    *************************************************
    tar (child): php-5.6.12.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 256: cd: php-5.6.12: No such file or directory
    
    *************************************************
    * Updating php.ini...
    *************************************************
    old php.ini will be saved at /usr/local/lib/php.ini-oldversion_040915-092801
    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 299: ./buildconf: No such file or directory
    make: *** No rule to make target `clean'.  Stop.
    ../configure --enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-config-file-scan-dir=/etc/centminmod/php.d
    inc/php_configure.inc: line 220: ../configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.001s
    user    0m0.001s
    sys    0m0.000s
    make: *** No rule to make target `install'.  Stop.
    
    real    0m0.001s
    user    0m0.001s
    sys    0m0.000s
    
    strip PHP binary...
    -rwxr-xr-x 1 root root 9.0M Sep  4 09:04 /usr/local/bin/php
    -rwxr-xr-x 1 root root 9.0M Sep  4 09:04 /usr/local/bin/php-cgi
    -rwxr-xr-x 1 root root 9.0M Sep  4 09:29 /usr/local/bin/php
    -rwxr-xr-x 1 root root 9.0M Sep  4 09:29 /usr/local/bin/php-cgi
    
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    *************************************************
    
    Fri Sep  4 09:29:14 EDT 2015
    Success: PHP configure ok
    
    *************************************************
    make -j9
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.001s
    user    0m0.001s
    sys    0m0.000s
    *************************************************
    
    Fri Sep  4 09:29:15 EDT 2015
    Error: 2, PHP make failed (1.2.3-eva2000.08)
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what does the output of look like
    Code:
    ls -lAhrt /svr-setup
    also check php upgrade log in /root/centminlogs
    Code:
    ls -lAhrt /root/centminlogs
    you can post php upgrade log contents in pastebin.com or gist.github.com
     
  7. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    7:22 AM
    1.21.6
    MariaDB 10.3.36
    I'm about to remove the current version and pull a new one in fresh.

    Nope, because I'm assuming this is new from my older one I was using.
    Did... still no workee.
     
  8. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    7:22 AM
    1.21.6
    MariaDB 10.3.36
    LS output - Pastebin.com
    Update log for php 5.6.12 - Pastebin.com

    That's what I've got so far.. but about to pull it and try fresh.[/QUOTE]
     
  9. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    7:22 AM
    1.21.6
    MariaDB 10.3.36
    OK.. apparently the GIT update I did was not very nice... it appears to be working now.
     
  10. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Glad to hear.. any errors or messages you can share ?
     
  11. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    7:22 AM
    1.21.6
    MariaDB 10.3.36
    Will get them posted after I get through.. all my sites are currently down because of the errors and nginx not restarting after the update.
     
  12. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    10:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    k then :)