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
litespeed_wiki:plesk:php_500_error [2020/01/02 15:14]
qtwrk
litespeed_wiki:plesk:php_500_error [2022/08/30 22:29] (current)
qtwrk
Line 5: Line 5:
  
   * ''/​var/​www/​vhosts/​example.com/​httpdocs/''​   * ''/​var/​www/​vhosts/​example.com/​httpdocs/''​
-  * ''/​var/​www/​vhosts/​example.com/​sub1.example.com/httpdocs/''​ +  * ''/​var/​www/​vhosts/​example.com/​sub1.example.com/''​ 
-  * ''/​var/​www/​vhosts/​example.com/​sub2.example.com/httpdocs/''​+  * ''/​var/​www/​vhosts/​example.com/​sub2.example.com/''​
  
 You may see the 500 error in either the parent domain or one of the subdomains, depending on which domain is accessed first and where lsphp is started. You'll see an entry like this in the debug log: You may see the 500 error in either the parent domain or one of the subdomains, depending on which domain is accessed first and where lsphp is started. You'll see an entry like this in the debug log:
Line 24: Line 24:
 There are several ways to solve this issue: There are several ways to solve this issue:
  
-  ​If you have CageFS, there might not be much extra benefit to using open_basedir,​ so the simplest solution is to turn it off. +  ​If you have CageFS, there might not be much extra benefit to using open_basedir,​ so the simplest solution is to turn it off. 
-  ​Change open_basedir from ''​{DOCROOT}''​ to  ''​{WEBSPACEROOT}'',​ though this will not apply individual open_basedir to each subdomain. + 
-  ​Edit ''/​usr/​local/​lsws/​conf/​httpd_config.xml'',​ insert the line ''<​phpAppByDomain>​1</​phpAppByDomain>''​ anywhere between ''<​phpConfig>''​ and ''</​phpConfig>'',​ as seen in the screenshot below, then restart LSWS, killing lsphp if necessary.+  ​Change open_basedir from ''​{DOCROOT}''​ to  ''​{WEBSPACEROOT}'',​ though this will not apply individual open_basedir to each subdomain. 
 + 
 +  ​Edit ''/​usr/​local/​lsws/​conf/​httpd_config.xml'',​ insert the line ''<​phpAppByDomain>​1</​phpAppByDomain>''​ anywhere between ''<​phpConfig>''​ and ''</​phpConfig>'',​ as seen in the screenshot below, then restart LSWS, killing lsphp if necessary.
  
 {{:​litespeed_wiki:​plesk:​screenshot2019-12-2413.26.05.png|}} {{:​litespeed_wiki:​plesk:​screenshot2019-12-2413.26.05.png|}}
  
  • Admin
  • Last modified: 2020/01/02 15:14
  • by qtwrk