3.3. Preparing to Install

3.3. Preparing to Install

Choose a method for installing the core software.

Try a free online demo

Use an online provider to get a demo installation of the core software in 20

minutes or less. See the

Drupal.org page "Try Drupal".

Use a one-click installer from your hosting provider

If you choose to install the core software at your hosting provider, your

hosting provider may have specific documentation and/or a one-click install

that you can use. See

Drupal.org’s list of hosting providers that support Drupal.

Use Drush

You will need to have Drush installed and command-line access to the site. See

第 3.2 节 “Concept: Additional Tools”.

Use the web installer

You will need space on a local or hosted web server to install the core

software manually.

Use a pre-configured environment

Use a pre-configured environment or virtual machine that contains Drupal and

all the required supporting software to install Drupal locally. See the

section for your operating system under

Drupal.org’s Local server setup guide

for possible options.

If you are installing using Drush or the web installer, set up a URL and

hosting for your site, either at an external hosting provider or on your own

computer. 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.

If you are installing using Drush or the web installer, create a database,

along with a database user account with full access.

If you are installing using Drush, type the following at the Drush command

line, where example is the name of the directory that the core software will

be downloaded to, and DB_NAME, DB_USER and DB_PASS are your database’s

credentials:

drush dl drupal --drupal-project-rename=example

cd example

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

If you are installing using the web installer, upload the core software files

manually. To do this using Git and/or Composer, see 第 11.9 节 “Using Composer and Git to Download Files”; to do

this by downloading a zipped archive:

Go to https://www.drupal.org and click Download & Extend on the top-level

menu.

Click the Download Drupal button (of the appropriate version) to be taken

to the Downloads page.

Click the version you wish to download under Recommended releases.

Download the tar.gz or zip file to your local machine.

Upload the downloaded file to your hosting account. Log in to the control

panel and navigate to the HTML directory. Save the file there.

Uncompress the tar.gz or zip file, which will create a new directory. If you

do not have terminal access, or your hosting server is not running Linux, your

hosting control panel’s file manager should provide a way to extract the

files. If you have terminal access to your hosting server (running Linux), you

can use a command like:

tar -xzf drupal-8.3.2.tar.gz

Delete the compressed file from the server, unless your unpacking method

already deleted it.

Rename the directory or reconfigure your web hosting, so that the directory

name matches the directory your web hosting is configured to use for your site.