Enable Mac X PHP Error Logs

Enable Mac X PHP Error Logs
If your trying to figure out why a PHP module or plugin for a WordPress or Joomla website isn’t working, the PHP log files will help determine where the issue might be. In order to enable PHP log files for Mac, you need to make sure you have the following php.ini option enabled in your configuration file:
 
display_errors = on
 
Mac display php errors on
 




By default, the PHP logs go to the general Apache log file in Console in
 
/var/logs/apache2/error_log
 
You can set PHP error log files to go into a separate log container by uncommenting error_log line in php.ini and setting the logfile name to something like php_errors.log
 
 
 
* Please use the comment form below. Comments are moderated.*



Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Wednesday, 18 December 2024