Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual Host Support with Drush #21

Open
itsdarrylnorris opened this issue Dec 15, 2014 · 0 comments
Open

Virtual Host Support with Drush #21

itsdarrylnorris opened this issue Dec 15, 2014 · 0 comments
Labels

Comments

@itsdarrylnorris
Copy link
Owner

Problem:

In order to setup a Drupal installation, we need to created a new virtual host and then move to a directory and then install download a Drupal core and then setup the database.

Solution:

We need to integrate Drush 7x as flag. For instance

newsite hostname -d7 

This is going to run create a virtual host and configure all the drupal files similar to the following steps.

cd /var/www/hostname #Move to working directory. Remember that newwebsite can change depends on your hostname.
sudo rm index.html # Remove the test website
sudo drush dl drupal-7 # For D8 just change to drush dl drupal-8
cd drupal-7* 
sudo mv * .[^.]* ..
cd ..
sudo rm -rf drupal-7*  # Remove unnecessary folder
sudo cp sites/default/default.settings.php sites/default/settings.php
sudo chmod a+w sites/default/settings.php
sudo chmod a+w sites/default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant