Welcome to http://www.marssoft.de/
 
Tuesday, 23rd July 2019 03:33:13 (GMT+1) 

Differences

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

Link to this comparison view

guides:drupal7 [2017/03/29 23:00]
127.0.0.1 external edit
guides:drupal7 [2017/03/30 20:52] (current)
mario
Line 375: Line 375:
    * http://​biodataanalysis.de/​admin/​reports/​status    * http://​biodataanalysis.de/​admin/​reports/​status
    * http://​biodataanalysis.de/​admin/​config/​development/​maintenance    * http://​biodataanalysis.de/​admin/​config/​development/​maintenance
- 
- 
- 
-==== Setting up a Basic Multi-Site Drupal 8 installation ==== 
- 
-Read first the update and installation instructions here: 
-   * https://​www.drupal.org/​docs/​8/​upgrade/​preparing-an-upgrade 
-   * https://​www.drupal.org/​docs/​8/​install 
- 
-==== For the Page biodataanalysis.de ==== 
- 
-First backup mySQL databases. On Aldebaran, do: 
-<​code>​ 
-# list mySQL databases 
-mysql --user='​root'​ --password=''​ --execute='​SHOW DATABASES;'​ 
- 
-DATE=$(date +%s) 
-mysqldump --user='​root'​ --password=''​ --databases '​emmenlau_emmenl_drupal'​ | gzip -9 > ~/​emmenlau_emmenl_drupal_${DATE}.sql.gz 
-mysqldump --user='​root'​ --password=''​ --databases '​emmenlau_valumar_drupal'​ | gzip -9 > ~/​emmenlau_valumar_drupal_${DATE}.sql.gz 
-</​code>​ 
- 
-First backup mySQL databases. On Atlas, do: 
-<​code>​ 
-# list mySQL databases 
-mysql --user='​root'​ --password=''​ --execute='​SHOW DATABASES;'​ 
- 
-DATE=$(date +%s) 
-mysqldump --user='​root'​ --password=''​ --databases '​emmenlau_biodat_drupal'​ | gzip -9 > ~/​emmenlau_biodat_drupal_${DATE}.sql.gz 
-</​code>​ 
- 
-Make a new empty Drupal 8 installation:​ 
-<​code>​ 
-ssh aldebaran 
-ssh atlas 
- 
-mkdir -p /​home/​www/​www-mario-common/​drupal-current/​sites/​biodataanalysis.de 
-mkdir -p /​home/​www/​de.biodataanalysis/​pages 
-mkdir -p /​home/​www/​de.biodataanalysis/​pages/​data 
- 
-cd /​home/​www/​www-mario-common/​ && \ 
-sudo chmod g+w . && \ 
-wget https://​ftp.drupal.org/​files/​projects/​drupal-8.2.7.tar.gz && \ 
-untargz drupal-8.2.7.tar.gz && \ 
-sudo ln -s ../​../​www-mario-common-atlas/​drupal-8.2.7 /​home/​www/​de.biodataanalysis/​pages/​drupal-8.2.7 
-</​code>​ 
- 
- 
-<​code>​ 
-# create a new mysql database: 
-mysql --user='​root'​ --password=''​ --execute="​CREATE DATABASE emmenlau_biodat_drupal8 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;"​ 
-# create a user for this database: 
-mysql --user='​root'​ --password=''​ --execute="​CREATE USER '​emmenlau_biodat'​@'​localhost'​ IDENTIFIED BY '<​put password here>';"​ 
-# grant required permissions for table: 
-mysql --user='​root'​ --password=''​ --execute="​GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES, CREATE TEMPORARY TABLES ON emmenlau_biodat_drupal8.* TO '​emmenlau_biodat'​@'​localhost';"​ 
- 
-# set up multi-site configuration as discussed in drupal-8.2.7/​core/​INSTALL.txt 
-cp -iv drupal-8.2.7/​sites/​example.sites.php drupal-8.2.7/​sites/​sites.php 
-mkdir -p drupal-8.2.7/​sites/​new.biodataanalysis.de 
-cp -iv drupal-8.2.7/​sites/​default/​default.settings.php drupal-8.2.7/​sites/​new.biodataanalysis.de/​settings.php 
-mkdir -p drupal-8.2.7/​sites/​new.biodataanalysis.de/​files 
- 
-sudo chmod -R u+rwX,​g+rX-w,​o-rwx ​ drupal-8.2.7* 
-sudo chown -R www-mario:​www-mario drupal-8.2.7* 
- 
-# give every specific write permissions on the upload directories:​ 
-sudo chmod -R g+w drupal-8.2.7/​sites/​new.biodataanalysis.de/​files 
-sudo chmod -R g+w drupal-8.2.7/​sites/​new.biodataanalysis.de/​settings.php 
- 
-# configure Apache to use this new website: 
-sudo cp -iv /​etc/​apache2/​sites-available/​de.biodataanalysis /​etc/​apache2/​sites-available/​de.biodataanalysis.new 
-sudo nano /​etc/​apache2/​sites-available/​de.biodataanalysis.new ​ 
-sudo chmod 664 /​etc/​apache2/​sites-available/​de.biodataanalysis.new 
-sudo ln -s ../​sites-available/​de.biodataanalysis.new /​etc/​apache2/​sites-enabled/​2400-de.biodataanalysis.new.conf ​ 
-sudo service apache2 reload 
-</​code>​ 
- 
-  * Go to http://​new.biodataanalysis.de/​ to configure the new Drupal 
- 
-Remove the write permissions after successful installation:​ 
-<​code>​ 
-sudo chmod u-w,g-w,o-w drupal-8.2.7/​sites/​new.biodataanalysis.de/​settings.php 
-sudo chmod u-w,g-w,o-w drupal-8.2.7/​sites/​new.biodataanalysis.de 
-</​code>​ 
- 
-# TODO FIXME: Continue here... 
- 
- 
-Make a Drupal 8 with STARTUP Growth Theme installation:​ 
-<​code>​ 
-scp ~/​BioDataAnalysis/​Ressources/​Website/​DrupalTheme-StartupGrowth/​startupgrowth-personal_5.0.0.zip atlas:/​home/​www/​www-mario-common-atlas/​ 
- 
-ssh atlas 
-cd /tmp/ 
-rm -fr /​tmp/​startupgrowth 
-unzip /​home/​www/​www-mario-common-atlas/​startupgrowth-personal_5.0.0.zip 
-sudo mv /​tmp/​startupgrowth/​site/​d8 /​home/​www/​www-mario-common-atlas/​drupal-8.1.6 
-sudo ln -s ../​../​www-mario-common-atlas/​drupal-8.1.6 /​home/​www/​de.biodataanalysis/​pages/​drupal-8.1.6 
-</​code>​ 
- 
-<​code>​ 
-# drop the Drupal 8 test database: 
-mysql --user='​root'​ --password=''​ --execute="​DROP DATABASE emmenlau_biodat_drupal8;"​ 
-# create a new mysql database: 
-mysql --user='​root'​ --password=''​ --execute="​CREATE DATABASE emmenlau_biodat_drupal8 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;"​ 
-# create a user for this database: 
-mysql --user='​root'​ --password=''​ --execute="​CREATE USER '​emmenlau_biodat'​@'​localhost'​ IDENTIFIED BY '<​put password here>';"​ 
-# grant required permissions for table: 
-mysql --user='​root'​ --password=''​ --execute="​GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES, CREATE TEMPORARY TABLES ON emmenlau_biodat_drupal8.* TO '​emmenlau_biodat'​@'​localhost';"​ 
- 
-# import the database initialization for the theme: 
-mysql --user='​root'​ --password=''​ emmenlau_biodat_drupal8 < /​home/​www/​www-mario-common-atlas/​drupal-8.1.6/​_data/​db_instance.sql 
- 
- 
-## set up multi-site configuration as discussed in drupal-8.1.6/​core/​INSTALL.txt 
-#cd /​home/​www/​www-mario-common-atlas/​ 
-#sudo chmod -R g+w drupal-8.1.6 
-#cp -iv drupal-8.1.6/​sites/​example.sites.php drupal-8.1.6/​sites/​sites.php 
-#mkdir -p drupal-8.1.6/​sites/​new.biodataanalysis.de 
-#cp -iv drupal-8.1.6/​sites/​default/​default.settings.php drupal-8.1.6/​sites/​new.biodataanalysis.de/​settings.php 
-#mkdir -p drupal-8.1.6/​sites/​new.biodataanalysis.de/​files 
-# set up default configuration 
-cd /​home/​www/​www-mario-common-atlas/​ 
-sudo chmod -R g+w drupal-8.1.6 
-cp -iv drupal-8.1.6/​sites/​default/​default.settings.php drupal-8.1.6/​sites/​default/​settings.php 
-mkdir -p drupal-8.1.6/​sites/​default/​files 
- 
-sudo chmod -R u+rwX,​g+rX-w,​o-rwx ​ drupal-8.1.6* 
-sudo chown -R www-mario:​www-mario drupal-8.1.6* 
- 
-## give every specific write permissions on the upload directories:​ 
-#sudo chmod -R g+w drupal-8.1.6/​sites/​new.biodataanalysis.de/​files 
-#sudo chmod -R g+w drupal-8.1.6/​sites/​new.biodataanalysis.de/​settings.php 
-# give every specific write permissions on the upload directories:​ 
-sudo chmod -R g+w drupal-8.1.6/​sites/​default/​files 
-sudo chmod -R g+w drupal-8.1.6/​sites/​default/​settings.php 
- 
-# configure Apache to use this new website: 
-sudo cp -iv /​etc/​apache2/​sites-available/​de.biodataanalysis /​etc/​apache2/​sites-available/​de.biodataanalysis.new 
-sudo nano /​etc/​apache2/​sites-available/​de.biodataanalysis.new ​ 
-sudo chmod 664 /​etc/​apache2/​sites-available/​de.biodataanalysis.new 
-sudo ln -s ../​sites-available/​de.biodataanalysis.new /​etc/​apache2/​sites-enabled/​2400-de.biodataanalysis.new.conf ​ 
-sudo service apache2 reload 
-</​code>​ 
- 
-  * To configure the new Drupal, go to: http://​new.biodataanalysis.de/​ 
-  * To login as Admin, go to: http://​new.biodataanalysis.de/​user/​login and use "​admin",​ "​password"​ 
- 
-Remove the now unused _data directory: 
-<​code>​ 
-rm -fr drupal-8.1.6/​_data 
-</​code>​ 
- 
-Remove the write permissions after successful installation:​ 
-<​code>​ 
-sudo chmod u-w,g-w,o-w drupal-8.1.6/​sites/​new.biodataanalysis.de/​settings.php 
-sudo chmod u-w,g-w,o-w drupal-8.1.6/​sites/​new.biodataanalysis.de 
-</​code>​ 
- 
-  * Enable trusted host patterns as discussed here: https://​www.drupal.org/​node/​1992030 
-<​code>​ 
-</​code>​ 
- 
-  * Make sure Google Maps works in the Theme as discussed here: http://​support.morethanthemes.com/​customer/​en/​portal/​articles/​2489151-google-maps-no-longer-work-on-my-drupal-site---how-can-i-fix-that- 
-<​code>​ 
-</​code>​ 
- 
-  * Improve performance with caching at: http://​new.biodataanalysis.de/​admin/​config/​development/​performance 
- 
- 
-====Update to latest Drupal 8==== 
- 
-  * Follow instructions at: https://​www.drupal.org/​node/​2700999 
-    * Put the site in maintenance mode at http://​new.biodataanalysis.de/​admin/​config/​development/​maintenance 
- 
-<​code>​ 
-cd /​home/​www/​www-mario-common-atlas/​ 
-sudo rm -fr drupal-8.2.7 
-sudo cp -par drupal-8.1.6 drupal-8.2.7 
-sudo chown -R emmenlau:​emmenlau drupal-8.2.7 
- 
-cd ./​drupal-8.2.7/​ 
-# Remove the '​core'​ and '​vendor'​ directories:​ 
-rm -fr core vendor 
-# Remove all files in the top-level directory, except any that you added manually: 
-find . -maxdepth 1 -type f -exec rm \{\} \; 
- 
-# fetch the latest Drupal: 
-cd /​home/​www/​www-mario-common-atlas/​ 
-wget https://​www.drupal.org/​files/​projects/​drupal-8.2.7.tar.gz 
-tar -xzf drupal-8.2.7.tar.gz 
- 
-diff -wBdNau drupal-8.1.6/​sites/​default/​default.settings.php drupal-8.2.7/​sites/​default/​default.settings.php > /​tmp/​settings.php.patch 
-perl -pi -e '​s@/​default.settings.php@/​settings.php@g'​ /​tmp/​settings.php.patch 
-cd /​home/​www/​www-mario-common-atlas/​drupal-8.2.7/​ 
-patch -p1 -i /​tmp/​settings.php.patch 
- 
-# point apache2 to the latest directory: 
-sudo nano /​etc/​apache2/​sites-available/​de.biodataanalysis.new 
-sudo service apache2 reload 
- 
-# enable update mode: 
-perl -pi -e '​s@(update_free_access.*) FALSE@$1 TRUE@g'​ sites/​default/​settings.php 
- 
-cd /​home/​www/​www-mario-common-atlas/​ 
-sudo chmod -R u+rwX,​g+rX-w,​o-rwx ​ drupal-8.2.7* 
-sudo chown -R www-mario:​www-mario drupal-8.2.7* 
- 
-# give every specific write permissions on the upload directories:​ 
-sudo chmod -R g+w drupal-8.2.7/​sites/​default/​files 
-sudo chmod -R g+w drupal-8.2.7/​sites/​default/​settings.php 
-</​code>​ 
- 
-  * Start upgrade script at http://​new.biodataanalysis.de/​update.php 
- 
-<​code>​ 
-# disable update mode: 
-cd /​home/​www/​www-mario-common-atlas/​ 
-sudo chown -R emmenlau drupal-8.2.7/​sites/​default 
-perl -pi -e '​s@(update_free_access.*) TRUE@$1 FALSE@g'​ drupal-8.2.7/​sites/​default/​settings.php 
-sudo chown -R www-mario:​www-mario drupal-8.2.7* 
-</​code>​ 
- 
- 
-====== Install or Update Modules / Plugins ====== 
- 
-Sometimes modules must be installed from the SHELL 
- 
-==== Video Embed ==== 
- 
-Download from https://​www.drupal.org/​project/​video_embed_field 
- 
-<​code>​ 
-cd /tmp/ && \ 
-wget --no-check-certificate http://​ftp.drupal.org/​files/​projects/​video_embed_field-8.x-1.4.tar.gz && \ 
-untargz video_embed_field-8.x-1.4.tar.gz && \ 
-sudo rm -fr /​home/​www/​www-mario-common/​drupal-current/​modules/​video_embed_field && \ 
-sudo mv video_embed_field /​home/​www/​www-mario-common/​drupal-current/​modules/​video_embed_field && \ 
-sudo mv video_embed_field-8.x-1.4.tar.gz /​home/​www/​www-mario-common/​ && \ 
-sudo chown -R www-mario:​www-mario /​home/​www/​www-mario-common/​drupal-current/​modules/​video_embed_field && \ 
-sudo chmod -R g+rwX,​o-rwx ​        /​home/​www/​www-mario-common/​drupal-current/​modules/​video_embed_field 
-</​code>​ 
- 
-==== Superfish ==== 
- 
-Download from https://​www.drupal.org/​project/​superfish 
- 
-<​code>​ 
-cd /tmp/ && \ 
-wget --no-check-certificate http://​ftp.drupal.org/​files/​projects/​superfish-8.x-1.0-rc6.tar.gz && \ 
-untargz superfish-8.x-1.0-rc6.tar.gz && \ 
-sudo rm -fr /​home/​www/​www-mario-common/​drupal-current/​modules/​superfish && \ 
-sudo mv superfish /​home/​www/​www-mario-common/​drupal-current/​modules/​superfish && \ 
-sudo mv superfish-8.x-1.0-rc6.tar.gz /​home/​www/​www-mario-common/​ && \ 
-sudo chown -R www-mario:​www-mario /​home/​www/​www-mario-common/​drupal-current/​modules/​superfish && \ 
-sudo chmod -R g+rwX,​o-rwx ​        /​home/​www/​www-mario-common/​drupal-current/​modules/​superfish 
-</​code>​ 
- 
  
  
guides/drupal7.txt · Last modified: 2017/03/30 20:52 by mario