Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
litespeed_wiki:plesk:php_selector [2019/11/26 16:15]
qtwrk
litespeed_wiki:plesk:php_selector [2019/11/26 16:17]
Lisa Clarke Copyediting
Line 1: Line 1:
-====== Plesk PHP Selector and CloudLinux PHP Selector Conflict ====== +A recent ​Plest update changed the PHP configuration within the Apache configuration. This may interfere with LiteSpeed Web Server, Plesk PHP Selector, and CloudLinux PHP Selector.
-A recent ​Plesk update changed the PHP configuration within the Apache configuration. This may interfere with LiteSpeed Web Server, Plesk PHP Selector, and CloudLinux PHP Selector.+
  
-===== Symptom=====+===== Symptom =====
  
 No matter what PHP version you choose in CloudLinux PHP Selector, PHPinfo shows the PHP version that was selected in the Plesk PHP setting. No matter what PHP version you choose in CloudLinux PHP Selector, PHPinfo shows the PHP version that was selected in the Plesk PHP setting.
Line 10: Line 9:
 There are two possible solutions for this issue. There are two possible solutions for this issue.
  
-===== Solution 1=====+===== Solution 1 =====
  
 Use Plesk PHP Selector to choose an alt-php, such as ''​alt-php51-fastcgi''​. Please note, you must choose ''​fastcgi''​ in order for LSWS to work properly. Use Plesk PHP Selector to choose an alt-php, such as ''​alt-php51-fastcgi''​. Please note, you must choose ''​fastcgi''​ in order for LSWS to work properly.
Line 16: Line 15:
 {{ :​litespeed_wiki:​plesk:​plesk-alt-php2.jpg |}} {{ :​litespeed_wiki:​plesk:​plesk-alt-php2.jpg |}}
  
-===== Solution 2=====+===== Solution 2 =====
  
 If Plesk PHP Selector is no longer needed, since CloudLinux PHP Selector pretty much covers all of the PHP settings and extensions, you could choose to use CloudLinux PHP Selector exclusively. This will completely disable the Plesk PHP Selector, which means no matter which PHP you choose in Plesk Selector, it will have no effect at all, and only the setting in CloudLinux Selector will be obeyed. If Plesk PHP Selector is no longer needed, since CloudLinux PHP Selector pretty much covers all of the PHP settings and extensions, you could choose to use CloudLinux PHP Selector exclusively. This will completely disable the Plesk PHP Selector, which means no matter which PHP you choose in Plesk Selector, it will have no effect at all, and only the setting in CloudLinux Selector will be obeyed.
Line 26: Line 25:
 {{ :​litespeed_wiki:​plesk:​plesk-alt-php3.jpg |}} {{ :​litespeed_wiki:​plesk:​plesk-alt-php3.jpg |}}
  
-After the external app is created, go to the **Script Handler** page, and create multiple handlers''​php'',''​php44'',''​php51'',''​php52'',''​php53'',''​php54'',''​php55'',''​php56'',''​php70'',''​php71'',''​php72'',''​php73''​ as seen in the screenshot.+After the external app is created, go to the **Script Handler** page, and create multiple handlers''​php'',''​php44'',''​php51'',''​php52'',''​php53'',''​php54'',''​php55'',''​php56'',''​php70'',''​php71'',''​php72'',''​php73''​. Be sure to change **Handler Name** to ''​lsphp_selector''​ for each suffix, ​as seen in the screenshot.
  
 {{ :​litespeed_wiki:​plesk:​plesk-alt-php4.jpg |}} {{ :​litespeed_wiki:​plesk:​plesk-alt-php4.jpg |}}
- 
-Settings in text format: 
- 
-Suffixes: ''​php''​ 
- 
-Handler Type: ''​LiteSpeed API''​ 
- 
-Handler Name: ''​lsphp_selector''​ 
- 
  
 Now all of the handlers will use same ''​lsphp''​ binary that is controlled by the CloudLinux Selector. Now all of the handlers will use same ''​lsphp''​ binary that is controlled by the CloudLinux Selector.
  • Admin
  • Last modified: 2022/05/30 18:03
  • by George Wang