Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:directadmin:custombuild-installation [2018/03/07 17:19]
Eric Leu [Switching between Apache and LiteSpeed]
litespeed_wiki:directadmin:custombuild-installation [2018/04/02 19:17]
Eric Leu [Setup CloudLinux Selector PHP version]
Line 80: Line 80:
  
 ====== Setup Multi PHP version ====== ====== Setup Multi PHP version ======
-for Custombuild2 PHP1_release=5.6,​ PHP2_release=7.1 as example. \\+For Custombuild2 PHP1_release=5.6,​ PHP2_release=7.1 as example. \\
 Login as user level -> click domain settings and you will see: \\ Login as user level -> click domain settings and you will see: \\
 {{:​litespeed_wiki:​directadmin:​da-4.png?​600|}} \\ {{:​litespeed_wiki:​directadmin:​da-4.png?​600|}} \\
-Note: Before setup multi PHP version, please make sure PHP handler setup already.+Note:  
 +  - Before setup multi PHP version, please make sure PHP handler setup already. 
 +  - May need to restart web server to make settings effect 
 + 
 + 
 +====== Setup CloudLinux Selector PHP version ====== 
 +  - From CageFS User Manager add user as Enabled user 
 +  - LVE Manager set Default php version to **Native** 
 +  - Login as user level -> Choose **Select PHP version** to the version you want.  
 +====Verify method====  
 +''​su - USER_ACCOUNT -s /​bin/​bash''​ \\ 
 +''​php -v''​ \\ 
 +Then you should see the version you choose from **Select PHP version** ​
  
 ====== Troubleshooting ====== ====== Troubleshooting ======
Line 103: Line 115:
       <​note></​note>​       <​note></​note>​
     </​scriptHandler>​     </​scriptHandler>​
 +3. **PHP select not working** ​   ​
 +  - Check php1 by ''​grep php1 /​usr/​local/​directadmin/​custombuild/​options.conf''​
 +  - Check config file, e.g. ''/​usr/​local/​directadmin/​data/​users/​USER_ACCOUNT/​httpd.conf''​
 +  - Check PHP selector setup correctly through LiteSpeed web admin
 +  - If you change some php settings, sometimes may need to rebuild to make it works
 +  - Re-add user account to Cagefs
  • Admin
  • Last modified: 2020/04/28 13:02
  • by Jackson Zhang