Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Setting Up MAMP for Mac1:14 with Diane Douglas
Here we go through the process of starting a new Drupal website from scratch on a Mac. We begin by setting up a local server and a database, then we install Drupal Core and launch the site.
Mac users download MAMP
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".
First for MAC users, let's install MAMP.
We can find it by simply Googling the word MAMP.
And under the first result, click on the Downloads link.
Select MAC OS X and then click on the Download button.
When it's finished, unzip your download,
run the included .pkg installer and that's it.
Let's run our server.
Go to Applications/MAMP, not MAMP pro,
and launch the MAMP application.
A pop-up window opens on first launch.
Uncheck the option that says, Check for
MAMP Pro when starting MAMP, and then click Launch MAMP.
You can always upgrade to MAMP Pro later.
It has a few nice features if you have lots of different websites you want to
test on your machine.
But for this course, you won't need it.
Then click Start Servers.
You'll see the indicators for the Apache server and the MySQL server light up.
Then you'll be automatically taken to the MAMP start up page
where we can set up our database.
You need to sign up for Treehouse in order to download course files.Sign up