Charm: oneiric/phpmyadmin
Revision: 46
Hook: install
#!/bin/sh
# Install the totally awesome charm-helper-sh package
add-apt-repository ppa:charmers/charm-helpers
apt-get update && apt-get install -y charm-helper-sh
. lib/common.sh
juju-log "Creating required, charm level, directories"
mkdir -p tmp meta
juju-log "Installing dependancies"
apt-get install -y apache2 php5 mysql-client php5-mysql php5-mcrypt ttf-dejavu-core ucf debconf-utils
install_phpmyadmin
# Configure apache
juju-log "Enabling apache modules: rewrite, vhost_alias, php5"
a2enmod rewrite vhost_alias php5
chown -R www-data:www-data /var/www