Locating Error Logs and Database Backups

Error Logs #

Each time a PHP exception is thrown while Craft is running, the error will be logged in craft/storage/runtime/logs/craft.log.

When craft.log gets too big, Craft will automatically rename it to craft.log.1. If there’s already an existing craft.log.1, that will be renamed to craft.log.2, and so on. (Craft will keep up to 6 log files at a time, including the latest craft.log.)

If Dev Mode is enabled, there will be lots of other stuff in those logs as well. To find the actual errors, search the file for “[error]”.

Craft tells PHP to save any fatal PHP errors that same directory as well: craft/storage/runtime/logs/phperrors.log.

Database Backups #

All database backups are stored in craft/storage/backups/. They get created each time you update Craft, and any time you request a backup from the Backup Database tool in Settings.

Backup filenames are a combination of your site name, a timestamp, and the Craft version number that’s currently installed. The timestamp follows the format YYMMDD_HHMMSS.