Change record status: 
Project: 
Introduced in branch: 
8.6.x
Description: 

A new command to install and run Drupal was added.

In the instructions below, replace the version x.y.z with the specific version you wish to download. Example: drupal-8.6.x-dev.zip. You can find the latest stable version at https://www.drupal.org/project/drupal.

Download and extract the Drupal package:

$ curl -sS https://ftp.drupal.org/files/projects/drupal-x.y.z.zip --output drupal-x.y.z.zip
$ unzip drupal-x.y.z.zip
$ cd /path/to/drupal-x.y.z
$ php core/scripts/drupal quick-start
18/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓]
Congratulations, you installed Drupal!
Username: admin
Password: NlH5cmfEzsbS3DSs
Drupal development server started: <http://127.0.0.1:8888>
This server is not meant for production use.
One time login url: <http://127.0.0.1:8888/user/reset/1/1525772031/pyK4gRFkQSGGKJk0GhZRucybqROZ2zvV85JwQiD3bFY/login>
Press Ctrl-C to quit the Drupal development server.

Wait… installation can take a minute or two. A successful installation will result in opening the new site in your browser.

Run the following command for a list of available options that you may need to configure quick-start:

$ php core/scripts/drupal quick-start --help

NOTE: This quick start solution uses PHP's built-in web server and is not intended for production use.

Official documentation page: Drupal Quick Start

Impacts: 
Site builders, administrators, editors

Comments

wmhopk’s picture

I get the following error when I run php core/scripts/drupal quick-start:

~~~~
In install.core.inc line 2225:

PHP extensions: Disabled

Array
~~~~

What extensions need to be enabled? I'm guessing "Array" in the error message should actually be a list of the extensions.

ressa’s picture

I wonder if that error is because a PHP extension is not installed or not enabled? Anyway, these are the steps for Linux, perhaps it can help?

Linux steps

Install Git and required PHP packages, if needed:
sudo apt-get install git php7.0 php7.0-curl php7.0-dom php7.0-gd php7.0-mbstring php7.0-sqlite3

Install Drupal Umami demo:

  1. curl -sS https://ftp.drupal.org/files/projects/drupal-8.6.x-dev.zip --output drupal-8.6.x-dev.zip
  2. unzip drupal-8.6.x-dev.zip && rm drupal-8.6.x-dev.zip
  3. cd drupal-8.6.x-dev
  4. php core/scripts/drupal quick-start demo_umami

When you are done testing, close the PHP server with CTRL + Z and delete the drupal-8.6.x-dev folder.

Originally from https://www.drupal.org/project/drupal/issues/2911319#comment-12566146

wmhopk’s picture

I was definitely missing some extensions.

mjchadwick’s picture

Just tried this on MacOS High Sierra (10.13.4) and it worked like a charm. Nice job!

Will there be a create-drupal-app, a la React, coming soon, too?

kay_v’s picture

Nice writeup, @kim.pepper. FYI, I've taken it pretty much as is and created a proposed community docs page on the topic. Comments/further improvements of course welcomed!

ownsourcing.com - Drupal training

landsman’s picture

Yes please!
I just think about this feature about 14 day later that I wish something like this!