Logs and Debugging

Logs can be very helpful when troubleshooting and debugging issues on your WordPress sites. To view your WordPress logs, navigate to the <projectPath>/logs/ folder on your hard drive and open any log file in your favorite text editor.

The default <projectPath> is /Users/user/DevKinsta

WordPress Debug Log

On your site’s info page, enable WP_DEBUG. Enabling this in DevKinsta will also enable saving errors to your site’s debug.log file. Read more on wordpress.org

Enable WP_DEBUG on your site in DevKinsta.
Enable WP_DEBUG on your site in DevKinsta.



Access Log

The access log is a log of all requests processed by DevKinsta. When you visit your site in a browser, the request is logged in the access.log file with the following data:

  • Date and time
  • Request (Method and URI)
  • HTTP Status Code (200 if everything is fine).
  • Bytes sent
  • HTTP referer
  • User-agent
  • HTTP X Forwarded for




[30/Dec/2020:13:49:35 +0000] "GET /wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.0 HTTP/1.1" 200 2897 "http://testsite.local/?skip_cache=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Electron/9.0.5 Safari/537.36" "-"

Error Log

Specific PHP errors are logged in the _error.log file.




To view the PHP FastCGI Process Manager logs (PHP-FPM logs), check the file that corresponds to the PHP version used by your local WordPress site.



Service Logs

To view Docker container logs, use the commands below in the terminal/command line:

NGINX logs: docker logs -f devkinsta_nginx

PHP-FPM logs: docker logs -f devkinsta_fpm

MariaDB logs: docker logs -f devkinsta_db

MailHog logs: docker logs -f devkinsta_mailhog