Skip to content

Instantly share code, notes, and snippets.

@deepakaryan1988
Forked from pratik60/installwithdrush
Created June 24, 2014 09:27
Show Gist options
  • Save deepakaryan1988/f52c5bcaf8efba3ee2a4 to your computer and use it in GitHub Desktop.
Save deepakaryan1988/f52c5bcaf8efba3ee2a4 to your computer and use it in GitHub Desktop.
cd /var/www
drush dl drupal --drupal-project-rename=d7
cd d7
drush si -y --db-url=mysql://root:personofinterest@localhost/d7
drush upwd admin --password="admin"
//Maybe you need this
cd sites/default
sudo chmod -R 777 files
//Making it d7.local
sudo vi /etc/hosts
sudo vi /etc/apache2/sites-enabled/vhosts.conf
sudo /etc/init.d/apache2 restart
//Installation Issues
cd /etc/apache2/sites-enabled
sudo vim 000-default
{
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All /* IMPORTANT CHANGE */
Order allow,deny
allow from all
</Directory>
}
sudo service apache2 restart
sudo a2enmod rewrite
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment