recommended error messages settings

Wesley_J

Verified User
Joined
Dec 8, 2021
Messages
6
Hello,

I am a WordPress developer. I now have DirectAdmin for hosting package control. I have some questions about the PHP settings for display_errors and error_reporting.

I disabled display_errors. And error_reporting is set at ~E_ALL.

Also, I don't see any effect of the changes I made in DA. (so if I run a PHP test script to produce an error I still see the error message)

Should the server restart? And who is supposed to restart the server?

What I want is to avoid that error messages are not shown when the site is live and there are coincidentally errors.

What are the recommended settings?
 
Should the server restart? And who is supposed to restart the server?
No the service should be restarted, and who should do that? Well you if you're the admin now. :)

What are the recommended settings?
That depends on how the system is used. You should be able to do that domain wise.

But if you want that for the whole server, unchangeable via DA panel, then you might better change the according php.ini file.

Suppose you are using php-fpm 7.4 then change it in:
/usr/local/php74/lib/php.ini
for 7.3 change 74 to 73 and so on.

After that, restart the according php-fpm version and apache.
For example from SSH:
service php-fpm74 restart service httpd restart

But you can also restart services from your DA panel as admin, use admin level in that case.
 
Back
Top