Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
If you plan to run Drupal on a computer with Mac OS X, and you aren't already a whiz at managing Apache, MySQL, and PHP on your computer, then this video is for you. If you will be running Drupal only on Microsoft Windows computers, go to the other video in this series, Installing WAMP, instead. By the time we are done, your computer will have all the components you need to run a basic installation of Drupal. The first place that we need to go is to this website, which is at mamp.info. Once there, you will see that there are two versions of MAMP available; the one on the left is MAMP PRO, which is a for pay system, which has some pieces that we really don't need. We are good enough with the ordinary MAMP. You can read more about it by clicking on this button here, or you can just go to the Download page by clicking here.
Once there, the latest version will be listed here and you can click on it to download. We have already downloaded it, so I am going to switch to the Finder, hide everything else, and unpack this file. On the Mac what you would do to unpack it is to double click, look through the License Agreement, and if you agree, which I assume you will, you click Agree, and the result is a disk image, which contains both MAMP and MAMP PRO. Again, we only need MAMP, so you will drag that into your Applications folder right there.
The Copy will take a few seconds, and when its done you can see MAMP by double clicking on this alias to your Applications folder, like so. You can then close this window, and if you like, you can eject this disk image by dragging it down to the Eject. Once you in the Applications folder, scroll down until you see MAMP, and open it by double clicking on it. The first time you download MAMP, it will ask you if it's okay to open it since it was downloaded from the Internet. Since we trust our source, we are going to say Open. Two things will happen. First, the MAMP program itself will open, and second, it will open the start page. I am going to switch back to the MAMP program so we can take a closer look.
In the left hand part of the screen, you see Apache Server and MySQL server; you can Start and Stop these servers at any time by clicking on this button. When the servers are stopped, the lights glow red, when they are started again, they glow green. In order to run Drupal, you will always have to have the Apache Server and MySQL Server running. The page that was launched when MAMP started is called the Start page, and you can launch that at any time by clicking on this button. From here you have many different options, such as controlling your MySQL database, using phpMyAdmin; we will be doing that a lot in this series.
I am going to go back to MAMP right now, and look at the Preferences. We are going to change a few things in here. First of all, we want to change the folder that Apache is looking for its document root directory. The reason for that is right now it's stored inside the Applications folder. The problem with having your document root directory in your Applications folder is that many backup systems don't look there. Instead they look in your Documents directories. So we are going to put ours there. The first thing we want to do is create that document root, and we will do that by going back to the Finder, by clicking on it, go up to Finder, and Hide Others. Now I am going to go into my directory, which in this case is Users/tomgeller, and Sites. In here, I am going to create a new Folder, which I will call Drupal; this is where all of our Drupal files will live.
I am now going to switch back to the MAMP application and change the document root so that it goes to that place. Again, that was Macintosh HD/Users/tomgeller/Sites/drupal, and then Open, and that chooses the correct folder. There is one other thing that we are going to do, which is to change the Ports that MAMP uses. Right now it uses these nonstandard Ports, 8888 and 8889. The reason we want to change this is, if we don't, whenever you look at the page in your Drupal site, it's going to have not only the name of local host, which is your local computer, but it will say local host:8888, which is a little bit inconvenient if you are typing out URLs.
So I am going to Set to default Apache and MySQL ports, like so, and then click on OK. The servers will restart, and it will ask you for your Password. There we go. We now have MAMP running on the ports we want, and pointing to the correct folder. I am going to just say Open start page again to make sure it's working, and there we go.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.