Drupal 8 Installation Setup with Terminal or browser

To quickly get the installation setup process completed in Drupal, there's two options.

  1. The command-line using Drupal Console or Drush
  2. And the web browser by visiting http://mysitename

Create a database

In either case, the first thing that's needed is a database where the Drupal instance will store it's data.

When using a MySQL gui application like Sequel Pro or Querious, create a new database, 'MYDBNAME' and make sure the database user has proper access.

To use the Terminal, with the 'root' mysql user in this case:

mysqladmin -u root -p create MYDBNAME

Start the setup process

Using the Terminal

The site install task will display basic setup questions, most of which can be left at default, for now by hitting [enter]. The database user/password and the admin (superuser) user/password are required.

➜  MYSITENAME drupal site:install

 Select Drupal profile to be installed:
  [0] demo_umami
  [1] minimal
  [2] nightwatch_testing
  [3] standard
 > 1

 Select language for your Drupal installation [English]:
 > 

 Drupal Database type:
  [0] SQLite
  [1] MySQL, MariaDB, Percona Server, or equivalent
  [2] PostgreSQL
 > 1

 Database Host [127.0.0.1]:
 > 

 Database Name:
 > MYDBNAME

 Database User:
 > root

 Database Pass []:
 > 

 Database Port [3306]:
 > 

 Database Prefix []:
 > 

 Provide your Drupal site name [My awesome site]:
 > 

 Provide your Drupal site mail [admin@example.com]:
 > 

 Provide your Drupal administrator account name [admin]:
 > 

 Provide your Drupal administrator account password:
 > 

 Provide your Drupal administrator account mail [admin@example.com]:
 > 


 Starting Drupal 8 install process

 [OK] Your Drupal 8 installation was completed successfully

Or, even faster — this can be done with a single command:

drush site-install --db-url=mysql://someuser:somepass@localhost/somedatabase --account-pass=admin --existing-config -y -vvv.

Using a Web browser

 

Add new comment

comment editor

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.