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:
composer install --no-dev -o
Installing Cachet
The tags below are examples. Run git checkout on the latest v2 release tag.
cd /var/www # Or wherever you chose to install web applications togit clone https://github.com/cachethq/Cachet.gitcd Cachetgit tag -lv0.1.0-alphav1.0.0v1.1.0v2.0.0v2.1.0git checkout v2.1.0
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.
APP_ENV=productionAPP_DEBUG=falseAPP_URL=http://localhostAPP_KEY=SomeRandomStringDB_DRIVER=mysqlDB_HOST=localhostDB_DATABASE=cachetDB_USERNAME=homesteadDB_PASSWORD=secretDB_PORT=nullCACHE_DRIVER=apcSESSION_DRIVER=apcQUEUE_DRIVER=syncCACHET_EMOJI=falseMAIL_DRIVER=smtpMAIL_HOST=mailtrap.ioMAIL_PORT=2525MAIL_USERNAME=nullMAIL_PASSWORD=nullMAIL_ADDRESS=nullMAIL_NAME="Demo Status Page"MAIL_ENCRYPTION=tlsREDIS_HOST=nullREDIS_DATABASE=nullREDIS_PORT=nullGITHUB_TOKEN=null
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:
php artisan key:generate
Using the install command
Run the installation command to perform the following tasks:
Run migrations
Run seeders (of which there are none)
php artisan app:install
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/.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cachet","colors":{"primary":"#04C147","light":"#04C147","dark":"#04C147"},"logo":{"light":"https://mintcdn.com/cachet/roDiT_3ouFZbM8GY/logo/light.svg?fit=max\u0026auto=format\u0026n=roDiT_3ouFZbM8GY\u0026q=85\u0026s=dd8c252edeb5ae40dfd72302439930a8","dark":"https://mintcdn.com/cachet/roDiT_3ouFZbM8GY/logo/dark.svg?fit=max\u0026auto=format\u0026n=roDiT_3ouFZbM8GY\u0026q=85\u0026s=7ed48f83bd82437755db17f65be50fdc","href":"https://cachethq.io"},"favicon":"https://mintcdn.com/cachet/roDiT_3ouFZbM8GY/favicon.png?fit=max\u0026auto=format\u0026n=roDiT_3ouFZbM8GY\u0026q=85\u0026s=1056bd4648367a1904808fd721f1b105","api":{"mdx":{"server":"https://v3.cachethq.io/api"}},"background":{"decoration":"grid"},"navbar":{"primary":{"type":"button","label":"Demo","href":"https://v3.cachethq.io"}},"footer":{"socials":{"x":"https://x.com/cachethq","github":"https://github.com/cachethq","linkedin":"https://linkedin.com/company/cachethq"}},"fonts":{"heading":{"family":"Lexend"}},"integrations":{"fathom":{"siteId":"FDSKQOXU"}},"contextual":{"options":["copy","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cachet","hasAudioNarration":false,"actualSubdomain":"cachet","customDomains":["cachethq.io"],"gitSource":{"type":"github","owner":"cachethq","repo":"docs","deployBranch":"3.x","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10ab699ffae5051c3fc891"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b112b735fc534e2df4eeaab","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"API Reference","count":63},{"language":"default","tag":"Documentation","count":42},{"language":"default","tag":"Configuration","count":13},{"language":"default","tag":"Guide","count":10},{"language":"default","tag":"Getting Started","count":6},{"language":"default","tag":"Component Groups","count":6},{"language":"default","tag":"Components","count":6},{"language":"default","tag":"Incident Templates","count":6},{"language":"default","tag":"Incidents","count":6},{"language":"default","tag":"Metrics","count":6}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"h1,h2,h3,h4{font-weight:600!important}#navigation-items div ul li{margin-top:0.25rem;margin-bottom:0.25rem}span>img{}footer>div{padding:3rem 2rem!important}#carbonads{display:flex;max-width:130px;overflow:hidden;border-radius:4px;box-shadow:0 0 1px hsla(0, 0%, 0%, 0.15);font-size:12px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI',\n Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',\n Helvetica, Arial, sans-serif;position:fixed;bottom:2rem;right:2rem}#carbonads a{background-image:none;color:#111;text-decoration:none}#carbonads a:hover{color:#111}#carbonads .carbon-img{display:block;max-width:130px;line-height:1}#carbonads .carbon-img img{display:block;width:130px;height:100px;margin:0 auto}#carbonads .carbon-text{display:block;padding:8px 10px;background-color:hsl(0, 0%, 98%);line-height:1.35;text-align:left}#carbonads .carbon-poweredby{display:block;padding:10px;background:repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 5px,\n hsla(0, 0%, 0%, 0.025) 5px,\n hsla(0, 0%, 0%, 0.025) 10px\n )\n hsla(203, 11%, 95%, 0.4);background-color:hsl(0, 0%, 98%);font-weight:600;font-size:8px;line-height:0;letter-spacing:0.5px;text-transform:uppercase}@media only screen and (min-width: 320px) and (max-width: 759px){#carbonads{position:relative;max-width:330px;margin:20px 0;float:none}#carbonads .carbon-wrap{display:flex;flex-direction:row}#carbonads .carbon-img{margin:0}#carbonads .carbon-text{padding:10px 10px 0 10px;font-size:12px}#carbonads .carbon-poweredby{position:absolute;right:0;bottom:0;border-radius:0;border-top-left-radius:3px;text-align:center}}"}]}
{"page":{"pagePath":"v2.x/installation/guide","slug":"/v2.x/installation/guide","pageMetadata":{"title":"Installation","description":"Learn how to install Cachet on your server.","icon":"download","href":"/v2.x/installation/guide"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to install Cachet on your server.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`Install the following dependencies:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`PHP 7.1 with `,_jsx(_components.code,{children:`ext-gd`}),`, `,_jsx(_components.code,{children:`ext-simplexml`}),`, `,_jsx(_components.code,{children:`mcrypt`}),`, and `,_jsx(_components.code,{children:`ext-xml`}),` installed.`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://getcomposer.org`,children:`Composer`})}),`\n`,_jsx(_components.li,{children:`APC or Redis for caching.`}),`\n`,_jsx(_components.li,{children:`A database such as MySQL, PostgreSQL, or SQLite.`}),`\n`,_jsx(_components.li,{children:`Git (optional depending on installation)`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`composer`,children:`Composer`}),`\n`,_jsxs(_components.p,{children:[`Install Composer globally using the `,_jsx(_components.a,{href:`https://getcomposer.org/download/`,children:`Composer installation guide`}),`. Composer manages Cachet’s PHP dependencies.`]}),`\n`,_jsx(_components.p,{children:`After installing Composer and cloning Cachet as described below, run this command from the Cachet directory to install the dependencies:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`composer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --no-dev`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`installing-cachet`,children:`Installing Cachet`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The tags below are examples. Run `,_jsx(_components.code,{children:`git checkout`}),` on the latest v2 release tag.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /var/www`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Or wherever you chose to install web applications to`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clone`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://github.com/cachethq/Cachet.git`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Cachet`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tag`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -l`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`v0.1.0-alpha`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`v1.0.0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`v1.1.0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`v2.0.0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`v2.1.0`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` v2.1.0`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`configuring-a-database`,children:`Configuring a database`}),`\n`,_jsxs(_components.p,{children:[`Rename Cachet’s `,_jsx(_components.code,{children:`.env.example`}),` file to `,_jsx(_components.code,{children:`.env`}),` in every environment.`]}),`\n`,_jsxs(_components.p,{children:[`Edit `,_jsx(_components.code,{children:`.env`}),` with the values for your installation.`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Enclose values that contain spaces in double quotes.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`31`,language:`ini`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ini`,children:_jsxs(_components.code,{language:`ini`,numberOfLines:`31`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`APP_ENV`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=production`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`APP_DEBUG`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`APP_URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=http://localhost`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`APP_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=SomeRandomString`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DB_DRIVER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=mysql`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DB_HOST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=localhost`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DB_DATABASE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=cachet`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DB_USERNAME`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=homestead`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DB_PASSWORD`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=secret`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DB_PORT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=null`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`CACHE_DRIVER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=apc`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SESSION_DRIVER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=apc`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`QUEUE_DRIVER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=sync`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`CACHET_EMOJI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=false`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`MAIL_DRIVER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=smtp`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`MAIL_HOST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=mailtrap.io`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`MAIL_PORT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=2525`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`MAIL_USERNAME`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`MAIL_PASSWORD`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`MAIL_ADDRESS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`MAIL_NAME`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Demo Status Page\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`MAIL_ENCRYPTION`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=tls`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`REDIS_HOST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`REDIS_DATABASE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`REDIS_PORT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=null`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`GITHUB_TOKEN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=null`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you use SQLite, remove the `,_jsx(_components.code,{children:`DB_HOST`}),` key from `,_jsx(_components.code,{children:`.env`}),`. Run `,_jsx(_components.code,{children:`touch ./database/database.sqlite`}),` and give the file the required permissions.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`setting-the-application-key`,children:`Setting the application key`}),`\n`,_jsxs(_components.p,{children:[`Before running the next command, make sure you have write permission for `,_jsx(_components.code,{children:`.env`}),`. Generate the `,_jsx(_components.code,{children:`APP_KEY`}),` that Cachet uses for encryption:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` key:generate`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`using-the-install-command`,children:`Using the install command`}),`\n`,_jsx(_components.p,{children:`Run the installation command to perform the following tasks:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Run migrations`}),`\n`,_jsx(_components.li,{children:`Run seeders (of which there are none)`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` app:install`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Never change `,_jsx(_components.code,{children:`APP_KEY`}),` after installation in a production environment. Doing so causes all encrypted and hashed data to be lost.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`installation-difficulties`,children:`Installation difficulties`}),`\n`,_jsx(Heading,{level:`3`,id:`500-internal-server-error`,children:`500 - Internal server error`}),`\n`,_jsxs(_components.p,{children:[`If you see a 500 error when visiting your status page, you may need to run `,_jsx(_components.code,{children:`chmod -R 777 storage`}),` or `,_jsx(_components.code,{children:`rm -rf bootstrap/cache/*`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`You can also try changing the cache directory’s permissions with `,_jsx(_components.code,{children:`chmod -R 777 bootstrap/`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Installation","description":"Learn how to install Cachet on your server.","icon":"download","href":"/v2.x/installation/guide"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[{"title":"Composer","slug":"composer","depth":3,"children":[]}]},{"title":"Installing Cachet","slug":"installing-cachet","depth":2,"children":[{"title":"Configuring a database","slug":"configuring-a-database","depth":3,"children":[]},{"title":"Setting the application key","slug":"setting-the-application-key","depth":3,"children":[]},{"title":"Using the install command","slug":"using-the-install-command","depth":3,"children":[]}]},{"title":"Installation difficulties","slug":"installation-difficulties","depth":2,"children":[{"title":"500 - Internal server error","slug":"500-internal-server-error","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/cachet/d8d322792a396326/carbon.js"],"subdomain":"cachet","siteName":"Cachet","title":"Installation - Cachet","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v3.x":{"href":"/v3.x/introduction","matchLevel":4},"v2.x":{"href":"/v2.x/installation/guide","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T17:53:07.524Z","originalFileLocation":"v2.x/installation/guide.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to install Cachet on your server.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cachet\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Installation - Cachet\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to install Cachet on your server.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cachet\">\u003cmeta data-mint-head property=\"og:url\" content=\"/docs/v2.x/installation/guide\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cachet.mintlify.site/docs/_mintlify/api/og/v2?division=Installation\u0026amp;title=Installation\u0026amp;description=Learn+how+to+install+Cachet+on+your+server.\u0026amp;theme=a3ee6702ee05499dedeee59f\u0026amp;signature=3001a61e06a89fabd05d58db75b7c8ce68c851ab4575d42651c10ae7b4541631\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Installation - Cachet\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to install Cachet on your server.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cachet.mintlify.site/docs/_mintlify/api/og/v2?division=Installation\u0026amp;title=Installation\u0026amp;description=Learn+how+to+install+Cachet+on+your+server.\u0026amp;theme=a3ee6702ee05499dedeee59f\u0026amp;signature=3001a61e06a89fabd05d58db75b7c8ce68c851ab4575d42651c10ae7b4541631\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/cachet/OqcS8iPR5iFh8gcE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cachet\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#04C147\">\u003clink data-mint-head rel=\"canonical\" href=\"/docs/v2.x/installation/guide\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/v2.x/installation/guide.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://cachethq.io/#organization\",\"name\":\"Cachet\",\"url\":\"https://cachethq.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cachet/roDiT_3ouFZbM8GY/logo/light.svg?fit=max\u0026auto=format\u0026n=roDiT_3ouFZbM8GY\u0026q=85\u0026s=dd8c252edeb5ae40dfd72302439930a8\"}},{\"@type\":\"WebSite\",\"@id\":\"/docs#website\",\"name\":\"Cachet\",\"url\":\"/docs\",\"publisher\":{\"@id\":\"https://cachethq.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"/docs/v2.x/installation/guide#webpage\",\"url\":\"/docs/v2.x/installation/guide\",\"name\":\"Installation\",\"description\":\"Learn how to install Cachet on your server.\",\"dateModified\":\"2026-10-15T17:53:07.524Z\",\"isPartOf\":{\"@id\":\"/docs#website\"},\"breadcrumb\":{\"@id\":\"/docs/v2.x/installation/guide#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"/docs/v2.x/installation/guide#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cachet\",\"item\":\"/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installation\",\"item\":\"/docs/v2.x/installation/guide\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"/docs/v2.x/installation/guide#article\",\"headline\":\"Installation\",\"name\":\"Installation\",\"description\":\"Learn how to install Cachet on your server.\",\"url\":\"/docs/v2.x/installation/guide\",\"mainEntityOfPage\":{\"@id\":\"/docs/v2.x/installation/guide#webpage\"},\"dateModified\":\"2026-10-15T17:53:07.524Z\",\"publisher\":{\"@id\":\"https://cachethq.io/#organization\"},\"isPartOf\":{\"@id\":\"/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cachet\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cachet\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/v2.x/installation/guide.md","siteName":"Cachet","nav":{"global":null,"versions":[{"version":"v3.x","pages":[{"title":"v3.x","href":"/v3.x/introduction"}]},{"version":"v2.x","anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/v2.x/introduction"},{"title":"Component statuses","href":"/v2.x/component-statuses"},{"title":"Incident statuses","href":"/v2.x/incident-statuses"},{"title":"Client libraries","href":"/v2.x/client-libraries"},{"title":"Frequently asked questions","description":"Common questions and answers about Cachet.","href":"/v2.x/faq"}]},{"group":"Installation","pages":[{"title":"Installation","icon":"download","href":"/v2.x/installation/guide"},{"title":"Docker","description":"Learn how to install Cachet on your server with Docker.","icon":"docker","href":"/v2.x/installation/docker"},{"title":"Windows","icon":"windows","href":"/v2.x/installation/windows"},{"title":"Upgrading","icon":"square-plus","href":"/v2.x/installation/upgrading"},{"title":"Beacons","icon":"bell","href":"/v2.x/installation/beacons"}]},{"group":"Configuration","pages":[{"title":"Prerequisites","icon":"list-check","href":"/v2.x/configuration/prerequisites"},{"title":"GitHub OAuth token","icon":"face-smile","href":"/v2.x/configuration/github-oauth-token"},{"title":"CORS","icon":"check","href":"/v2.x/configuration/cors"},{"title":"Mail","icon":"envelope","href":"/v2.x/configuration/mail"},{"title":"Queue","icon":"gears","href":"/v2.x/configuration/queue"},{"title":"Subscribers","icon":"envelopes","href":"/v2.x/configuration/subscribers"}]},{"group":"Other","pages":[{"title":"Credits","icon":"heart","href":"/credits"},{"title":"Trademarks","icon":"trademark","href":"/trademarks"}]}]},{"anchor":"Blog","icon":"newspaper","href":"https://blog.cachethq.io"},{"anchor":"API Reference","icon":"square-terminal","pages":[{"title":"API Reference","href":"/api-reference/cachet/test-the-api"}]}]}]},"basePath":"","title":"Installation - Cachet","deploymentId":"dpl_hSqyvJ4yQMj8zFViHgqnZFPm1xMv","buildId":"dpl_hSqyvJ4yQMj8zFViHgqnZFPm1xMv","dynamics":[],"chunks":[]}