Skip to main content

Via the dashboard

Cito has a built-in log viewer that can show you the following:
  • PHP Error logs: any logs generated by PHP (where relevant).
  • Nginx error logs: this shows you any logs generated by the web server itself.
  • Nginx access logs: shows you all requests to your site.
You can find this by browsing to Site settings, then clicking the Logs tab. Log View The log viewer has a “Live” mode which will stream logs in real time. You can also manually refresh or download logs as text files.

Common log locations

Below is a list of the common Cito logfiles you may need to utilise, including the path to use and the default retention.
TypeRetention (days)Location
Nginx Access Logs14/var/log/nginx/<domain>.log
Nginx Error Logs14/var/log/nginx/<domain>.err
PHP-FPM Errors12/var/log/php<version>.log
MySQL Errors7/var/lib/mysql/<server-hostname>.err
Each individual domain has its own access and error logs for ease of reference.

How are PHP error logs generated?

PHP errors are logged to the file error_log in the directory they were generated in (e.g. public_html).