When deploying the code, a 500 error occurred
However, neither the error log of www-error.log defined under php-fpm nor the error log defined by nginx shows anything
You can use the following method
strace $(pidof’php-fpm’|sed’s/\([0-9]*\)/-p \1/g’) -e write -e read -s 1024
Use strace to monitor the read and write function calls of the fpm process
You can see errors like this
Wrong password or no permission when connecting to mysql
Just do the corresponding processing
Read More:
- PHP file download, download failed, nginx open() nginx / fastcgi_ temp/2/10/0000000102“ failed (13: Permission denied)
- [PHP] Solve the limitation of uploading files in nginx php 413 Request Entity Too Large
- [PHP] Solve the problem that the new version of Chrome’s same-site policy cannot record cookies across domains
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- How to Solve PHP Error: no package’oniguruma’ found
- How to solve Magento 500 internal server errors
- Laravel-admin php artisan admin:install error reporting problem solution
- [PHP] Solve Call-time pass-by-reference has been removed
- [Solved] cURL error 60: SSL certificate problem: unable to get local issuer certificate
- [Solved] iis cURL error 60: SSL certificate problem: unable to get local issuer certificate
- How to Solve phpExcel Error: ERR_INVALID_RESPONSE
- [Solved] PHP Fatal error: Uncaught Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes
- PHP solves the problem that composer exceeds the memory size Allowed memory size
- PHP curl error: SSL certificate problem: unable to get local issuer certificate settlement program
- How to Solve opcache error: zend_mm_heap corrupted
- Error while injecting dependencies into App\Controller\IndexController: No entry or class found for
- [PHP] Solve PHP Call to undefined function ldap_connect()
- [Solved] has been blocked by CORS policy: Response to preflight request doesn‘t pass access control check: No
- How to Solve PHP Fatal error: Namespace declaration statement has to be the very first statement
- /www/server/php/56/sbin/php-fpm:error while loading shared libraries:libssl.so.1.0. 0:cannot open shared object file:No such file or directory