Where is the php error log location

Don

Verified User
Joined
Mar 7, 2020
Messages
5
Where is the php error log location inside Directadmin for a normal access user without SSH. Can it be locate inside Directadmin user panel?
 
Do you see an error_log or similar in your site's document root? Perhaps via File Manager?
 
Aren't php errors also logged in your domains error logfile? You should be able to visit that one via your DA panel as user under Site Summary / Statistics / Logs.

Otherwise, in apache, you could add something like this temporarily in the .htaccess file:
Code:
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag  log_errors on
php_value error_log  /home/user/domains/domain.com/public_html/PHPERROR.log
 
@wattie That's the same I pointed out in my first reply "Site Summary / Statistics / Logs".
Those are the webserver domain error logs. They do not always show all php errors as I discovered. That's why I wrote the additional .htaccess option.
 
Back
Top