This is an old revision of the document!


PHP Configuration Issue in Plesk

In certain case you may see PHP setting in panel is not corresponding with the ones you see in phpinfo page , typically upload_max_filesize and post_max_size, or PHP version doesn't match the one you set in PHP settings.

For example , PHP is set to 7.3.5 , but phpinfo shows 7.2.18

upload_max_filesize is set to 128MB and post_max_size is set to 128MB, but phpinfo shows different default/different number.

LiteSpeed on Plesk requires PHP handler to be set FastCGI , when it is set to PHP-FPM , it could result in PHP setting can not be applied.

Login to Plesk panel , go to website's PHP settings, choose FastCGI application and save it.

Now check the phpinfo page again , the value should be updated as it is set.

Please also be aware that after LSWS 5.3, PHP Detached mode is introduced and made default , which may delay the apply for new configuration as it only takes effect once lsphp has been restarted, you may need to manually kill lsphp process or wait for it timeout and fork again for new request.

Note

If FastCGI option is not shown, it may have been disabled ,

go to Tools & Settings, PHP Settings

Click the grey dot in front of the handler to enable it.

  • Admin
  • Last modified: 2019/06/03 20:07
  • by qtwrk