#!/bin/bash set -eux ## Old lxc script, might be used as a base for new docker Dockerfile generator. ## ## apt-get -y install apache2 libapache2-mod-php5 libtidy-0.99-0 build-essential /etc/php5/apache2/conf.d/tidy.ini apt-get -y install php5-tidy ## XXXvlab: the following is better # pecl install xdebug # echo "extension=xdebug.so" >> /etc/php5/apache2/conf.d/xdebug.ini apt-get -y install php5-xdebug #rdfapi-php ? #a2enmod dav_fs ssl userdir rewrite suexec a2enmod ssl rewrite /etc/init.d/apache2 restart ## XXXvlab: Should move the following in a relation ## ## Install Mail utils (for php mail command and crond script mail) ## # MAIL_DOMAINNAME=${MAIL_DOMAINNAME:-"localdomain"} # MAIL_SATTELITE_RELAYHOST=${MAIL_SATTELITE_RELAYHOST:-} # debconf-set-selections <<< "postfix postfix/mailname string ${LXC_NAME}.${MAIL_DOMAINNAME}" # debconf-set-selections <<< "postfix postfix/main_mailer_type select 'Local only'" # apt-get install -y postfix mailutils