Skip to content

Instantly share code, notes, and snippets.

@axoplasm
Last active January 4, 2016 06:49
Show Gist options
  • Save axoplasm/8584304 to your computer and use it in GitHub Desktop.
Save axoplasm/8584304 to your computer and use it in GitHub Desktop.
* [Install MySQL]
* [ensure PHP is loaded]
* [add local hostname in /private/etc/hosts]
* [add local vhost /private/etc/apache2/conf/httpd-vhosts.conf]
* Download latest alpha from https://drupal.org/node/3060/release
* create sites/default/files
$ mkdir sites/default/files
* copy settings.php
$ cp sites/default/default.settings.php sites/default/settings.php
* clear perms for sites/default
$ chmod -R 777 sites/default
* create database:
mysql> create database foo;
* create MySQL user:
mysql> create user 'foo'@'localhost' identified by 'pA55w0rd';
mysql> grant all privileges on foo.* to 'foo'@'localhost' identified by 'pA55w0rd' with grant option; flush privileges
* load foo.local/install.php
* on __"Set up Database"__ select __Advanced Options__ and change __Host__ from *localhost* to *127.0.0.1*
* Remove write permissions on /sites/default/*
$ chmod -R 755 sites/default/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment