Learn about Centmin Mod LEMP Stack today
Register Now

Error on PHP 5.4 install/downgrade

Discussion in 'Bug Reports' started by rdan, Feb 8, 2016.

  1. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    1:18 PM
    Mainline
    10.2
    *************************************************
    * Upgrading PHP
    *************************************************
    US server detected
    HTTP/1.1 404 Not Found
    Initializing download: http://php.net/get/php-5.4.45.tar.xz/from/this/mirror
    HTTP/1.1 404 Not Found
    tar (child): php-5.4.45.tar.xz: 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 301: cd: php-5.4.45: No such file or directory

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    doh forgot php 5.4.45 doesn't offer a .tar.xz format only .tar.gz !
     
    Last edited: Feb 8, 2016
  3. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    1:18 PM
    Mainline
    10.2
    So still a bug?
    I need to support VB 3.8.8 :|
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    fixing now :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    1:18 PM
    Mainline
    10.2
    Works great now, even with PHP 5.3.29.
    Thanks!
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    thanks for confirmation :D
     
  8. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    2:18 AM
    10
    In case of a similar issue how can you make this change in local without having to wait you to upgrade the source in github?
    I mean, the only problem in this case was the file extension, how can be the source code modified to change the extension and then continue with the script execution?
    Just modifying the batch will be enough?
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    i added phpxz_detect function see Search · phpxz_detect · GitHub in inc/downloads.inc and call the function = phpxz_detect in phpgeolocation function as well as centmin.sh itself. phpgeolocation function detects your server location and assigns php download mirror according to your geographic location

    phpxz_detect function assigns to a PHPXZ_CHECK variable the php version Search · PHPXZ_CHECK · GitHub

    which then checks your php version and if it's <=5.4 assign download with .tar.gz or >5.4 assign download with .xz extension via logic at centminmod/downloads.inc at 123.09beta01 · centminmod/centminmod · GitHub