To disable generating the file error_log under public_html folder: Log in to cPanel. Click Select PHP Version. Click Switch To PHP Options Set log_errors to Off Click Save