Drupal on your laptop

844 views

Published on

Slides from a demo at Drupal Camp CT 2012

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
844
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Drupal on your laptop

    1. 1. Drupal on your Desktop
    2. 2. Drupal on your Desktop Running a webserver and database locally
    3. 3. Drupal on your Desktop Running a webserver and database locally• Fast• Easy• Safe• Eliminates network issues in debugging
    4. 4. Things you’ll need
    5. 5. Things you’ll need Several easy packages available
    6. 6. Things you’ll need Several easy packages available• MAMP (or WAMP) - http://www.mamp.info/• Drupal• admin password for your machine
    7. 7. Things you may want
    8. 8. Things you may want Recommended
    9. 9. Things you may want Recommended• drush• wget• a good text editor• GitHub for Mac
    10. 10. MAMP
    11. 11. Hostname edit your /etc/hosts: add 127.0.0.1 mysite.mydomain.localThis will allow your browser to find your local site
    12. 12. DrupalUnpack Drupal into your htdocs /Applications/MAMP/htdocs
    13. 13. Drupal Create your site directory at/Applications/MAMP/htdocs/sites/mysite.mydomain.local Copy sites/default/default.settings.php into sites/mysite.mydomain.local as settings.php Create sites/mysite.mydomain.local/files Set permissions (chmod 777 *)
    14. 14. MySQL Visit phpMyAdmin Set a root passwordCreate an empty database and a user/password set with access to it
    15. 15. Virtual Host setup edit your /Applications/MAMP/conf/apache/httpd.conf:1. Check that NameVirtualHost *:80 is not commented out2. <VirtualHost *:80> DocumentRoot "/Applications/MAMP/htdocs" ServerName d7tester.resonetrics.local </VirtualHost>
    16. 16. Install Drupal Visit mysite.myserver.localGo through standard install process
    17. 17. Install Drush Get drush from drupal.org/project/drush Unpack wherever it’s convenient Add drush to your $PATHor make an alias in /usr/bin, /usr/local/bin, etc.
    18. 18. Use DrushNavigate to sites/mysite.myserver.local in your terminal type “drush” for a list of commandsdrush up - updates your modules and runs update.php drush cc - clears cache drush dl <project_name> - downloads a moduledrush en <project_name> - enables the module for the current site only
    19. 19. Git and GitHub Go to github.com and make an account Generating ssh keys:https://help.github.com/articles/generating-ssh-keys http://mac.github.com/

    ×