install drupal bash script
Rough cut of a script that will set up a user, domain, database, dns, apache on Ubuntu or Debian and allow a user to start Drupal installation at http://domain/
Problems, comments, suggestions to tarvid@ls.net.
More at http://drupal.ls.net/
Groups:
Login to post comments

Looks pretty useful. I
Looks pretty useful. I wouldn't grant all mysql priviliges to the database user but only those needed.
Btw. to quickly find the script: http://drupal.ls.net/node/47
--
My Drupal Articles
I created a modified version
I created a modified version of your script that is useful for development installations, which you can find at: http://cvs.drupal.org/viewvc.py/drupal/contributions/sandbox/yaph/script...
It only installs Drupal no apache or DNS configuration.
--
My Drupal Articles
Drupal module install bash script
Following up on the idea, which I love, and I am using it perfectly, I went ahead and made one for installing modules to avoid repetitive tasks of downloading/decompressing/removing the file:
#!/bin/bash
# Script for downloading / uncompressing drupal modules
# check for user input
if [ ! $@ ]; then
echo "Example usage:"
echo "$0 drupal http://ftp.drupal.org/files/projects/views_accordion-6.x-1.2-beta1.tar.gz"
echo "Where 'drupal' is the name of your directory within your localhost."
exit 0
fi
NAME=$1
DOWNLOAD=$2
FILENAME=${DOWNLOAD#'http://ftp.drupal.org/files/projects/'}
MODULE=${FILENAME%'.tar.gz'}
INSTALL_DIR="/var/www/$1/sites/all/modules"
MODULE_INSTALL_DIR="/var/www/$1/sites/all/modules/$MODULE"
if [ -d $MODULE_INSTALL_DIR ]; then
echo "$MODULE_INSTALL_DIR exists!"
exit 0
fi
cd $INSTALL_DIR
# example download link http://ftp.drupal.org/files/projects/views_accordion-6.x-1.2-beta1.tar.gz
echo "Starting download..."
wget $DOWNLOAD
echo "Decompressing package..."
tar xzf $FILENAME
echo "Done!"
echo ""
# removing downloaded package
rm $FILENAME
echo "Removed $FILENAME for you."
echo ""
echo "***********************************************************************"
echo "** Finished installing $MODULE"
echo "** You can find it under: $INSTALL_DIR"
echo "** Go to http://localhost/$NAME/admin/build/modules/ to activate it."
echo "***********************************************************************"
Hope you like it!
Installing BASH Script Question (OFF TOPIC)
Hello group..
I am quite a newb to NIX and have been searching the WWW trying to figure out how to install BASH scripts to a NIX server.
A friend of mine directed me to "Blocking IP address of any country with iptables" located at http://blogama.org/node/62
My questions are dumb and will most likely frustrate some, for this I applogize.
1) Into which directory should I install the API? (/root)
2) How is the script executed? (incoming/outgoing traffic requests)
3) Would there be a specific name I apply to the AP and should any special permissions be applied to the API?
Thanking you in advance for your words of wisdom and shared knowledge.
Best Regards