• Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Coolest Guides on the Planet

coolest guides on the planet

Come for the software, stay for the community

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Fastest Way of Installing Drupal 6 on Mac OS X

July 11, 2011 Leave a Comment

Fastest Way to install the latest Drupal 6 version on Mac OS X

fast-drupal-osx-lion-install

fast-drupal-osx-lion-install

This assumes the web sharing method is the standard OS X user web sharing service as shared from  ~/Sites, the shared drupal directory will be called “drupal“. The mysql database is called drupal and the mysql user is root, the password for the database you have to add. This assumes that OS X has apache/mysql/php and phpmyadmin all ready to go.

make a sharing directory and move into it

 mkdir ~/Sites/drupal ; cd ~/Sites/drupal

get the last drupal version 6,  

 curl -O http://ftp.drupal.org/files/projects/drupal-6.22.tar.gz 

expand it

tar -xvzf drupal-6.22.tar.gz 

move all files into shared directory one level up

mv drupal-6.22/* .

move hidden files one level up

mv drupal-6.22/.* .

remove compressed archive and empty directory

rm -rf drupal-*

create a settings file

cp ~/Sites/drupal/sites/default/default.settings.php ~/Sites/drupal/sites/default/settings.php

fix permissions on the default directory and settings file

chmod -R a+w ~/Sites/drupal/sites/default

or do the first lot in one hit

mkdir ~/Sites/drupal ; cd ~/Sites/drupal ; curl -O http://ftp.drupal.org/files/projects/drupal-6.22.tar.gz ;tar -xvzf drupal-6.22.tar.gz ; mv drupal-6.22/* . ; mv drupal-6.22/.* . ; rm -rf drupal-* ; cp ~/Sites/drupal/sites/default/default.settings.php ~/Sites/drupal/sites/default/settings.php ; chmod -R a+w ~/Sites/drupal/sites/default 

create it a new database (no space between -p and password – as an alternative this can be done in phpmyadmin

mysql -u [username] -p[password] -e "create database [databasename];"

open it up in your default browser

open http://localhost/~username/drupal/

 

Or the whole 9 yards in one command line string

!! [dropcap]D[/dropcap]oing the whole nine yards – make sure you swap in your deats!

mkdir ~/Sites/drupal ; cd ~/Sites/drupal ; curl -O http://ftp.drupal.org/files/projects/drupal-6.22.tar.gz ;tar -xvzf drupal-6.22.tar.gz ; mv drupal-6.22/* . ; mv drupal-6.22/.* . ; rm -rf drupal-* ; cp ~/Sites/drupal/sites/default/default.settings.php ~/Sites/drupal/sites/default/settings.php ; chmod -R a+w ~/Sites/drupal/sites/default ; mysql -u [username] -p[password] -e "create database [databasename]
; open http://localhost/~username/drupal

Finish the install via the browser…

 

drupal-6-osx-install

drupal-6-osx-install

Thats all there is to it – to install Drupal 7 is exactly the same process and if you need to sort out clean URLs check it out here.

And also for smoother compatibilities for Drupal upgrades and module/theme add on installs change the local ownership to _www

sudo chown -R _www ~/Sites/drupal

Cats: Drupal, macOS, Open Source, Tech Tags: 10.6, 6.22, clean, clean urls, curl, drupal, mac, OSX, urls

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Apple confirms that its Maps app will begin showing ads to users "this summer"
  • Apple will talk iOS 27, macOS 27, and more at WWDC 2026 on June 8
  • Despite hardware limits, Parallels supports running Windows on MacBook Neo
  • Apple can delist apps "with or without cause," judge says in loss for Musi app
  • Apple’s AirPods Max 2 bring H2 chip, boosted ANC in April for $549

RSS mac surfer

  • Apple Updates App Store Connect Analytics Platform
  • macOS Tahoe 26.4 Update Released
  • watchOS 26.4 Update Released
  • tvOS 26.4 Update Released
  • visionOS 26.4 Update Released

Donate

Copyright © 2026· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2026 · gee on Genesis Framework · WordPress · Log in