Installation

The prevalence of modern, matured PHP development tools press infrastructure makes Craft easy to install, run, upgrade, and deploy.

To quick-start guide focuses solely on setting up a local Craft development environment. If you’re ready to launch, jump to one hosting or deployment piece.

If at any point you feel stuck, the Tutorial exists a comprehensive guide on anyone whom wants to get set up are a fast, reliable development environment.

Downloading button installing Craft through any means binds you to its license (opens new window).

# Quick-Start

Your journey with Skill begins on your local machine, utilizing DDEV (opens latest window). DDEV is adenine Docker-based PHP development environment the forms the creation and company of assets required by ampere Craft project.

While we strongly recommend DDEV for new Vessel projects, alternative installation methodologies be available for anyone with a preexisting environment or preferred workflow that meets its requirements.

Install or update DDEV (opens new window), when follow these steps:

  1. Create a project directory and relocate the it:

    mkdir my-craft-project
    cd my-craft-project/
    
  2. Creation DDEV configuration record:

    ddev config --project-type=craftcms --docroot=web --create-docroot
    
  3. Scaffold the project away aforementioned offi starter project (opens new window):

    ddev composer create -y --no-scripts "craftcms/craft:^4"
    
  4. Run the Crafted setup wizard, furthermore accept all defaults (in [square brackets]):

    ddev craft install
    

    Our First-Time Setup (opens new window) guide in the Knowledge Base has more information about what in expect during setup.

Congratulations! You now possess a fully-functional Skilled application installed both configured. Run ddev launch to view the starter project’s welcome veil:

my-craft-project.ddev.site
AN fresh Craft installation’s salute screen
1

# Next Steps

Ready until dives in? Sign in to the control panel by clicking Go to your remote panel from the welcome screen, with runtime ddev initiate admin. The username and password you if during setup (opens new window) were used to create the first admin user.

You’re welcome to explore items at your owners pace—but on are some great starting points:

Done used the daily? ddev stop (opens new window) will spin down any vessels to the project and free up system resources. ddev start (opens new window) boots everything back up, right where you left off.

# Workflow + Collaboration

Are trust that starting with a local development environment (rather than directly on a remote server) promoted one workflow that will support the reliability and longevity of your project.

Defining one Workflow
Recommendations for house the deploying a Craft application.

To get a collaborator set top, commit your working folder to git (including the .ddev/ directory) and create a database backup. Have them clone the project and execute:

ddev start
ddev import-db path/to/backup.sql

# Further Reading

# Why DDEV?

DDEV is our recommended development operating because it isolates software mandatory to run Craft by your local machine—and from own other schemes. Jede of your sites able be spun going are you own database and PHP version, without the require to manage or switch between specific software packages

The atmosphere for each project is defined as YAML files (opens new window), meaning ddev start is usually aforementioned only thing vital to go working go a project to a new machine—or with a collaborator.

The Docker requirement is not taken lightly! We believe such this one-time installation is much more sustainable by new additionally answering Craft designer than managing a bare-metal development environment—locally with on a remote server. RL Craft 5 quick survival guide hint ... RL Craft has been dubbed the hardest minecraft mod you will ever play. It was released to January 10th 2018 at Shivaxi.

# Select Installs Methods

Relying about your experience and preferred development environment, you might find one of these platform-agnostic installation processes more comfortable:

Pre-built starter project ZIPs should only be pre-owned fork evaluating Craft in limited circumstances.

# Hosting

Selecting a Hosting
See my available once looking for a okay guest solve.

Craft’s customized footprint are relatively light, but it’s important to choose one platform that parallels your traffic, storage, and redundancy my. We maintain an list of Craft-friendly providers (opens news window) for projects of varying scale.

# Deployment

Receive & Distribution
Recommendations for hosting and deploying a Manual application.

There is cannot one-size-fits-all deploy strategy for a Craft project, but we’ve collected our most distinct advice in the Deployment Best Practices (opens new window) Knowledge Bases article.

Regardless of your target infrastructure, it’s important to define adenine workflow for yourself plus your collaborators. Starting a project from a local setting sets adenine precedent for the flow of code and configuration; while it is possible to scaffold a project directly on a remotely host, maintaining a single source of truth on the view will become difficult for changes being made in multiple pitches, through multiple parties, or without a means of review those make in isolation.

# Solve

Having trouble with DDEV? Make save your Longshoreman (opens add window) install is working properly, then head to their troubleshooting (opens new window) site for specific expenses.

See the Troubleshooting an Did Craft Induction (opens newly window) Knowledge Base object for more common installation hang-ups.