• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Magento update to 2.1

CoyoteKG

Regular Pleskian
Hi, I'm trying to update Magento from 2.04 to 2.1
And I have problem with few things.

My main problem is with always_populate_raw_post_data in php.ini.
Magento says that it is 0, but it is not.
upload_2016-7-12_16-54-14.png


I already in Plesk panel added in "Additional configuration directives" that value.
Also, I checked it in /var/www/vhosts/system/domain/etc/php.ini, and there is also set -1.
And I checked phpinfo.php from Plesk, and installed new file in root of site and run it, and there is also -1
upload_2016-7-12_16-58-57.png

I also renamed files .setup_cronjob_status and .update_cronjob_status just to force Magento to recheck again, but results are the same...

From where magento read that "0" value?
 
OK, I tried to update it from Command-line with this guide.
But I received next error

Code:
limage@server:~$ cd map.px90.info/
limage@server:~/map.px90.info$ composer require magento/product-community-edition 2.1.0 --no-update
./composer.json has been updated
limage@server:~/map.px90.info$ composer update
Loading composer repositories with package information
    Authentication required (repo.magento.com):
      Username: cc************************079
      Password:
Do you want to store credentials for repo.magento.com in /var/www/vhosts/px90.info/.composer/auth.json ? [Yn] Y
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for magento/product-community-edition 2.1.0 -> satisfiable by magento/product-community-edition[2.1.0].
    - magento/product-community-edition 2.1.0 requires php ~5.6.0|7.0.2|~7.0.6 -> your PHP version (5.4.36) does not satisfy that requirement.

How it is possible that PHP version is 5.4.36, when in Panel I set it to 5.6.3?
upload_2016-7-12_17-29-0.png
 
Hi,
I'm not sure, but I think it's not good idea to update Magento through updater in the application or command line. As far as I know some of the original files are modified to solve some permission issues with default files.
You can update it through plesk app installer, Magento 2.1 is available now.
 
I don't know if I can update it via Plesk app installer, because I did not installed this Magento via app installer. I install it manually
 
How it is possible that PHP version is 5.4.36, when in Panel I set it to 5.6.3?
Because installer uses default system PHP from OS vendor - /usr/bin/php
But your subscription uses PHP from Plesk - /opt/plesk/php/<version>/bin/php
You can just update PHP from OS vendor to needed version.
 
Please, if you can direct me with some link, how to update PHP to 5.6

I tried to run this composer comand with, but without luck

Code:
limage@server:~/map.px90.info$ /opt/plesk/php/5.6/bin/php composer update
Could not open input file: composer
 
Because installer uses default system PHP from OS vendor - /usr/bin/php
But your subscription uses PHP from Plesk - /opt/plesk/php/<version>/bin/php
You can just update PHP from OS vendor to needed version.
Hi IgorG,
Again I have similar problems with always_populate_raw_post_data. Definitely I must to update PHP to newer version.
Current version of OS Vendor is 5.4.36
Can I update it via Plesk?
Is it good idea to update it to version 7.0?

Can you direct me with any link for updating?
 
Because installer uses default system PHP from OS vendor - /usr/bin/php
But your subscription uses PHP from Plesk - /opt/plesk/php/<version>/bin/php
You can just update PHP from OS vendor to needed version.
Hi Igor,
Today I updated OS version PHP
Code:
root@server / # php --version
PHP 5.6.25-1~dotdeb.7.1 (cli) (built: Aug 19 2016 03:15:37)
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
But I stil have this problem.
Also I tried to change PHP for that site to OS Vendor, and in Plesk I can't see that OS Vendor PHP version is updated. It still showing 5.4.36

upload_2016-8-30_13-22-0.png
 
Have you run

# plesk bin php_handler --reread

after php update?
 
Also here in Server components, still is 5.4.36
upload_2016-8-30_14-45-2.png



Code:
root@server / # plesk bin php_handler --reread
The information about PHP handlers was successfully updated.
 
Check output of following commands (my test server, for instance):

# whereis php
php: /usr/bin/php /etc/php.d /etc/php.ini /usr/lib/php /usr/share/php /usr/share/man/man1/php.1.gz

# /usr/bin/php -v
PHP 5.3.3 (cli) (built: Aug 11 2016 20:23:18)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.12, Copyright (c) 2002-2015, by ionCube Ltd.

# php -v
PHP 5.3.3 (cli) (built: Aug 11 2016 20:23:18)
 
Here it is.
Code:
root@server ~ # whereis php
php: /usr/bin/php /usr/bin/X11/php /usr/share/man/man1/php.1.gz

Code:
root@server ~ # /usr/bin/php -v
PHP 5.6.25-1~dotdeb.7.1 (cli) (built: Aug 19 2016 03:15:37)
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

Code:
root@server ~ # php -v
PHP 5.6.25-1~dotdeb.7.1 (cli) (built: Aug 19 2016 03:15:37)
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
 
What about php version by OS vendor in output of:

# plesk bin php_handler --list
 
It seems like it is 5.6 for OS Vendor, but Display name is wrong?
Code:
root@server ~ # plesk bin php_handler --list
                  id:        display name:  full version:  version:    type:                         cgi-bin:                    php-cli:                        php.ini:  custom:  status:
                  cgi  5.4.36 by OS vendor         5.6.25       5.6      cgi                /usr/bin/php5-cgi               /usr/bin/php5           /etc/php5/cgi/php.ini    false  enabled
              fastcgi  5.4.36 by OS vendor         5.6.25       5.6  fastcgi                /usr/bin/php5-cgi               /usr/bin/php5           /etc/php5/cgi/php.ini    false  enabled
               module  5.4.36 by OS vendor         5.6.25       5.6   module                /usr/bin/php5-cgi               /usr/bin/php5       /etc/php5/apache2/php.ini    false  enabled
      plesk-php56-cgi               5.6.24         5.6.24       5.6      cgi   /opt/plesk/php/5.6/bin/php-cgi  /opt/plesk/php/5.6/bin/php  /opt/plesk/php/5.6/etc/php.ini     true disabled
  plesk-php56-fastcgi               5.6.24         5.6.24       5.6  fastcgi   /opt/plesk/php/5.6/bin/php-cgi  /opt/plesk/php/5.6/bin/php  /opt/plesk/php/5.6/etc/php.ini     true  enabled
      plesk-php56-fpm               5.6.24         5.6.24       5.6      fpm  /opt/plesk/php/5.6/sbin/php-fpm  /opt/plesk/php/5.6/bin/php  /opt/plesk/php/5.6/etc/php.ini     true  enabled
      plesk-php70-cgi                7.0.9          7.0.9       7.0      cgi   /opt/plesk/php/7.0/bin/php-cgi  /opt/plesk/php/7.0/bin/php  /opt/plesk/php/7.0/etc/php.ini     true disabled
  plesk-php70-fastcgi                7.0.9          7.0.9       7.0  fastcgi   /opt/plesk/php/7.0/bin/php-cgi  /opt/plesk/php/7.0/bin/php  /opt/plesk/php/7.0/etc/php.ini     true  enabled
      plesk-php70-fpm                7.0.9          7.0.9       7.0      fpm  /opt/plesk/php/7.0/sbin/php-fpm  /opt/plesk/php/7.0/bin/php  /opt/plesk/php/7.0/etc/php.ini     true  enabled
 
Hi CoyoteKG,

pls. use:

Code:
plesk bin php_handler --update \
 -id "cgi" \
 -displayname "5.6.25 by OS vendor ( default )"

Code:
plesk bin php_handler --update \
 -id "fastcgi" \
 -displayname "5.6.25 by OS vendor ( default )"

Code:
plesk bin php_handler --update \
 -id "module" \
 -displayname "5.6.25 by OS vendor ( default )"

... followed by another re-read command for the handlers:

plesk bin php_handler --reread
 
You can change display name, at least, with something like

# plesk bin php_handler --update -displayname '5.6.25 by OS vendor' -id 'cgi'
 
OK, now is changed for cgi. Do I need to change that for "fstcgi" and "module"
Because, now in Plesk panel, for that Site I chosed new 5.6.25 OS Vendor, but site not working.

Code:
 # plesk bin php_handler --list
                  id:        display name:  full version:  version:    type:                         cgi-bin:                    php-cli:                        php.ini:  custom:  status:
                  cgi  5.6.25 by OS vendor         5.6.25       5.6      cgi                /usr/bin/php5-cgi               /usr/bin/php5           /etc/php5/cgi/php.ini    false  enabled
              fastcgi  5.4.36 by OS vendor         5.6.25       5.6  fastcgi                /usr/bin/php5-cgi               /usr/bin/php5           /etc/php5/cgi/php.ini    false  enabled
               module  5.4.36 by OS vendor         5.6.25       5.6   module                /usr/bin/php5-cgi               /usr/bin/php5       /etc/php5/apache2/php.ini    false  enabled
      plesk-php56-cgi               5.6.24         5.6.24       5.6      cgi   /opt/plesk/php/5.6/bin/php-cgi  /opt/plesk/php/5.6/bin/php  /opt/plesk/php/5.6/etc/php.ini     true disabled
  plesk-php56-fastcgi               5.6.24         5.6.24       5.6  fastcgi   /opt/plesk/php/5.6/bin/php-cgi  /opt/plesk/php/5.6/bin/php  /opt/plesk/php/5.6/etc/php.ini     true  enabled
      plesk-php56-fpm               5.6.24         5.6.24       5.6      fpm  /opt/plesk/php/5.6/sbin/php-fpm  /opt/plesk/php/5.6/bin/php  /opt/plesk/php/5.6/etc/php.ini     true  enabled
      plesk-php70-cgi                7.0.9          7.0.9       7.0      cgi   /opt/plesk/php/7.0/bin/php-cgi  /opt/plesk/php/7.0/bin/php  /opt/plesk/php/7.0/etc/php.ini     true disabled
  plesk-php70-fastcgi                7.0.9          7.0.9       7.0  fastcgi   /opt/plesk/php/7.0/bin/php-cgi  /opt/plesk/php/7.0/bin/php  /opt/plesk/php/7.0/etc/php.ini     true  enabled
      plesk-php70-fpm                7.0.9          7.0.9       7.0      fpm  /opt/plesk/php/7.0/sbin/php-fpm  /opt/plesk/php/7.0/bin/php  /opt/plesk/php/7.0/etc/php.ini     true  enabled
 
Back
Top