Drupal Basics-Setting Up A Local Install of Drupal on a Mac

The first time I ever set up a local install of Drupal was a copy of 4.7.4. I remember aspects of setting things up being a little convoluted. 5.x had not gone into full release--I believe it was in RC 1. So there was no installer and it proved to be an interesting challenge. With the advent of 5.x, things have become much simpler. I'm going to describe how to set up a local install of Drupal 5.x on a Mac--the process is similar on other platforms--and can be used on the beta of 6 if you want to mess around with the newest version of Drupal.

This is a great way for nonprofits to start playing with Drupal to review it for use as a Web site building tool. It is free and requires no additional hardware.

First

  1. Get a copy of MAMP--it stands for Mac Apache, MySQL, PHP. The linux version is called LAMP and the windows version is called WAMP
  2. Download the version of Drupal you want to install from Drupal.org

Next

  1. Extract the instance of Drupal you want to install
  2. Pop extracted directory into MAMP's htdocs folder-- /applications/MAMP/htdocs
  3. Fire up MAMP and click on "Open Start Page"
  4. Click on phpMyAdmin in the menu bar at the top of the page
  5. Click on the "databases" link in the main body of the page
  6. At the bottom of this page is a text box that reads "create new database", type in a name for your new database and choose a "collation", I use latin1_swedish_ci
  7. Create a user for the database--click on the sql tab up top and use the following command "grant all on database_name_accounts.* to user_name@localhost identified by 'password';" with no quotes and replacing database_name_accounts with the database, user_name with any name you care to put in, and password with an password you care to use
  8. In your browser go to http://localhost:8888 and click twice on the directory with Drupal in it.
  9. Enter the database name, database username, and database password in the appropriate fields--leave the database type as mysql. Click "Save configuration"
  10. You now have a working instance of Drupal on your computer! Click on "your new site" and create user 1.

Remember that to have your Drupal instance working, you have to start MAMP up before going to the localhost Web address. You can load modules in and configure this just as you would a live site. It also give you an easy way to play with theming.

Powered by Qumana