• 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!

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

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