Internal Error 500 Apache, but nothing in the logs?

后端 未结 11 578
失恋的感觉
失恋的感觉 2020-11-27 14:36

I\'m getting 500 Internal Server errors when I try to make an HTTP POST to a specific address in my app. I\'ve looked into the server logs in the custom log directory speci

11条回答
  •  一生所求
    2020-11-27 14:56

    The answers by @eric-leschinski is correct.

    But there is another case if your Server API is FPM/FastCGI (Default on Centos 8 or you can check use phpinfo() function)

    In this case:

    1. Run phpinfo() in a php file;
    2. Looking for Loaded Configuration File param to see where is config file for your PHP.
    3. Edit config file like @eric-leschinski 's answer.
    4. Check Server API param. If your server only use apache handle API -> restart apache. If your server use php-fpm you must restart php-fpm service

      systemctl restart php-fpm

      Check the log file in php-fpm log folder. eg /var/log/php-fpm/www-error.log

提交回复
热议问题