A couple of bash scripts to aid Drupal 7 installation

A couple of bash scripts to aid Drupal 7 installation

Posted 11/30/2009 - 09:05 by State68

I'm spending quite a bit of time writing and reviewing patches for Drupal 7 at the moment. The installation process is great, but there are still a couple of bits of repetitive work that I had to do every time I installed, like setting permissions and creating folders.

I've written a couple of bash scripts to automate this. Put them in the next level up from your drupal 7 site's root: for example, if your drupal7 install is at /Applications/XAMPP/xamppfiles/htdocs/drupal7, put the scripts in /Applications/XAMPP/xamppfiles/htdocs.

Next, download Drupal 7 HEAD - the easiest way is via CVS. Then, run the first script as follows:

sudo sh di1.sh yourdrupalfolder

Where "yourdrupalfolder" is - well - your Drupal folder.

Then start the Drupal installation process. Keep going until everything is done and the installer tells you you need to set a few permissions to keep your site secure. Then run the second script:

sudo sh di2.sh yourdrupalfolder

Simple, but very useful if you're re-installing Drupal 7 pretty often.

AttachmentSize
D7_Install_Scripts.zip439 bytes
hi there thanks for that easy

hi there thanks for that easy short and handy way tutorial
grear work

Posted by Anonymous on Sun, 02/14/2010 - 13:32
would like to try it but the scripts aren't downloading

am i missing something?

thanks in advance!

Posted by Anonymous on Thu, 01/14/2010 - 19:38
Drupal was being a bit weird

Drupal was being a bit weird about having .sh files as attachments. I've zipped the scripts and attached the .zip file, and that seems to be working fine.

Posted by State68 on Sat, 01/16/2010 - 18:51