Installation and Configuration of FileCloud In webservers

Installation and Configuration of FileCloud In webservers

You can install FileCloud in webserver nodes using the script below

The commands should be executed with root permissions.


wget http://patch.codelathe.com/tonidocloud/live/installer/filecloud-liu.sh && bash filecloud-liu.sh

Configuring FileCloud With MongoDB Cluster


After MongoDB cluster is installed and configured, use the following steps to configure FileCloud to use this cluster as its database.

Step 1: If the app servers are different from DB servers, install the app server portion(Apache web server) of FileCloud on the app server nodes, using latest FileCloud server installer. If they are collocated, proceed to next step.

Step 2: Open the file /var/www/html/config/cloudconfig.php,


// ... Cloud Database
define("TONIDOCLOUD_DBSERVER""mongodb://dbuser:passw0rd@ip of Mongo1,ip of Mongo2,ip of Mongo3/?replicaSet=rs0&connectTimeoutMS=1000");
// ... Audit Database
define("TONIDOCLOUD_AUDIT_DBSERVER""mongodb://dbuser:passw0rd@ip of Mongo1,ip of Mongo2,ip of Mongo3/?replicaSet=rs0&connectTimeoutMS=1000");
// … Settings Database
define("TONIDOCLOUD_SETTINGS_DBSERVER""mongodb://dbuser:passw0rd@ip of Mongo1,ip of Mongo2,ip of Mongo3/?replicaSet=rs0&connectTimeoutMS=1000");

Example: "mongodb://192.168.0.2,192.168.0.3,192.168.0.4/?replicaSet=rs0"


Step 3:
 Edit /var/www/html/config/localstorageconfig.php, and add/replace the following keys

define("TONIDO_LOCALSTORAGE_DBSERVER", ""mongodb://dbuser:passw0rd@ip of Mongo1,ip of Mongo2,ip of Mongo3/?replicaSet=rs0&connectTimeoutMS=1000"");