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

Error on PHP 5.4 install/downgrade

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

  1. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:59 PM
    1.11
    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

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:59 AM
    Nginx 1.13.x
    MariaDB 5.5
    doh forgot php 5.4.45 doesn't offer a .tar.xz format only .tar.gz !
     
    Last edited: Feb 8, 2016
  3. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:59 PM
    1.11
    10.2
    So still a bug?
    I need to support VB 3.8.8 :|
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:59 AM
    Nginx 1.13.x
    MariaDB 5.5
    fixing now :)
     
    • Winner Winner x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:59 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  6. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    10:59 PM
    1.11
    10.2
    Works great now, even with PHP 5.3.29.
    Thanks!
     
    • Like Like x 1
  7. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:59 AM
    Nginx 1.13.x
    MariaDB 5.5
    thanks for confirmation :D
     
    • Friendly Friendly x 1
  8. elargento

    elargento Member

    293
    16
    18
    Jan 4, 2016
    Ratings:
    +39
    Local Time:
    11:59 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

    30,156
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    12:59 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Useful Useful x 1