Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
plesk_php_issue [2019/06/03 20:07]
qtwrk created
plesk_php_issue [2019/06/03 20:58]
Lisa Clarke Moved to better URL
Line 1: Line 1:
-====== PHP Configuration Issue in Plesk ====== +~~REDIRECT>​litespeed_wiki:​plesk:​mismatched_php_config~~
- +
-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 +
- +
-{{:litespeed_wiki:​plesk:​plesk-lsphp1.png|}} +
- +
-upload_max_filesize is set to 128MB and post_max_size is set to 128MB, but phpinfo shows different default/​different number. +
- +
-{{:​litespeed_wiki:​plesk:​plesk-lsphp2.png|}} +
- +
- +
-===== How To Fix ===== +
- +
- +
-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. +
- +
-{{:​litespeed_wiki:​plesk:​plesk-lsphp3.jpg|}} +
- +
- +
-Now check the phpinfo page again , the value should be updated as it is set. +
- +
-{{:​litespeed_wiki:​plesk:​plesk-lsphp77.png|}} +
- +
- +
- +
- +
-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 , +
- +
-{{:​litespeed_wiki:​plesk:​plesk-lsphp4.jpg|}} +
- +
-go to ''​Tools & Settings'', ​ ''​PHP Settings''​ +
- +
-{{:​litespeed_wiki:​plesk:​plesk-lsphp55.png|}} +
- +
-Click the grey dot in front of the handler to enable it. +
- +
-{{:​litespeed_wiki:​plesk:​plesk-lsphp6.jpg|}} +
- +
  • Admin
  • Last modified: 2019/06/03 20:58
  • by Lisa Clarke