Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
litespeed_wiki:plesk:php_500_error [2020/01/07 16:33] qtwrk |
litespeed_wiki:plesk:php_500_error [2022/08/30 22:29] (current) qtwrk |
||
---|---|---|---|
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|}} | ||