How to Stop warning messages and display only log_errors in PHP? [EASY GUIDE]☑️

How to Stop warning messages and display only log_errors in PHP? [EASY GUIDE]☑️

Today in this tutorial you will learn how to remove warning messages in PHP and display only error on cPanel/WHM server. But before beginning let us quick watch this video on how to stop warning messages and show only log_errors in PHP.

Follow the steps given below to remove warning messages in PHP and display only error on cPanel/WHM server:

Step::1 Login to WHM

Step::2 Navigate to Software

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Step::3 Click on MultiPHP INI Editor

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Step::4 Select the PHP version

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Step::5 Jump on to the Editor Mode and press ctrl+f to find error_reporting

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Step::6 The value should be something like “error_reporting= E_ALL & ~E_NOTICE

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Step::7 In the same manner search for “log_error

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Step::8 The value should be something like mentioned below log_errors=ON

Step::9 Again in the same manner search for “display_errors

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Step::10 The value should be something like mentioned below display_errors=OFF

That’s it!!!

If you are a normal cPanel user, then you can do this settings by following the steps given below:

Login to cPanel  > Software > MultiPHP INI Editor

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Jump to the Editor Mode and select the location from the drop-down

How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

Add these parameters in the Editor section and Save it.

error_reporting= E_ALL & ~E_NOTICE
log_errors=ON
display_errors=OFF
How to Stop warning messages and display only log_errors in PHP
How to Stop warning messages and display only log_errors in PHP

That’s it!!!

For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channelhttps://youtube.com/redserverhost.com

Facebook Page- https://facebook.com/redserverhost

Twitter Page- https://twitter.com/redserverhost.com

If you have any query, feel free to let us know via the comments section below.

Thanks for Reading!!!

Tags: cheap linux hostingbuy linux hostingcheap reseller hostingbuy reseller hostingbest reseller hostingcheap web hostingcheapest web hostingcheapest reseller hosting,  cheap reseller hostcheap linux hostcheapest linux hostingbest linux hostingbest web hosting

Scroll to Top