Plesk

phpinfo page shows wrong information in CloudLinux when PHP Selector is used in Plesk

Question

Plesk is installed on CloudLinux. CageFS in turned on and PHP Selector is installed.

Each domain of the subscription example.com has PHP version 5.3.29. phpinfo pages for these domains show PHP version 5.3.29.

Changing the PHP version to 5.4.45 for any domain of the subscription example.com is not reflected on the domains' phpinfo page. Why is version 5.3.29 still shown?

Answer

PHP version of PHP Selector overrides PHP version in Plesk.

As a result, any changes of PHP version in Subscriptions > example.com > PHP Settings do not have an impact.

There are two ways to prioritize PHP version set in Plesk over the version set in the PHP Selector:

Note: if LSPHP is used PHP selector has to be used because Plesk does not support LSPHP.