This course will be retired on February 24, 2020.
Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Setting Up WAMP for Windows4:27 with Diane Douglas
Here we go through the process of starting a new Drupal website from scratch on a Windows computer. We begin by setting up a local server and a database, then we install Drupal Core and launch the site.
Windows users download WAMP
Windows users can download Git Bash
http://localhost:8888/WAMP/ 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".
For Windows users we'll use a program called Wamp.
You can download Wamp from wampserver.com.
Simply follow the installation instructions.
We're going to select the English version and then go to Download.
And for our machine we want the 64 BITS version of the WampServer.
Okay so we're just running the installer.
All I did was double click on the downloaded installer package.
And we're gonna go through this set up wizard.
Okay, so we are almost finished installing the WampServer.
It's copied all of its files over and we've left all of the defaults the same.
So our files are going to end up in C:/wamp and
I'm going to leave the local host and email alone here.
And complete the install.
Now let's run our server.
We installed it in C:/wamp.
So let's go find it there.
And now let's open Wamp.
We want the wampmanger application.
You'll see an icon appear in the system tray.
We can look here under, show hidden icons.
Click on the w for web.
And say, start all services.
And now, if we go back, we can say, put online.
And you can see the W turned green, and that means you're done and
your server is running.
And if we click back to it you can even see that this has changed to say put
offline, instead of put online.
So that's where we would go when we wanted to turn off our server.
To let Wamp run our Drupal project, left click on the system tray icon.
And select Apache, then scroll down to where it says Apache modules.
And then we need to click and enable a module called rewrite_module.
We're going to make one more change to make it easier to work on and
preview multiple projects at the same time.
With this configuration, you'll be able to view a list of links to your websites
by simply navigating you browser to the URL localhost.
Then you can click on whichever one you want to work with.
The Wamp document route is where you'll put all your projects.
It's located by default inside of C:/wamp which
is where we installed in a folder called www.
We're going to move it.
Create a folder in C called websites.
Its address should be C:/websites.
All of your website project folders will now go into this directory.
Now we have to tell Wamp where to find that.
Left-click on the Wamp system tray icon.
Then select Apache.
Now go to httpd.conf and open this file.
This is your configuration file for the Apache service.
Use Ctrl+F to find two
references to C:/wamp/www.
We want to replace both of them with our new directory, which is C:/websites.
Let's find the next one, here we go.
Now save and close the file.
And then all we need to do is left click on the Wamp system
tray icon again and click Restart All Services.
You need to sign up for Treehouse in order to download course files.Sign up