Join the community today
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

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    3:16 PM
    1.11.5
    MariaDB 10.0.28
    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

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:16 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    3:16 PM
    1.11.5
    MariaDB 10.0.28
    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.
     
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:16 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    3:16 PM
    1.11.5
    MariaDB 10.0.28
    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)
     
    • Informative Informative x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:16 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    3:16 PM
    1.11.5
    MariaDB 10.0.28
    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

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    3:16 PM
    1.11.5
    MariaDB 10.0.28
    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]
     
    • Informative Informative x 1
  9. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    3:16 PM
    1.11.5
    MariaDB 10.0.28
    OK.. apparently the GIT update I did was not very nice... it appears to be working now.
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:16 AM
    Nginx 1.13.x
    MariaDB 5.5
    Glad to hear.. any errors or messages you can share ?
     
  11. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    3:16 PM
    1.11.5
    MariaDB 10.0.28
    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

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:16 AM
    Nginx 1.13.x
    MariaDB 5.5
    k then :)