Revision: 11926
Updated Code
at May 14, 2009 11:16 by ping_ch
Updated Code
#!/bin/bash if [ $# -ne 1 ] then echo "Usage - $0 project name" echo "" exit 1 fi echo " 127.0.0.1 $1" >> /etc/hosts echo " <VirtualHost *:80> ServerAdmin me@localhost DocumentRoot /home/stefan/wwwroot/cake/$1/webroot/ ServerName $1 </VirtualHost> " >> /etc/apache2/sites-enabled/all apache2ctl restart
Revision: 11925
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 24, 2009 04:46 by ping_ch
Initial Code
#!/bin/bash if [ $# -ne 1 ] then echo "Usage - $0 project name" echo "" exit 1 fi echo " 127.0.0.1 $1" >> /etc/hosts echo " <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /home/stefan/wwwroot/cake/$1/webroot/ ServerName $1 </VirtualHost> " >> /etc/apache2/sites-enabled/all apache2ctl restart
Initial URL
init-site
Initial Description
A small script that sets up a new VirtualHost with Apache and adds an entry for the site to your hosts file. You need to adjust the paths to your needs. Must be run as root.
Initial Title
Setup new web project
Initial Tags
apache
Initial Language
Bash