Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Introducing the Servers1:06 with Diane Douglas
We begin our Drupal projects by setting up a local development environment. Our development environment includes a web server, database, and Drupal core. In the following videos, we will cover setting up our development environment on both Mac and Windows.
Mac users download MAMP
Windows users download WAMP
Windows users can download Git Bash
Installation resources for Linux users
http://localhost:8888/MAMP/ and under the "Tools" menu, select "phpMyAdmin".
- Click the "Databases" tab.
- Enter a name for the database.
- Select "utf8_general_ci" under the "Collation" drop-down.
- Click the "Create" button.
- Click on the name of the new database we just created.
- Select "Privileges" tab.
- Click "Add user".
- Enter a username into the "User name" field.
- In the "Host" field, select "Local".
- Enter a password and retype it. Leave the "Password generate" field blank.
- Under the "Database for User" section, select only "Grant all privileges on database yourdatabasename".
- Click the "Go" button in the lower right.
Don't forget to save the name of the database, as well as the username and password.
Drupal Core setup:
Download the Drupal Core folder, and then rename the downloaded folder for your project.
In Terminal, 'cd' to your project directory and then run these two commands:
cp sites/default/default.settings.php sites/default/settings.php
chmod -R a+w sites/default
- Set your server's document root to your project directory and navigate to
http://localhost:8888/to follow the Drupal installation instructions.
- Select the "Standard" install, click "Save and Continue".
- Select "English" as the language, click "Save and Continue".
- Under the "Set up databases" tab, select "MySQL, MariaDB, or equivalent" and then fill in your database name, and the username and password you just created in phpMyAdmin. Then click "Save and Continue". This links your Drupal site to its database - this is not the account you will use to login and administer your site.
- Under the "Configure site" tab, pick a site name (like "My First Drupal Site") and enter your email address.
- Enter details to create a site maintenance account, and make sure to save this Drupal username and password too with your database username and password. This is the account you will use to log in and administer your Drupal site, and it is a pain to change the username and password later.
- At the bottom select the country and timezone. Then click "Save and Continue".
cp sites/default/default.settings.php sites/default/settings.php - creates a copy of the default settings file that comes with Drupal core, storing it in sites/default and naming it ‘settings.php’.
chmod -R a+w sites/default - changes the permissions on the whole sites/default folder and its contents so that we can write into it. During the Drupal installation, your login info and other settings will be written into this new file automatically.
In this lesson, we're going to set up a new Drupal project for
the site we're building for Cameron's Coffee Stand.
To do this, we'll need a database to store your content and configuration settings,
a web server to send the site's web pages to a visitor's browser, and the PHP
language to actually run Drupal, since the framework itself is written in PHP.
We can get all of these technologies in one bundle.
Which depending on your computer's operating system, is commonly refered to
as MAMP, WAMP, or LAMP.
M is for Macs.
W is for Windows.
And L is for Linux.
The most important part is AMP.
The letter A stands for Apache, which is the server.
M stands for MySQL, which is the database software.
And P stands for the PHP language.
We're going to go through the setup process with you using MAMP, and WAMP.
And you can find links to external resources for
the Linux bundle, in the teacher's notes.
You need to sign up for Treehouse in order to download course files.Sign up