From 46beface1738ccc7425852c926f8984abfb9581e Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Tue, 15 Apr 2008 14:56:44 +1200 Subject: [PATCH] changes to suit my setup in php5 profile --- profile/php5/data/htdocs | 2 +- profile/php5/post-vserver | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/profile/php5/data/htdocs b/profile/php5/data/htdocs index 0109bdf..17556ef 100644 --- a/profile/php5/data/htdocs +++ b/profile/php5/data/htdocs @@ -1,6 +1,6 @@ ServerName __VSNAME__.__HOST__.wgtn.cat-it.co.nz - DocumentRoot /home/__PROFILEOPTION_username__/htdocs + DocumentRoot /var/www/__VSNAME__/htdocs diff --git a/profile/php5/post-vserver b/profile/php5/post-vserver index b9ed140..20a0e01 100644 --- a/profile/php5/post-vserver +++ b/profile/php5/post-vserver @@ -1,13 +1,8 @@ USR=$PROFILEOPTION_username rm /etc/apache2/sites-enabled/000-default -ln -s /etc/apache2/sites-available/htdocs-$USR /etc/apache2/sites-enabled/100-htdocs-$USR +ln -s /etc/apache2/sites-available/htdocs /etc/apache2/sites-enabled/100-htdocs echo 'NameVirtualHost *' > /etc/apache2/sites-enabled/000-namevirtualhost -mkdir /home/$USR/htdocs -echo '' > /home/$USR/htdocs/index.php - -chown -R $USR:$USR /home/$USR/htdocs - apache2ctl graceful -- 2.39.5