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

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Victor Palau
  • Date: 2012-09-03 16:48:29 UTC
  • Revision ID: vtuson@gmail.com-20120903164829-n5ob87ro845fzgzh
lamp charm

Show diffs side-by-side

added added

removed removed

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