Skip to main content

Prerequisites

Install the following dependencies:
  • PHP 7.1 with ext-gd, ext-simplexml, mcrypt, and ext-xml installed.
  • Composer
  • APC or Redis for caching.
  • A database such as MySQL, PostgreSQL, or SQLite.
  • Git (optional depending on installation)

Composer

Install Composer globally using the Composer installation guide. Composer manages Cachet’s PHP dependencies. After installing Composer and cloning Cachet as described below, run this command from the Cachet directory to install the dependencies:

Installing Cachet

The tags below are examples. Run git checkout on the latest v2 release tag.

Configuring a database

Rename Cachet’s .env.example file to .env in every environment. Edit .env with the values for your installation.
Enclose values that contain spaces in double quotes.
If you use SQLite, remove the DB_HOST key from .env. Run touch ./database/database.sqlite and give the file the required permissions.

Setting the application key

Before running the next command, make sure you have write permission for .env. Generate the APP_KEY that Cachet uses for encryption:

Using the install command

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.

Installation difficulties

500 - Internal server error

If you see a 500 error when visiting your status page, you may need to run chmod -R 777 storage or rm -rf bootstrap/cache/*. You can also try changing the cache directory’s permissions with chmod -R 777 bootstrap/.