fork 0k-charms
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.

69 lines
1.8 KiB

  1. #!/bin/bash
  2. set -eux
  3. apt-get -y install apache2 libapache2-mod-php5 libtidy-0.99-0 build-essential </dev/null
  4. apt-get -y install php5-dev php5-ldap php5-xsl php-pear </dev/null
  5. ## Couldn't find this one:
  6. #php-mcrypt
  7. apt-get -y install libapache2-mod-python libmysqlclient-dev python-dev </dev/null
  8. apt-get -y install php5-mysql </dev/null
  9. apt-get -y install python-docutils </dev/null ## for rst2html
  10. #apt-get install squirrelmail
  11. ##
  12. ## PHPMyAdmin (not finished)
  13. ##
  14. # export DEBIAN_FRONTEND=noninteractive ## mainly for ``phpmyadmin`` package...
  15. # apt-get -y install phpmyadmin
  16. ## Not working on ubuntu/15.10
  17. #ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin
  18. #ln -sf /usr/share/phpmyadmin /var/www/s-lmc.kalysto.org/phpmyadmin
  19. ## XXX: configuration of DB access ?
  20. ## XXXvlab: the following is better
  21. # pecl install tidy
  22. # echo "extension=tidy.so" > /etc/php5/apache2/conf.d/tidy.ini
  23. apt-get -y install php5-tidy
  24. ## XXXvlab: the following is better
  25. # pecl install xdebug
  26. # echo "extension=xdebug.so" >> /etc/php5/apache2/conf.d/xdebug.ini
  27. apt-get -y install php5-xdebug
  28. #rdfapi-php ?
  29. #a2enmod dav_fs ssl userdir rewrite suexec
  30. a2enmod ssl rewrite
  31. /etc/init.d/apache2 restart
  32. ## XXXvlab: Should move the following in a relation
  33. ##
  34. ## Install Mail utils (for php mail command and crond script mail)
  35. ##
  36. # MAIL_DOMAINNAME=${MAIL_DOMAINNAME:-"localdomain"}
  37. # MAIL_SATTELITE_RELAYHOST=${MAIL_SATTELITE_RELAYHOST:-}
  38. # debconf-set-selections <<< "postfix postfix/mailname string ${LXC_NAME}.${MAIL_DOMAINNAME}"
  39. # debconf-set-selections <<< "postfix postfix/main_mailer_type select 'Local only'"
  40. # apt-get install -y postfix mailutils </dev/null
  41. # postconf inet_interfaces=loopback-only
  42. # [ -z "$MAIL_SATTELITE_RELAYHOST" ] && postconf relayhost="$MAIL_SATTELITE_RELAYHOST"
  43. # postfix reload