To find where your PHP Error Log File Reside, you can do 2 ways as below:
1. Using phpinfo()
Create a php file on your web server with content below:
phpinfo(); |
Name it something likes phpinfo123.php and browse it on your browser. Then try to search with this keyword “error_log”, you should see a line similar to this:
error_log C:\Windows\temp\php-errors.log C:\Windows\temp\php-errors.log |
2. Using your php.ini
Open your php.ini file, it should be located at:
+ C:\Program Files (x86)\PHP on Windows operating system
+ /etc/php.ini on Linux/Unix environment
Find out the line that read as follows:
error_log |