Linux

Where Does Cachet Store Config and Data?

Cachet env file and asset storage paths for self-hosted status page installs on Linux. Plus migration notes.

Last updated

Cachet keeps settings in a .env file at the web root. That file holds database passwords, APP_KEY, and mail options. Status data itself lives in MySQL per that config.

Uploaded assets sit under the web root beside the env file. Docker installs map the same pair through volumes. Back up the env file with a database dump. The key encrypts sessions, so keep the original. Metrics display response graphs. Subscribers get outage mail. Components group services. Webhooks push status changes. Uptime checks feed metrics.

Where Cachet stores this, by platform

Linux
/var/www/cachet/.env

Database credentials, APP_KEY, and mail settings. Restrict read access to the web user. Changing keys logs everyone out.

Linux
/var/www/cachet/storage

Laravel file cache, logs, and views for the status page. Safe to clear with Cachet idle. Copy with the env file for moves.

Frequently asked questions

what do i back up for a Cachet move

Copy the .env file with storage and a database dump. The env holds APP_KEY and mail settings. Status data lives in the database. Both restore the page. Keep copies safe.

where is Cachet configured

Open the .env file in the web root to read database and cache blocks. Assets default under the web root. The file decides the backend. Test restores first.

Notice an outdated path? Let us know.