How to enable php display_error on in my cPanel

 ̄綄美尐妖づ 提交于 2020-01-05 04:04:27

问题


I went through whatever is there and it showed me to add these two lines in my .htaccess file.

php_flag display_errors on 
php_value error_reporting "E_ALL & ~E_STRICT & ~E_NOTICE"

But then I get this error log message :

Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

There is a very popular question in stackoverflow : here but there also it has been answered considering that the user has a local server. Here I am writing the php scripts direclty on my hostgator cPanel and want to see the line number and other useful information for debugging, but still nothing useful I found.

And doing a bit more digging here tells that I need to add my own php.ini file. But even when I added the php.ini file and added those two lines nothing is shown. So how can someone debug the php code if writing the script direcly on the cPanel ?

来源:https://stackoverflow.com/questions/39201110/how-to-enable-php-display-error-on-in-my-cpanel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!