Why error log in PHP is disabled as default?

Kaan Helmut

New member
Registered
Joined
Aug 18, 2021
Messages
2
Points
1
Hello everyone,

I was not much of a PHP fan, because I've been using and creating websites on WordPress (the beloved drag and drop drama). When practicing on PHP, I learned about the php error logging and noticed that by default, the error log in PHP is disabled and you can enable the error log in one of two ways: by editing php. ini or by using ini_set. Fortunately, I found an article that helps me in enabling PHP error logging. I'm just curious to know that why on the initial stage they haven't build-up the criteria to be enabled before, I mean it will be good if the default function is enabled during the PHP error logging stuff.
 

AlbaHost

Well-known member
Moderator
Hosting Provider
Joined
Jan 18, 2017
Messages
809
Points
43
PHP logs are not by default disabled, but it's up to host to enable or disable it by default, this also depends on which panels.
 

S4 Hosting

Well-known member
Moderator
Hosting Provider
Joined
Mar 5, 2021
Messages
177
Points
16
More than 90% of people will use a CMS or other webapp (i.e. WordPress), install it using an online installer and never ever have any reason to look at PHP error logs.

So, there really isn't much need to have them enabled by default for most people, and if you do need them then you will also have the ability to enable them.
 

xiamuguizhi

New member
Registered
Joined
Oct 2, 2021
Messages
9
Points
1
In the development mode, the error log can help us find the problem effectively and quickly, but the error log in the online mode can easily reveal information that can be obtained by an attacker.
 
Latest Threads
Replies
1
Views
24
Replies
0
Views
176
Replies
1
Views
37
Replies
2
Views
81
Recommended Threads
Replies
8
Views
8,748
Replies
1
Views
3,349
Replies
9
Views
6,548
Replies
3
Views
3,286

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top