19
Dec 2011

Episode 1: Introduction to Drupal - Install MAMP/WAMP, Drupal 7, and Setup a Sub-theme

comment icon5 comment(s) |

This is the first episode of several to come over the following weeks.  I thought this would be a good chance to break that barrier of entry for many of you wanting to get your hands dirty with Drupal. In this episode we setup a testing environment which will allow you install Drupal on your local machine.  We also go ahead and install Drupal and setup the sub-theme.  Sub-themes may seem like a hassle now, but with tools like Zenophile you'll be churning out sub-themes like no tomorrow. These tools are important because setting up a new site shouldn't seem like a chore it should be quick and painless. Here's a list of the important links mentioned:

Please feel free to hit me up in the comments with any questions or thoughts, and don't be afraid to send me topics you'd like to see covered in upcoming episodes.

Subscribe to our Networks

Popular Tags by Scott

IW on Facebook

Comments

Thanks

Thanks Scott. I am new to Drupal, was trying to install WAMP and Drupal 7 for test developing. Very helpful video. Many thanks for your efforts.

Rob

That's an excellent intoductory resource

Thanks for giving us some of your time and knowlegde.

Joaquin

Mamp Wamp question

Hi,
Thanks for the video, that zenophile looks pretty slick.
On the mamp Wamp setup... How do you get your directories to dynamically be root level websites, like http://mysite in your vid example? Setting it all up by hand you can edit the Apache .conf file to use virtuals, just wondering how you do this in mampwamp?
Thanks a lot,
~ Jim

Mamp Wamp Answer

Sure its not much different but here's the steps: (I'm on OSX Lion so your steps might be different)

  1. Open up terminal and do a (I use textmate you could change "mate" out for "nano" if needed):

    sudo mate -w /private/etc/hosts

  2. At the very bottom of the file add:

    127.0.0.1 yourawesomesite.com (or whatever you like)

  3. Save it and go back to terminal and type in:

    mate -w vhosts-temp.conf

  4. Throw this at the bottom and save it.. change the pertinent details:

    ServerName myawesomesite.com
    DocumentRoot /Applications/MAMP/htdocs/application/

    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all

  5. Go back to terminal and type:

    mv vhosts-temp.conf /Applications/MAMP/conf/apache/vhosts.conf

  6. If you ever need to add more you can find your vhosts here: /Applications/MAMP/conf/apache/vhosts.conf .. but don't forget to add them to /private/etc/hosts first.
  7. Next back in terminal do a:

    mate -w /Applications/MAMP/conf/apache/httpd.conf

  8. At the end of httpd.conf file add:

    NameVirtualHost *:8888
    Include /Applications/MAMP/conf/apache/vhosts.conf

  9. RESTART APACHE.. via MAMP or terminal: /Applications/MAMP/bin/apache2/bin/apachectl restart
  10. If you aren't comfortable with terminal you can do a lot of this in finder. Good luck!

Sorry step 4 had the code

Sorry step 4 had the code stripped out.

<VirtualHost *:8888>
ServerName application.loc
DocumentRoot /Applications/MAMP/htdocs/application/
<Directory /Applications/MAMP/htdocs/application/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>