• 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

plesk12 centos6 php5 yum update

Noturns

Regular Pleskian
Hello, i have a couple of questions as i recently found out my Centos6.6 with MariaDBv10 and Plesk12 has a CentALT repository has updates enabled and now asks if i want to upgrade PHP components. I do not use any other third party for example Atomic/Remi repo's.

PHP packages:
Code:
# rpm -qa | grep php
php5-ioncube-loader-4.6.0-14042516.x86_64
php-mysql-5.3.3-40.el6_6.x86_64
psa-phpmyadmin-4.2.5-cos6.build1200140702.16.noarch
plesk-aps-php-runtime-12.0.18-1016274.14060313.noarch
php-cli-5.3.3-40.el6_6.x86_64
php-5.3.3-40.el6_6.x86_64
php-xml-5.3.3-40.el6_6.x86_64
psa-phppgadmin-5.1-cos6.build1200140423.17.noarch
php-pdo-5.3.3-40.el6_6.x86_64
php-mbstring-5.3.3-40.el6_6.x86_64
php-gd-5.3.3-40.el6_6.x86_64
php-common-5.3.3-40.el6_6.x86_64
php-imap-5.3.3-40.el6_6.x86_64
psa-php5-configurator-1.6.3-cos6.build1200140526.11.x86_64


Yum update:
Code:
===================================================================================================================

Package                       Arch                  Version                          Repository              Size
===================================================================================================================
Installing:
php55-mysqlnd                 x86_64                5.5.11-1.el6                     CentALT                261 k
     replacing  php-mysql.x86_64 5.3.3-40.el6_6
Updating:
bind                          x86_64                41:9.9.5-1.P1.el6                CentALT                2.4 M
bind-libs                     x86_64                41:9.9.5-1.P1.el6                CentALT                2.3 M
bind-utils                    x86_64                41:9.9.5-1.P1.el6                CentALT                120 k
httpd                         x86_64                2.2.29-1.el6                     CentALT                892 k
httpd-tools                   x86_64                2.2.29-1.el6                     CentALT                 62 k
mod_ssl                       x86_64                1:2.2.29-1.el6                   CentALT                 82 k
perl-DBD-MySQL                x86_64                4.020-1.el6                      CentALT                142 k
php                           x86_64                5.3.28-4.el6                     CentALT                2.3 M
php-cli                       x86_64                5.3.28-4.el6                     CentALT                2.2 M
php-common                    x86_64                5.3.28-4.el6                     CentALT                904 k
php-gd                        x86_64                5.3.28-4.el6                     CentALT                133 k
php-imap                      x86_64                5.3.28-4.el6                     CentALT                 70 k
php-mbstring                  x86_64                5.3.28-4.el6                     CentALT                896 k
php-pdo                       x86_64                5.3.28-4.el6                     CentALT                110 k
php-xml                       x86_64                5.3.28-4.el6                     CentALT                160 k
postfix                       x86_64                2:2.11.1-0.el6                   CentALT                2.7 M
scl-utils                     x86_64                20120927-27.el6_6                updates                 22 k
Installing for dependencies:
distcache                     x86_64                1.4.5-23                         CentALT                112 k
php55-common                  x86_64                5.5.11-1.el6                     CentALT                1.0 M
php55-pdo                     x86_64                5.5.11-1.el6                     CentALT                109 k
t1lib                         x86_64                5.1.2-6.el6_2.1                  base                   160 k

Transaction Summary
===================================================================================================================
Install       5 Package(s)
Upgrade      17 Package(s)

Code:
file /etc/php.ini conflicts between attempted installs of php55-common-5.5.11-1.el6.x86_64 and php-common-5.3.28-4.el6.x86_64
  file /usr/lib64/php-zts/modules/curl.so conflicts between attempted installs of php55-common-5.5.11-1.el6.x86_64 and php-common-5.3.28-4.el6.x86_64
  file /usr/lib64/php-zts/modules/fileinfo.so conflicts between attempted installs of php55-common-5.5.11-1.el6.x86_64 and php-common-5.3.28-4.el6.x86_64
  file /usr/lib64/php-zts/modules/phar.so conflicts between attempted installs of php55-common-5.5.11-1.el6.x86_64 and php-common-5.3.28-4.el6.x86_64
  file /usr/lib64/php/modules/curl.so conflicts between attempted installs of php55-common-5.5.11-1.el6.x86_64 and php-common-5.3.28-4.el6.x86_64
  file /usr/lib64/php/modules/fileinfo.so conflicts between attempted installs of php55-common-5.5.11-1.el6.x86_64 and php-common-5.3.28-4.el6.x86_64
  file /usr/lib64/php/modules/phar.so conflicts between attempted installs of php55-common-5.5.11-1.el6.x86_64 and php-common-5.3.28-4.el6.x86_64
  file /usr/lib64/php-zts/modules/pdo.so conflicts between attempted installs of php55-pdo-5.5.11-1.el6.x86_64 and php-pdo-5.3.28-4.el6.x86_64
  file /usr/lib64/php-zts/modules/pdo_sqlite.so conflicts between attempted installs of php55-pdo-5.5.11-1.el6.x86_64 and php-pdo-5.3.28-4.el6.x86_64
  file /usr/lib64/php-zts/modules/sqlite3.so conflicts between attempted installs of php55-pdo-5.5.11-1.el6.x86_64 and php-pdo-5.3.28-4.el6.x86_64
  file /usr/lib64/php/modules/pdo.so conflicts between attempted installs of php55-pdo-5.5.11-1.el6.x86_64 and php-pdo-5.3.28-4.el6.x86_64
  file /usr/lib64/php/modules/pdo_sqlite.so conflicts between attempted installs of php55-pdo-5.5.11-1.el6.x86_64 and php-pdo-5.3.28-4.el6.x86_64
  file /usr/lib64/php/modules/sqlite3.so conflicts between attempted installs of php55-pdo-5.5.11-1.el6.x86_64 and php-pdo-5.3.28-4.el6.x86_64


