~vtuson/charms/precise/your-charms-name/trunk

1 by Victor Palau
lamp charm
1
#!/bin/sh
2
3
4
#create directories to store mysql configuration
5
mkdir -p /var/webconfig
6
cp ./lib/* /var/webconfig
6 by Victor Palau
small fixes to chown commands
7
hown -R www-data:www-data /var/webconfig
1 by Victor Palau
lamp charm
8
9
juju-log "Installing packages"
10
apt-get install -y apache2 php5 mysql-client php5-mysql php5-mcrypt ttf-dejavu-core ucf debconf-utils
11
12
# Configure apache
13
juju-log "Enabling apache modules: rewrite, vhost_alias, php5"
14
a2enmod rewrite vhost_alias php5
8 by Victor Palau
small change
15
service apache2 restart
1 by Victor Palau
lamp charm
16
17
#copy php files to directory
18
cp ./website/* /var/www
19
chown -R www-data:www-data /var/www
20