Install Craft CMS locally

Learn how to install Craft CMS locally, matching your skills and workflows.

Get ready

Be ready, make sure to have a local development environment up and running and be aware of the different Craft deployment workflows available. Use the detailed official Craft install guide as your guideline to install Craft on your local machine first. You can safely skip this step when you already have an existing Craft project running locally.

Choose your Craft install workflow

The way you will install Craft will set the course on how you will deploy Craft CMS here on fortrabbit. Choose your workflow now:

1a. Download Craft with Composer

This is the recommended - more sophisticated - way. You will use Git and Composer in the Terminal. Run this command on you local machine to create a Craft project to get started:

$ composer create-project craftcms/craft {{app-name}}

Follow the prompt to complete setup for your new Craft project.

See an error? Check your local development. Later on you can deploy Craft with Git either to Universal or Professional Apps on fortrabbit.

1b. Download the Craft zip file

Are you more "designer" and less "developer"? SFTP also works here. Just download Craft directly from the Craft website: craftcms.com/latest.zip. Unpack that zip file to get to the actual project files. Later on you can upload Craft with SFTP on Universal Apps.

Install Craft CMS locally

Craft uses environment variables to access environment specific settings. With your fortrabbit Craft App, those variables are already set. Configure it to work on your local machine now. You have two options to install Craft:

2a. Terminal setup

# 1. go into your local Craft folder 
$ cd {{app-name}}

# 2. run the terminal installer
$ ./craft setup

This will ask you some questions, the defaults will work mostly, you can change these settings later.

2b. Browser setup

You can also run the installer in the browser by visiting this address: http://{{host}}/index.php?p=admin/install in your browser. Substitute {{host}} with the host name of your local development environment.

Next steps

By now your Craft CMS should be running on your local development machine. You should be able to visit your Craft installation locally and log in to the Craft admin panel. Now it's time to configure Craft to work in both environments.

All articles

Craft CMS

Statamic

Install guides

Code access

Deployment

Git

SSH

SFTP

Troubleshooting

DNS

MySQL

TLS (SSL)

htaccess

Development

Teamwork

Platform

Billing

The Dashboard

Stacks

Tips & tricks

Quirks

Support

FAQ

Need individual help?
Learn about Company plans ›
Looking for an old article?
See the full list of articles ›
Found an error?
Contribute on GitHub ›