3.3. Preparing to Install
If you want to use Drush to install the core software, Drush must be installed. See 第 3.2 节 “Concept: Additional Tools”.
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.
Run the installer if you chose web installer to install the core software. See 第 3.4 节 “Running the Installer”.
Attributions
Written and edited by Drew Gorton, Michael Lenahan at erdfisch, Jennifer Hodgdon, and Jojy Alphonso at Red Crackle.
Source file: install-prepare.asciidoc
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion