Why error log in PHP is disabled as default?

Kaan Helmut

New member
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

Moderator
Staff Member
Joined
Jan 18, 2017
Messages
567
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

Moderator
Staff Member
Joined
Mar 5, 2021
Messages
57
Points
6
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.
 
Latest Threads
Replies
1
Views
26
Replies
1
Views
37
Replies
5
Views
48
Replies
0
Views
50
Replies
2
Views
56

Latest postsNew threads

Sponsors

Latest Blog ArticlesMost Viewed Threads

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