]> git.mjollnir.org Git - vserverctl.git/commitdiff
changes to suit my setup in php5 profile
authorPenny Leach <penny@catalyst.net.nz>
Tue, 15 Apr 2008 02:56:44 +0000 (14:56 +1200)
committerPenny Leach <penny@catalyst.net.nz>
Tue, 15 Apr 2008 02:56:44 +0000 (14:56 +1200)
profile/php5/data/htdocs
profile/php5/post-vserver

index 0109bdf0150f036daee1e52bd33698c89d65cc69..17556ef32ced044a3997c0c3fbff596ba875ab85 100644 (file)
@@ -1,6 +1,6 @@
 <VirtualHost *>
     ServerName __VSNAME__.__HOST__.wgtn.cat-it.co.nz
 
-    DocumentRoot /home/__PROFILEOPTION_username__/htdocs
+    DocumentRoot /var/www/__VSNAME__/htdocs
 
 </VirtualHost>
index b9ed14096da2977a6448ec89ae9c90386196f9ca..20a0e0162fb5c8c3f86e4c58cf9a62424cf629b2 100644 (file)
@@ -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 '<?php phpinfo(); ?>' > /home/$USR/htdocs/index.php
-
-chown -R $USR:$USR /home/$USR/htdocs
-
 apache2ctl graceful