1. Edit the /etc/php.ini configuration file
vim /etc/php.ini
2. Modify the error prompt range
3. Turn on the error prompt
4. Add read and write permissions and restart related services
Recommended tutorial: centos tutorial
The above is the detailed content of How to enable php error log in centos. For more information, please follow other related articles on the PHP Chinese website!