Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Preparing Drupal Files for Mac2:16 with Diane Douglas
We will make sure all of our Drupal files are in place in our Mac development environment. We will also ensure that our files have appropriate permissions, so that we can begin building our site.
- "Download Drupal" Button
- Click "Download" link for a ZIP of the most recent edition. We are using 7.38, but you may have a more recent edition.
- Unarchive the ZIP and you will end up with a folder named ‘drupal-7.38’ (when you unarchive the folder it is named with the drupal version number, so in our case it’s drupal-7.38. It won’t always be 7.38 though - the number has no other special significance)
- Mac users can put the Folder on their Desktop, or anywhere they choose.
- cd /Users/epicodus/Desktop/cameron-site
- cp sites/default/default.settings.php sites/default/settings.php
- chmod -R a+w sites/default
Now, when we run Drupal, it's going to save some configuration settings
inside of a file called settings.php.
We need to create this file, and
make sure that Drupal has permission to write to that file.
On a Mac, we will do this from the terminal, using three simple commands.
The first command navigates to our project directory.
So I will type cd Desktop/cameron-site/,
and then press Enter.
You should replace the path after the cd space
with the path to your project directory.
The next command makes a copy of the included file, default.settings.php,
which is inside of the sites directory, in default.
And there it is.
So, in terminal we will type cp for copy.
Then space, sites/default/default.settings.php.
And that's the path to the file we're copying.
And then another space.
And then we type sites/default/settings.php,
which is the name of the file that we are creating by making this copy.
Then I press Enter.
The third command changes the permissions on the default folder and
all files inside of it to be readable and writeable by anyone.
We type chmod space -R
space a+w space sites/default.
During installation, Drupal will write your log in information and
other settings for your site into this file.
And here it is.
Then, it will change these permissions back to read only, so
that no one can delete it or change it.
You need to sign up for Treehouse in order to download course files.Sign up