Tags:
create new tag
, view all tags
Annotations

Sur cdsportal :

mysqldump --databases annotations piwik spip -p > dump

# copier le dump sur ncdsportal

Sur ncdsportal :

sudo systemctl stop mariadb
sudo mkdir /ssddata/mysql

sudo cp -R -p /var/lib/mysql/* /ssddata/mysql/

sudo chcon -Rt mysqld_db_t /ssddata/mysql
sudo chcon -Ru system_u /ssddata/mysql
sudo chown -R mysql:mysql /ssddata/mysql

mysql -u root -p < dump

Documents HTTP

copier du contenu de cdsportal:/var/www/ dans ncdsportal:/var/www/html/

restorecon -r /var/www/html

Piwik

sudo chcon -R -t httpd_sys_content_rw_t /var/www/html/piwik/tmp/cache/tracker

sudo chcon -R -t httpd_sys_content_rw_t /var/www/html/piwik/tmp/

sudo chcon -R -t httpd_sys_content_rw_t /var/www/html/piwik/tmp/cache

sudo chcon -R -t httpd_sys_content_rw_t /var/www/html/piwik/config

Install GLU

Copie de /usr/local/glu/* de cdsportal vers ncdsportal

compilation du code trouvé depuis aladin.unistra.fr/glu/glu.tar.gz

Déploiement partie cliente

rsync -avz --exclude=".svn" /home/boch/workspace/NewPortalClient/src/web-pages/search-page/* root@cdsportal:/var/www/html/

HTTPS

yum install python-certbot-apache

/usr/bin/certbot certonly --dry-run --webroot --webroot-path /var/www/html --email thomas.boch@astro.unistra.fr --domain cdsportal.unistra.fr --domain cdsannotations.unistra.fr

/usr/bin/certbot certonly --webroot --webroot-path /var/www/html --email thomas.boch@astro.unistra.fr --domain cdsportal.unistra.fr --domain cdsannotations.unistra.fr

Ajout renouvellement dans crontab. Editer crontab et ajouter :

# renew letsencrypt SSL certificate for HTTPS

37 3 * * * /usr/bin/certbot renew

TODO

ajout GLU dans systemctl

plus tard :

voir si on peut passer en cdsportal.UNISTRA.fr et cdsannotations.UNISTRA.fr --> impact au niveau des cookies??

HTTPS

-- Main.ThomasBoch - 2016-12-14

Topic revision: r6 - 2016-12-19 - ThomasBoch
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback