Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer:colo_container_recipe [2018/06/19 16:55]
tdobes
computer:colo_container_recipe [2019/04/18 12:06] (current)
tdobes
Line 25: Line 25:
   * ''​aptitude update && aptitude forget-new && aptitude full-upgrade''​   * ''​aptitude update && aptitude forget-new && aptitude full-upgrade''​
   * ''​aptitude install apache2 php-fpm''​   * ''​aptitude install apache2 php-fpm''​
 +  * //for glpa-web:// ''​aptitude install php-mcrypt''​
   * ''​a2enmod rewrite proxy_fcgi ssl userdir && a2enconf php7.0-fpm''​   * ''​a2enmod rewrite proxy_fcgi ssl userdir && a2enconf php7.0-fpm''​
   * <​del>#​ ''​a2ensite default-ssl''</​del>​   * <​del>#​ ''​a2ensite default-ssl''</​del>​
Line 114: Line 115:
     * merge in any site-specific settings into /​etc/​apache2/​sites-enabled/​drupal.conf     * merge in any site-specific settings into /​etc/​apache2/​sites-enabled/​drupal.conf
     * ''​a2enmod headers expires''​ # these are used by drupal     * ''​a2enmod headers expires''​ # these are used by drupal
 +    * ''​%%aptitude --without-recommends install php-uploadprogress%%''​ # drupal wants this too (without recommends to avoid apache mod_php)
   * migrate ssh keys: ''​cp -a /​mnt/​old/​etc/​ssh/​ssh_host_*key* /​etc/​ssh/''​   * migrate ssh keys: ''​cp -a /​mnt/​old/​etc/​ssh/​ssh_host_*key* /​etc/​ssh/''​
   * migrate homes: ''​%%rsync -aix --del /​mnt/​old/​home/​ /​home/​%%''​   * migrate homes: ''​%%rsync -aix --del /​mnt/​old/​home/​ /​home/​%%''​
   * migrate webroot: ''​%%rsync -aix --del /​mnt/​old/​var/​www/​ /​var/​www/​%%''​   * migrate webroot: ''​%%rsync -aix --del /​mnt/​old/​var/​www/​ /​var/​www/​%%''​
   * migrate apache config: ''​%%rsync -ai --ignore-existing /​mnt/​old/​etc/​apache2/​sites-enabled/​ /​etc/​apache2/​sites-enabled/​%%''​   * migrate apache config: ''​%%rsync -ai --ignore-existing /​mnt/​old/​etc/​apache2/​sites-enabled/​ /​etc/​apache2/​sites-enabled/​%%''​
-  * migrate http basic auth files: ''​%%rsync -aix --del /​mnt/​old/​etc/​apache2/​auth /​etc/​apache2/​%%''​+  ​* migrate cron scripts: ''​%%rsync -ai --ignore-existing --exclude php5 /​mnt/​old/​etc/​cron.d/​ /​etc/​cron.d/​%%''​ 
 +  * for iyb vm: 
 +    ​* migrate http basic auth files: ''​%%rsync -aix --del /​mnt/​old/​etc/​apache2/​auth /​etc/​apache2/​%%''​ 
 +    * ''​aptitude install unzip''​ 
 +  * for glpa vm: 
 +    * ''​a2enmod proxy_http''​ # needed to pass through HLS to stream vm 
 +    * php 7.3 backport:<​code>​ 
 +aptitude install apt-transport-https 
 +#wget -O- "​https://​packages.sury.org/​php/​apt.gpg"​ | apt-key add - 
 +wget -O /​etc/​apt/​trusted.gpg.d/​php.gpg https://​packages.sury.org/​php/​apt.gpg 
 +echo 'deb https://​packages.sury.org/​php/​ stretch main' > /​etc/​apt/​sources.list.d/​php.list 
 +aptitude update && aptitude full-upgrade # (but disable libapache2-mod-php,​ which is recommended by php-uploadprogress) 
 +a2disconf php7.0-fpm && a2enconf php7.3-fpm && systemctl reload apache2 
 +sed -i -e '​s/​^post_max_size = 8M$/​post_max_size = 50M/g' -e '​s/​^upload_max_filesize = 2M$/​upload_max_filesize = 50M/g' /​etc/​php/​7.3/​fpm/​php.ini 
 +systemctl reload php7.3-fpm 
 +systemctl stop php7.0-fpm && systemctl disable php7.0-fpm 
 +systemctl enable php7.3-fpm && systemctl start php7.3-fpm 
 +</​code>​
computer/colo_container_recipe.1529445340.txt.gz · Last modified: 2018/06/19 16:55 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS