Created
June 19, 2014 11:09
-
-
Save pratik60/db04c85bf7477dae83db to your computer and use it in GitHub Desktop.
Drupal Installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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