~jorge/charms/precise/lamp/readme-fixes

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
7
hown -R www-data:www-data /var/www/*
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
15
16
#copy php files to directory
17
cp ./website/* /var/www
18
chown -R www-data:www-data /var/www
19