Home » Php » php – 500 Internal Server Error – Log Location?

php – 500 Internal Server Error – Log Location?

Posted by: admin July 12, 2020 Leave a comment

Questions:

I’m running a Linux server with cPanel installed.

I keep getting a 500 error when visiting a certain page, but I’m trying to find the logs that can provide me with more information.

Here’s one place I’ve found some logs for it:

/usr/local/apache/domlogs/mydomain.com

But all that has is generic information stating that a 500 error occurred, but not necessarily what caused it. Where should I be looking for that information?

How to&Answers:

Running Apache2 in a CentOS, you can check the logs with the following command:

tail /usr/local/apache/logs/error_log