Differences

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

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:plesk:php_selector [2019/11/26 00:31]
qtwrk created
litespeed_wiki:plesk:php_selector [2022/05/30 18:03] (current)
George Wang [Solution 2]
Line 1: Line 1:
-In recent ​Plesk update ​, it changed PHP configuration ​inside ​Apache configuration ​which may interfere ​LiteSpeed WebServer ​with Plesk PHP selector ​and CloudLinux PHP Selector.+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.
  
-===== 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 ​chose in CloudLinux PHP Selector , PHPinfo shows same PHP version selected in Plesk PHP setting.+
  
 {{ :​litespeed_wiki:​plesk:​plesk-alt-php1.png |}} {{ :​litespeed_wiki:​plesk:​plesk-alt-php1.png |}}
  
-===== Solution: ===== +There are two possible ​solutions for this issue.
- +
-There will be 2 solutions for this issue.+
  
-==== Solution 1====+===== Solution 1 =====
  
-Use Plesk PHP Selector to choose alt-php , such as ''​alt-php51-fastcgi'' ​ , please ​note must choose ''​fastcgi''​ in order for LSWS 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.
  
 {{ :​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 the PHP setting ​and extension ​, you could also choose to use CloudLinux PHP Selector ​, but this will completely disable the Plesk PHP Selector , which means no matter ​what 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.
  
-Login to LSWS webadmin console ​by accessing https://​SERVER_IP:​7088 ​+Login to LSWS WebAdmin Console ​by accessing ​''<​nowiki>​https://​SERVER_IP:​7088</​nowiki>'' ​
  
-Follow the CloudLinux ​[[https://​docs.cloudlinux.com/​cloudlinux_os_components/#​litespeed-support|doc]] to set up ''​lsphp_selector''​ external app as screenshot.+Follow the instructions in the [[https://​docs.cloudlinux.com/​cloudlinux_os_components/#​litespeed-support|CloudLinux ​ support documentation]] to set up the ''​lsphp_selector''​ external appas seen in the screenshot.
  
 {{ :​litespeed_wiki:​plesk:​plesk-alt-php3.jpg |}} {{ :​litespeed_wiki:​plesk:​plesk-alt-php3.jpg |}}
  
-After external app is created, ​now go to **Script Handler** page , create multiple handlers''​php'',''​php44'',''​php51'',''​php52'',''​php53'',''​php54'',''​php55'',''​php56'',''​php70'',''​php71'',''​php72'',''​php73''​ as 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''​,''​php74'',''​php80'',''​php81''​. The list can be adjusted based on actual usage. 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 |}}
  
-Now all the handler ​will use same ''​lsphp''​ binary that controlled by CloudLinux Selector.+Now all of the handlers ​will use same ''​lsphp''​ binary that is controlled by the CloudLinux Selector.
  • Admin
  • Last modified: 2019/11/26 00:31
  • by qtwrk