• 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

Article ID: 115733 from KB: Downgrading PHP 5.3 has a bug

Antonio Sanchez

New Pleskian
Hello all,

Yesterday I tryed to downgrade default PHP version from Plesk 11 to a PHP 5.2.17 in a CentOS 6 VE.

I followed the instructions on the KB Article 115733 and I have found a problem in the last sentence.

It says:
Code:
yum downgrade $(rpm -qa --qf "%{NAME} " | grep -v ioncube | grep ^php | awk '{print $1"-5.2.17"}')

The "Query Format" of the YUM command has a missing "\n" (new line) and so the regular expressions don't show any result.

To solve it this should be the right sentence:
Code:
yum downgrade $(rpm -qa --qf "%{NAME}\n" | grep -v ioncube | grep ^php | awk '{print $1"-5.2.17"}')

I hope it could help someone

Greetings
 
Last edited:
Back
Top