summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md61
1 files changed, 61 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4a266d0f..ded271da 100644
--- a/README.md
+++ b/README.md
@@ -8,3 +8,64 @@ REEVOTech is a bundled of open source solution that allows builidng collective m
* SemanticMediawiki 3.0.2
* Wordpress 5.2.3
* CiviCRM 5.16.4
+
+## Initial setup
+
+### Deploy Files
+
+Get the files:
+
+```git clone https://git.reevo.org/reevo/reevotech/ /srv/reevotech```
+
+### Configure and enable Nginx and php-fpm
+
+Edit ```/etc/nginx/nginx.conf``` and add at the end: ```include /srv/reevotech/etc/nginx/*.conf;```
+
+Edit ```/etc/php/7.3/fpm/php-fpm.conf``` and add at the end: ```include=/srv/reevotech/etc/php-fpm/*.conf;```
+
+### Setup a initial wiki instance
+
+#### Enable nginx and php
+
+...
+
+#### Database setup
+
+Create the database with the following command:
+
+```
+php www/wiki/maintenance/install.php --dbname=reevotech_wiki --dbserver="localhost" --installdbuser=root --installdbpass=<root_password> --dbuser=reevotech_wiki --dbpass=<password> --server="http://reevo.red" --scriptpath=/ --lang=es --pass=yaco22 "REEVO" "Admin" --confpath /var/dump
+```
+
+Create the global config file for the implementation. For that we define a string as ```<id>``` of the implementation:
+
+```cp etc/global_config.php.sample global_config-<id>.php```
+
+Replace the existing ```www/wiki/LocalSettings.php``` with the official file:
+
+```cp www/wiki/LocalSettings.php.sample www/wiki/LocalSettings.php```
+
+Then edit the file, adding the created instances for your ```<id>```, so it loads the required files.
+
+Run this script and pick the right domain, this creates tables and updates: ```php www/wiki/maintenance/update.php```
+
+Then run this script and pick the right domain: ```php www/wiki/maintenance/runJobs.php```
+
+#### Crear usuario para API
+
+Run the following contents:
+
+```
+php www/wiki/maintenance/createAndPromote.php --bureaucrat --sysop reebot <password>
+
+php www/wiki/maintenance/resetUserEmail.php reebot reebot@reevo.org
+
+php www/wiki/maintenance/changePassword.php --user=reebot --password=<password>
+```
+
+
+
+### QUE FALTA
+
+
+Trabajos de CRON