Differences

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

Link to this comparison view

Last revision Both sides next revision
plesk_php_issue [2019/06/03 20:07]
qtwrk created
plesk_php_issue [2019/06/03 20:52]
Lisa Clarke Copyediting
Line 1: Line 1:
-====== PHP Configuration ​Issue in Plesk ======+====== ​Plesk Mismatched ​PHP Configuration ======
  
-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.+In certain ​cases you may see that a PHP setting in the panel is not corresponding with the one you see on the phpinfo page. Typically this can happen with **upload_max_filesize** and **post_max_size**
  
-For example , PHP is set to 7.3.5 , but phpinfo shows 7.2.18+In this example, ​**upload_max_filesize** ​is set to ''​128M''​ and **post_max_size** is set to ''​128M''​, but phpinfo shows ''​2M''​ and ''​8M'',​ respectively.
  
-{{:​litespeed_wiki:​plesk:​plesk-lsphp1.png|}}+{{:​litespeed_wiki:​plesk:​plesk-lsphp2.png|}}
  
-upload_max_filesize is set to 128MB and post_max_size ​is set to 128MB, but phpinfo shows different default/​different number.+Also, the PHP version may not match the one you set in PHP settings. For example, the panel'​s PHP version ​is set to ''​7.3.5''​, but phpinfo shows ''​7.2.18''​.
  
-{{:​litespeed_wiki:​plesk:​plesk-lsphp2.png|}}+{{:​litespeed_wiki:​plesk:​plesk-lsphp1.png|}}
  
  
-===== How To Fix =====+===== How to Fix the Issue =====
  
 +LiteSpeed on Plesk requires the PHP handler to be set to ''​FastCGI application''​. When it is set to ''​FPM application'',​ it may result in an inability to apply PHP settings.
  
-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. +Log in to Plesk, ​navigate ​to the website'​s ​**PHP settings** pageset **run PHP as** to ''​FastCGI application''​and save.
- +
-Login to Plesk panel go to website'​s ​''​PHP settings''​choose ​''​FastCGI application''​ and save it.+
  
 {{:​litespeed_wiki:​plesk:​plesk-lsphp3.jpg|}} {{:​litespeed_wiki:​plesk:​plesk-lsphp3.jpg|}}
  
- +Now check the phpinfo page again. The values ​should ​now match.
-Now check the phpinfo page again , the value should ​be updated as it is set.+
  
 {{:​litespeed_wiki:​plesk:​plesk-lsphp77.png|}} {{:​litespeed_wiki:​plesk:​plesk-lsphp77.png|}}
  
 +**NOTE** As of LSWS v5.3, with the introduction of PHP Detached Mode (which is the default), the application of the new configuration may be delayed. A new configuration only takes effect once lsphp is restarted. You will either need to wait for the lsphp process to time out and fork again, or you can manually kill it.
  
- +==== What if FastCGI is Not an Option? ​==== 
- +If the FastCGI option is not shown, it may have been disabled.
-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|}} {{:​litespeed_wiki:​plesk:​plesk-lsphp4.jpg|}}
  
-go to ''​Tools & Settings'', ​ ''​PHP Settings''​+Navigate ​to **Tools & Settings ​PHP Settings**.
  
 {{:​litespeed_wiki:​plesk:​plesk-lsphp55.png|}} {{:​litespeed_wiki:​plesk:​plesk-lsphp55.png|}}
  • Admin
  • Last modified: 2019/06/03 20:58
  • by Lisa Clarke