You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.3 KiB

  1. #!/bin/bash
  2. set -eux
  3. apt-get -y install apache2 libapache2-mod-php5 libtidy-0.99-0 build-essential
  4. apt-get -y install php5-dev php5-ldap php5-xsl php-pear
  5. ## Couldn't find this one:
  6. #php-mcrypt
  7. apt-get -y install libapache2-mod-python libmysqlclient-dev python-dev
  8. apt-get -y install php5-mysql
  9. apt-get -y install python-docutils ## for rst2html
  10. #apt-get install squirrelmail
  11. apt-get -y install phpmyadmin
  12. ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin
  13. #ln -sf /usr/share/phpmyadmin /var/www/s-lmc.kalysto.org/phpmyadmin
  14. pecl install tidy
  15. echo "extension=tidy.so" > /etc/php5/apache2/conf.d/tidy.ini
  16. pecl install xdebug
  17. echo "extension=xdebug.so" >> /etc/php5/apache2/conf.d/xdebug.ini
  18. #rdfapi-php ?
  19. #a2enmod dav_fs ssl userdir rewrite suexec
  20. a2enmod ssl rewrite
  21. /etc/init.d/apache2 restart
  22. ##
  23. ## Install Mail utils (for php mail command and crond script mail)
  24. ##
  25. MAIL_DOMAINNAME=${MAIL_DOMAINNAME:-"localdomain"}
  26. MAIL_SATTELITE_RELAYHOST=${MAIL_SATTELITE_RELAYHOST:-}
  27. debconf-set-selections <<< "postfix postfix/mailname string ${LXC_NAME}.${MAIL_DOMAINNAME}"
  28. debconf-set-selections <<< "postfix postfix/main_mailer_type select 'Local only'"
  29. apt-get install -y postfix mailutils
  30. postconf inet_interfaces=loopback-only
  31. [ -z "$MAIL_SATTELITE_RELAYHOST" ] && postconf relayhost="$MAIL_SATTELITE_RELAYHOST"
  32. postfix reload