• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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