• 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

PHP Upgrade not detected

Roberto1

New Pleskian
Hi,
I have upgraded PHP from 5.3 to 5.5 on a CentOS server.
I did not know I could do it using Plesk itself, so instead I replaced the old PHP via command line using another repository.

Before the upgrade, from my server components page, I could see PHP listed here:
https://my.server:8443/plesk/server/components/
It was something like 'php' and version '5.3.3.el6' or similar

But now it's gone. And when I add a new Subscription, I can't sync it with the plan, because it says that some of the plan's default resources or services are unavailable, followed by the table below. I apologize but my Plesk installation is in Italian so I cannot post the exact error message. And I translated the table text so it might be slighly different from the English one

Property | Subscription value | Plan values | Available values | Sites involved
PHP support | inactive | active | inactive | site.com
Run php as | Apache module | Apache module | FastCGI Application | site.com


Is there a way I can tell Plesk I have upgraded PHP and being able to sync subscriptions again?
Also, I'm not sure if it matters, but I'm running Plesk 10.4.4 (I couldn't find a forum for it)

Thanks,
Rob
 
Last edited:
If anyone has the same problem, here's how I solved it:

Plesk automatically deletes the db rows from psa.ServiceNodeProperties if it doesn't detect it as installed any longer.
So after removing the old PHP (php-common-5.3.3-27.el6_5.2.x86_64), that row was deleted.

All I had to do was to find out the current package:

# rpm -qa | grep php
php55w-xml-5.5.18-1.w6.x86_64
php5-ioncube-loader-4.0.7-11082515.x86_64
php55w-pear-1.9.4-7.w6.noarch
php55w-common-5.5.18-1.w6.x86_64
php55w-gd-5.5.18-1.w6.x86_64
php55w-intl-5.5.18-1.w6.x86_64
php55w-process-5.5.18-1.w6.x86_64
php55w-mbstring-5.5.18-1.w6.x86_64
php55w-mysql-5.5.17-1.w6.x86_64
php55w-cli-5.5.18-1.w6.x86_64
php55w-devel-5.5.18-1.w6.x86_64
php55w-pdo-5.5.18-1.w6.x86_64
php55w-imap-5.5.18-1.w6.x86_64
psa-php5-configurator-1.6.1-cos6.build1013111101.14.x86_64
php55w-5.5.18-1.w6.x86_64

Out of the list of packages, identify the one you need. Mine was php55w-common-5.5.18-1.w6.x86_64
An then re-insert the new row in the psa db:

insert into ServiceNodeProperties set serviceNodeId=1, name='server.packages.php', value='php55w-common-5.5.18-1.w6.x86_64';

Rob
 
Back
Top