This article is a mirror article of machine translation, please click here to jump to the original article.

View: 6608|Reply: 1

How to view error information when PHP reports 500 errors

[Copy link]
Posted on 3/9/2020 10:40:01 PM | | | |
Just add the following two lines of code to the execution code



or

This will display the specific PHP error on the page




Modify php.ini file and php-fpm.conf
php.ini file is in the distro I am using /etc/php/<版本号>/cli/php.ini
php-fpm.conf file in /etc/php/7.2/fpm/php-fpm.conf
If you can't find it, you can use find /etc -name php.ini search
Search for both options in the file and modify it to On








Previous:admin deleted this post. I can't find the delete button
Next:PC version of batch image watermark adding software
Posted on 3/11/2020 12:34:44 PM |
The final solution, delete the php code little by little until it returns 200, and then find the problem with those functions.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com