Skip to content

Instantly share code, notes, and snippets.

@asiletto
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asiletto/50a7aba3ee54c2e093ae to your computer and use it in GitHub Desktop.
Save asiletto/50a7aba3ee54c2e093ae to your computer and use it in GitHub Desktop.
drush dl drupal
mv drupal-7.37/ d7dev
cd d7dev/
drush si standard --db-url=mysql://root:root@localhost:3306/d7dev --db-su=root --db-su-pw=root --site-name="Test"
cat > /etc/apache2/sites-available/d7dev.conf
<VirtualHost *:80>
ServerName d7dev
ServerAdmin webmaster@localhost
DocumentRoot /var/www/d7dev
ErrorLog ${APACHE_LOG_DIR}/d7dev-error.log
CustomLog ${APACHE_LOG_DIR}/d7dev-access.log combined
</VirtualHost>
^D
a2ensite d7dev
service apache2 reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment