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 yourdrupalfolderWhere "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 yourdrupalfolderSimple, but very useful if you're re-installing Drupal 7 pretty often.
| Attachment | Size |
|---|---|
| D7_Install_Scripts.zip | 439 bytes |

hi there thanks for that easy short and handy way tutorial
grear work
am i missing something?
thanks in advance!
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.