CyberHosting

[Tutorial] How to enable PHP error log

edited March 28 in Tutorials
For OpenLiteSpeed:

in your vhost conf , as screenshot

https://i.imgur.com/kxStLX0.png


add the code in this section


<code>
phpIniOverride {
php_admin_value error_log "php_error.log"
php_admin_value display_errors "on"
}
</code>

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/domain.com/public_html/php_error.log


For LiteSpeed Enterprise:

use that same code as above , insert it after

CacheRoot lscache

as my screenshot , save and restart LSWS

https://i.imgur.com/mhA1u8p.png
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!