If you are using XAMPP to develop PHP software (WordPress, Joomla!) on OSX you might want to get some advanced logging output from your code. PHP provides nice error_log() function, but it is silent by default. Here are short instructions how to enable it and follow the log.
Use your favorite editor to edit php.ini file in /Applications/XAMPP/etc/php.ini – sudo priviledges needed, Smultron does it out of the box.
Change lines:
log_errors = Off
;error_log = filename
To:
log_errors = on
error_log = /tmp/php.log
Restart Apache using XAMPP controller in Finder -> Applications.
Now use the following UNIX command to see continuous log flow in your terminal:
tail -f /tmp/php.log
See also the earlier article about XAMPP and file permissions.
Subscribe to RSS feed Follow me on Twitter Follow me on Facebook Follow me Google+
Pingback: PHP Error Log für XAMPP aktivieren | codingcouch Blog