Default PHP Log File Location on CentOS 8

I set up a small web server to let my users run some simple PHP scripts. It was running fine for a few years and I didn’t have to troubleshoot any PHP related issues.

I got a report about a possible PHP problem. Looked under /var/log/httpd and did not find anything related to PHP. Checked php.ini, but the log file was not explicitly defined. Finally found it after viewing the output of phpinfo(). The default PHP log file location is


This post may contain affiliated links. When you click on the link and purchase a product, we receive a small commision to keep us running. Thanks.

Be the first to comment

Leave a Reply