[Tutorial] How to enable PHP error log

edited March 28 in Tutorials
For OpenLiteSpeed:

in your vhost conf , as screenshot

add the code in this section

phpIniOverride {
php_admin_value error_log "php_error.log"
php_admin_value display_errors "on"

and restart OpenLiteSpeed.

second line is optional , it will display error , sometimes it is not preferred the visitor to see the error message, as it might contain sensitive information , should only use display_errors on dev site.

the php_error.log file will be at your /home/

For LiteSpeed Enterprise:

use that same code as above , insert it after

CacheRoot lscache

as my screenshot , save and restart LSWS
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!