PHP error messages leaking server username


Jurassic Moderator
Staff member
Oct 19, 2014
cPanel Access Level
Root Administrator
Hey there! All Apache logs will show the full path to the file causing the issue, which will include the username. There's two options to take care of this.

The first option, if you see this only happening inside that specific plugin, would be to work with the developer of the plugin to see if they can change that.

The second option, if you see this happening in multiple areas of the site and not just related to that specific plugin, would be to edit the PHP configuration and make sure the display_errors option is off. This will still write the error to the log files on the server, but it won't show them in the browser. You can do that from WHM >> MultiPHP INI Editor, after choosing the version of PHP you want to adjust.