cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to install extension requires PHP version >= 5.2.0 and <= 6.0. [solved]

Problem to install extension requires PHP version >= 5.2.0 and <= 6.0. [solved]

Hello everyone, as you will see the following problem:

 

 

install: Package community/MercadoPagoTransparent 2.7.10: requires PHP version  >= 5.2.0 and <= 6.0.0  current is: 7.0.31-1+0~20180725100316.2+stretch~1.gbp8e8a8b

Server characteristics:

 

  1. Core XEON E5 4 Core
  2. 11Gb Ram
  3. WebMin
  4. VirtualMin
  5. Installed for webinstaller
  6. CE 1.9.3.9
  7. Selected in panel Control 5.6 PHP installed
  8. Selected "alias php='/usr/bin/php5.6'
  9. Exec Magento connect error  channel is not installed. Please use the MAGE shell script to install the
  10. Exec n98 extension install error php please 5.2 or => 6.0 ver
  11. Exec Mage install error php please 5.2 or =>  6.0 ver
  12. Other install CE installed to n98 work ok Magento connect.
  13. Info.php print this message: Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

I need your advice to solved this Case.

Note: This installation of magento is from a package provided from themeforest original package install and updated copy by n98

 

 php.ini.user:

php.ini

Version php 

 

PHP 5.6.37-1+0~20180725093819.2+stretch~1.gbp606419 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
===============================================================================
===============================================================================
PHP 5.6.37-1+0~20180725093819.2+stretch~1.gbp606419 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
displaycenter@vmi191609:~/public_html$ php7.0 -v
PHP 7.0.31-1+0~20180725100316.2+stretch~1.gbp8e8a8b (cli) (built: Jul 25 2018 10:03:18) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.31-1+0~20180725100316.2+stretch~1.gbp8e8a8b, Copyright (c) 1999-2017, by Zend Technologies

 

Update Smiley Happy  Install php5.6 in debian 9 and run this command solved problem to try from ssh:

sudo update-alternatives --config php
PHP 5.6.37-1+0~20180725093819.2+stretch~1.gbp606419 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
displaycenter@vmi191609:~/public_html$ php7.0 -v
PHP 7.0.31-1+0~20180725100316.2+stretch~1.gbp8e8a8b (cli) (built: Jul 25 2018 10:03:18) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.31-1+0~20180725100316.2+stretch~1.gbp8e8a8b, Copyright (c) 1999-2017, by Zend Technologies
displaycenter@vmi191609:~/public_html$ update-alternatives --config php
There are 3 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
------------------------------------------------------------
  0            /usr/bin/php7.2   72        auto mode
  1            /usr/bin/php5.6   56        manual mode
* 2            /usr/bin/php7.0   70        manual mode
  3            /usr/bin/php7.2   72        manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/php5.6 to provide /usr/bin/php (php) in manual mode
update-alternatives: error: error creating symbolic link '/etc/alternatives/php.dpkg-tmp': Permission denied
cloud@server:~/public_html$ sudo update-alternatives --config php
[sudo] password for displaycenter:
There are 3 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
------------------------------------------------------------
  0            /usr/bin/php7.2   72        auto mode
  1            /usr/bin/php5.6   56        manual mode
* 2            /usr/bin/php7.0   70        manual mode
  3            /usr/bin/php7.2   72        manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/php5.6 to provide /usr/bin/php (php) in manual mode
cloud@server:~/public_html$ ./mage install-file  /home/user/public_html/downloader/.cache/community/MercadoPagoTransparent-2.7.10.tgz
Package installed: community/MercadoPagoTransparent 2.7.10