First question
Was Plesk shipped with CentALT repo?
Are CentALT (repo mirrors) still supported?
(perhaps a stupid question ... can i remove the CentALT repo and how do i do that?)

Second question
I currently have manually disabled CentALT repo updates because this was loading PHP5.5 updates that could not be installed -- as seen above. Please advise how and if i should consider an PHP upgrade through CentALT or other procedure and if i require to upgrade in steps from PHP 5.3 - to - 5.4 - to 5.5 ?

Third question
I stumbled on recent similar topic 1 and topic 2 and i don't understand at this moment what the correct way of accomplishing the upgrade is with minimum upgrade complication issues for Plesk and CentOS.

I look forward in reading your replies and learn from your experiences. Thanks.
 
We do not support CentALT repository officially.
Why you do not want to use official "Multiple PHP" feature? For implementation you can use official method from Plesk documentation/KB or Atomic Panda method.
 
For some reason i have failed to correctly register the latest php_handler

[upgrade manual] - Step 2.

Code:
# make install
Installing shared extensions:     /usr/local/php563-cgi/lib/php/extensions/no-debug-non-zts-20131226/
Installing PHP CLI binary:        /usr/local/php563-cgi/bin/
Installing PHP CLI man page:      /usr/local/php563-cgi/php/man/man1/
Installing PHP CGI binary:        /usr/local/php563-cgi/bin/
Installing PHP CGI man page:      /usr/local/php563-cgi/php/man/man1/
Installing build environment:     /usr/local/php563-cgi/lib/php/build/
Installing header files:          /usr/local/php563-cgi/include/php/
Installing helper programs:       /usr/local/php563-cgi/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php563-cgi/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/php563-cgi/pear/
[PEAR] Archive_Tar    - installed: 1.3.12
[PEAR] Console_Getopt - installed: 1.3.1
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.3
[PEAR] PEAR           - installed: 1.9.5
Wrote PEAR system config file at: /usr/local/php563-cgi/etc/pear.conf
You may want to add: /usr/local/php563-cgi/pear to your php.ini include_path
/usr/local/src/php563/build/shtool install -c ext/phar/phar.phar /usr/local/php563-cgi/bin
ln -s -f /usr/local/php563-cgi/bin/phar.phar /usr/local/php563-cgi/bin/phar
Installing PDO headers:          /usr/local/php563-cgi/include/php/ext/pdo/



# /usr/local/psa/bin/php_handler --add -displayname php-5.6.3 -path /usr/local/php563-cgi/bin/php-cgi -phpini /usr/local/php563-cgi/etc/php.ini -type fastcgi -id 2

final check
Code:
# /usr/local/psa/bin/php_handler --list
      id:  display name:  full version:  version:    type:          cgi-bin:  php-cli:      php.ini:  custom:
      cgi          5.3.3          5.3.3       5.3      cgi  /usr/bin/php-cgi            /etc/php.ini    false
  fastcgi          5.3.3          5.3.3       5.3  fastcgi  /usr/bin/php-cgi            /etc/php.ini    false
   module          5.3.3          5.3.3       5.3   module  /usr/bin/php-cgi            /etc/php.ini    false


Question regarding http://kb.odin.com/en/118378 - step 1.9

In my case PHP has been built on production server.
I should skip 1.9 and continue with step 1.10, however it is not clear to me as the file name from step 1.9 does not exist and i should continue with step 1.11 instead

[Skip this step if PHP has been built on production environment] Archive the compiled PHP and transfer it to your Plesk server.

Please note that the full path to the directory containing the compiled PHP on the Plesk server must be the same as on the source server:

# cd /usr/local/src/
# tar cjvf php563.tar.bz2 php563
# scp php563.tar.bz2 root@<your_plesk_server_ip>:/usr/local/src
 
Last edited:
i have failed to correctly register the latest php_handler

Do you have any errors in output of this command? I think that problem may be related to -id option.

I should skip 1.9 and continue with step 1.10, however it is not clear to me as the file name from step 1.9 does not exist and i should continue with step 1.11 instead

Do you mean php563.tar.bz2 filename? It is just sample in LB article and in your case it may be other filename according to downloaded version of php source.
 
I might need to retry it again in order to see where it went wrong
as i probably did not understood the article :)

Do you mean php563.tar.bz2 filename? It is just sample in LB article and in your case it may be other filename according to downloaded version of php source.
PHP version that i used was php563 same as mentioned in the article - maybe i copied and paste too much from the article to terminal

Do you have any errors in output of this command? I think that problem may be related to -id option
If i remember correctly a PEAR PHP module error was shown because extention was not loaded.
Unfortunate i have already restored the server snapshot and my putty logfile is overwritten.

- I will try it again later this week.
 
Back
Top