Some individual modules may have special requirements for PHP extensions and configurations beyond those listed below, so please refer to the module documentation.
If you run Drupal on a system where PHP is compiled or restricted to using 32-bit integers, you will only be able to input dates between 1901 and 2038 (specifically from 20:45:52 UTC on December 13, 1901 to 03:14:07 UTC on January 19, 2038). This is commonly known as the Year 2038 problem.
Installing Drupal requires that you first have a web server and a database server.
For "local" and "online" Linux-based servers using Apache and MySQL, the software needed to run Drupal is known as the "AMP stack", although Microsoft-based servers and databases are also available in similar packages known as stacks.
AMP Stack
Chapter 3 of the Drupal 8 User Guide covers server requirements, additional tools, installation preparation, and running the installation script. Chapter 4 describes the next steps to take after completing the installation script.
The current/latest release is always available on the downloads page. However, the recommended way to obtain the Drupal source code is by using Composer – the PHP dependency manager. Read Downloading Drupal Core using Composer in the Developer Guide for Using Composer for more information.
This step is required only if you installed (or updated) the codebase using git.
If you don't have Composer installed, see the official Composer installation instructions.
If you are installing Drupal on a test site, you can skip this step. When running the installer script (next step), it's enough to provide the database username and password with permission to create a new database.
If you are installing Drupal on a public web server, you should first create a database and grant access to a less privileged user. The database user you specify during installation will connect to the database every time a page is loaded.
This page provides instructions on how to create a Drupal database using one of the following methods:
Having a local web server to use a fully integrated, virtualized AMP stack (Apache, MySQL, PHP) simulates the development, staging, and production servers you may need to deploy Drupal.
AMP Stack on a Local Machine
A developer's workflow begins with installing and configuring an AMP (Apache, MySQL, PHP) stack on a Windows, Mac, or Linux-based system. Depending on the operating system, there are many different methods available to create an ideal environment. However, when it comes to choosing, there are only three options:
Visit your site in a web browser. You should be redirected to the installer page at /core/install.php.
A detailed guide with screenshots is provided in Section 3.7 of the Drupal 8 User Guide.
After installation, check the status of your site at Administration > Reports > Status report (/admin/reports/status). If this page reports any issues, resolve them.
Trusted Hosts
If you did not create a settings.php file (located in sites/default/, unless you are using a multisite setup), it was created for you by the installation script. However, the generated settings.php file does not include the "trusted host" configuration.