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.

73 lines
1.9 KiB

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