CentOS PHP 开发,启用自动报错

sudo vim /etc/php.ini

display_errors = On
error_reporting = E_ALL | E_STRICT

sudo vim /etc/httpd/conf/httpd.conf

php_flag display_errors on
php_value error_reporting 2039

sudo service httpd restart

你可能感兴趣的:(centos,PHP)