Skip to main content

Overview

Download and check out the latest tagged v2 release. A branch such as master may be broken or unstable.

Download with Git

Configuring a database

Rename Cachet’s .env.example file to .env in every environment. Laravel 5 reads configuration from this file. Edit .env with the values for your installation. Here is an example .env file for Windows with a MySQL database:
.env
If you use SQLite, remove the DB_HOST key from .env. Run touch ./database/database.sqlite and give the file the required permissions.
After installation, set APP_DEBUG to false to prevent other people from seeing your application’s debug information. In Command Prompt, navigate to your Cachet installation and run:
After choosing your database driver, run the migrations to create the tables:
The output lists the migrations applied to your database.

Security key

Generate the APP_KEY that Cachet uses for encryption:

Installing Cachet

Run the installation command to perform the following tasks:
  • Run migrations
  • Run seeders (of which there are none)
Never change APP_KEY after installation in a production environment. Doing so causes all encrypted and hashed data to be lost.

php.ini config

Uncomment the required extensions in your php.ini file, using this configuration as a reference:

Apache vHosts

Create an Apache virtual host and add its hostname to your HOSTS file. Add the following virtual host to httpd-vhosts.conf. Adjust the values for your installation:
httpd-vhosts.conf
Enable mod_rewrite for Apache. In httpd.conf, uncomment the following line: #LoadModule rewrite_module modules/mod_rewrite.so
The rest of this example httpd.conf file is shown below: