Skip to main content

3.4. Preparing to Install

Submitted by Guy Vigneault on

Goal

Download the core software, and handle any required prerequisites.

Prerequisite knowledge

  • Section 3.1, “Concept: Server Requirements”
  • Section 3.2, “Concept: Additional Tools”
  • Section 3.3, “Concept: Methods for Downloading and Installing the Core Software”
  • How to install and configure server software (if installing on your own computer)
  • How to set up hosting for a generic web site
  • How to create a database

Site prerequisites

Server software must be installed on the computer where you plan to host your site. See Section 3.1, “Concept: Server Requirements”.

Depending on how you plan to download the core software, you may need to install additional software tools first. See Section 3.3, “Concept: Methods for Downloading and Installing the Core Software” and Section 3.2, “Concept: Additional Tools”.

Steps

  1. Choose methods for downloading and installing the core software, from those listed in Section 3.3, “Concept: Methods for Downloading and Installing the Core Software”. The rest of these instructions apply to the Composer and manual download options and the interactive installer; if you chose other options, the software should be installed for you.
  2. Set up a URL and hosting for your site on the server. Verify that the hosting is working by putting a simple HTML file in the web root directory of the hosting, and visiting the URL for your site.
  3. Create a database, along with a database user account with full access.
  4. Download the core software files to the web root directory, using the method you decided on. See Section 3.3, “Concept: Methods for Downloading and Installing the Core Software” for links to instructions.

Expand your understanding

See Section 3.7, “Running the Interactive Installer” to run the interactive installer.

Alternatively, you can use the following Drush command, from inside the directory that you downloaded the software to, where DB_NAME, DB_USER and DB_PASS are your database’s credentials:

drush site:install standard --db-url='mysql://DB_USER:DB_PASS@localhost/DB_NAME' --site-name=example

Additional resources

Drush

Attributions

Written and edited by Drew Gorton, Michael Lenahan at erdfisch, Jennifer Hodgdon, and Jojy Alphonso at Red Crackle.