Difference between revisions of "User:Jtraulle/DiscourseMigration/Implementation"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
(4 intermediate revisions by the same user not shown)
Line 27: Line 27:
  
 
Apache2 virtual hosts config <code>dolibarr.fr.conf</code> and <code>dolibarr.org.conf</code> has been copied from <code>vmprod1</code> (Servername apache directive has just been modified to match names specified in [[#Addresses]]).
 
Apache2 virtual hosts config <code>dolibarr.fr.conf</code> and <code>dolibarr.org.conf</code> has been copied from <code>vmprod1</code> (Servername apache directive has just been modified to match names specified in [[#Addresses]]).
 +
 +
Enabling '''proxy '''and '''proxy_http '''modules.
 +
 +
Adding
 +
 +
<source lang="apache">
 +
<Location "/forum">
 +
    ProxyPass "http://dolibarr-test-fr.traulle.net:8800/forum"
 +
</Location>
 +
</source>
  
 
=== Files ===
 
=== Files ===
Line 33: Line 43:
  
  
=== Databases ===
+
=== MySQL/MariaDB Databases ===
  
 
Database names and users has been preserved (same users, same database names and same credentials has been created on test VM).
 
Database names and users has been preserved (same users, same database names and same credentials has been created on test VM).
  
 
Databases for French and International websites has been dumped and restored on test VM.
 
Databases for French and International websites has been dumped and restored on test VM.
 +
 +
=== Docker ===
 +
 +
Installed following the Docker docs : https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-engine---community-1
 +
 +
 +
== Useful resources ==
 +
 +
* [https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413 How to move from standalone container to separate web and data containers]
 +
* [https://meta.discourse.org/t/multisite-configuration-with-docker/14084 Multisite configuration with Docker]
 +
* [https://meta.discourse.org/t/subfolder-support-with-docker/30507 Subfolder support with Docker]
 +
* [https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098 Change the domain name or rename my Discourse?]
 +
* [https://meta.discourse.org/t/rebake-all-posts-matching-a-pattern/48713 Rebake all posts matching a pattern]
 +
* [https://meta.discourse.org/t/how-do-i-manually-update-discourse-and-docker-image-to-latest/23325/2 How do I manually update Discourse and Docker image to latest?]

Revision as of 21:46, 8 November 2019

Addresses

  • dolibarr-test-fr.traulle.net
  • dolibarr-test-org.traulle.net

These DN has been choosen to test the distinct vhosts but are not actually binded to public DNS.

You MUST edit your /etc/hosts local file (or similar) to point these addresses to IP 37.59.159.184

For Windows based machines, you can use https://hostsfileeditor.com/ for that purpose.

Replicated minimal VM for tests

For the implementation to go smooth, the vmprod1 environment has been replicated on a dedicated test VM.

  • Linux distro : Ubuntu 16.4.7
  • Webserver : Apache2
  • RDBMS : Mariadb
  • PHP : 5.6

PHP version

PHP version is installed from ppa:ondrej/php.


Apache2 config

Apache2 virtual hosts config dolibarr.fr.conf and dolibarr.org.conf has been copied from vmprod1 (Servername apache directive has just been modified to match names specified in #Addresses).

Enabling proxy and proxy_http modules.

Adding

<Location "/forum">
    ProxyPass "http://dolibarr-test-fr.traulle.net:8800/forum"
</Location>

Files

Files from /home/dolibarr/dolibarr.fr and /home/dolibarr/dolibarr.org has been copied to the same location on the test VM (however /home/dolibarr/dolibarr.org/httpdocs/files/stable has not been replicated on the test VM due to the weight/size of all packages).


MySQL/MariaDB Databases

Database names and users has been preserved (same users, same database names and same credentials has been created on test VM).

Databases for French and International websites has been dumped and restored on test VM.

Docker

Installed following the Docker docs : https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-engine---community-1


Useful resources