disable error reporting in cpanel

lse

Active Member
May 5, 2016
39
0
6
Polis, Cyprus
cPanel Access Level
Root Administrator
disable error reporting can be done from cpanel as well as define and activate 404 page???

how?
cent os 6.7 vps cpanel
  • WHM 56.0 (build 16)
 
Last edited by a moderator:

sarath8372

Active Member
Jan 6, 2015
35
7
8
Kochi, India
cPanel Access Level
Root Administrator
Hello,

You can disable PHP error reporting simply by putting a php.ini file under document root of the site with following line :

display_errors = Off

You can create a custom 404 error page from cPanel using Error Pages (cPanel >> Advanced >> Error Pages). Please refer : Error Pages - Documentation - cPanel Documentation