Tux's lil' helper
Joined: 02 Jul 2004
Location: Eastside, WA
|Posted: Thu Nov 03, 2005 12:58 am Post subject: script to simplify webapp-config
|I made this script because of some difficulties I had with installing web apps with a different DocumentRoot. Make sure that you set the vhosts use flag when installing new web apps.
# created by safeness <chillinator at gmail dot com>
# a simplified way to install with webapp-config in a different DocumentRoot such as /var/www/localhost/htdocs/drupal
# set DOCROOT to your DocumentRoot and set HOST to the appropriate host you want to install to
if [ $UID -ne 0 ]
echo "This must be run as root."
if [ -n "$1" ]
webapp-config -I -h $HOST -d /$DOCROOT/$1 $2 $3
echo "Usage: webinstall <dir inside DocumentRoot> <app name> <version>"
echo "Example: webinstall gallery2 gallery 2.0.1 -- This installs gallery-2.0.1 into /var/www/localhost/htdocs/drupal/gallery2"
"The freedom of opinion and the reasonable maintenance of it is not a crime and ought not to occasion injury." --Thomas Jefferson