PHP stores error logs in /var/log/apache2 if PHP is an apache2 module. Shared
hosts are often storing log files in your root directory /log subdirectory. If
you are using cPanel, the master log is stored in
/usr/local/apache/logs/error_log.
You can change the log file location in the php.ini configuration file:
You can check the PHP configuration at any time by running the following PHP code:
Got an article suggestion?
Let us know
BY
NC
SA
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.