blob: ded271da495b3cd70ed43b24637a62bef438be8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# REEVOTech
REEVOTech is a bundled of open source solution that allows builidng collective mapping and documentation for social projects.
## Current components
* Mediawiki 1.31.3
* 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
|