chg: [deployment] updated RHEL instructions.

pull/430/head
Cédric Bonhomme 2022-03-03 10:02:06 +01:00
parent 3291caac9e
commit 9ed22f6f56
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 15 additions and 11 deletions

View File

@ -2,6 +2,8 @@
The core MONARC team cannot certify if this guide is working or not. Please help us in keeping it up to date and accurate. The core MONARC team cannot certify if this guide is working or not. Please help us in keeping it up to date and accurate.
</aside> </aside>
Installation on RHEL 7.9
========================
# RHEL Installation and preparation # RHEL Installation and preparation
@ -31,7 +33,7 @@ The core MONARC team cannot certify if this guide is working or not. Please help
[root@monarc ~]# yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm [root@monarc ~]# yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
``` ```
## Install php7.4, required modules & dependencies from Remi's repository: ## Install PHP 7.4, required modules & dependencies from Remi's repository:
```bash ```bash
[root@monarc ~]# yum install php74.x86_64 php74-php.x86_64 \ [root@monarc ~]# yum install php74.x86_64 php74-php.x86_64 \
@ -59,7 +61,7 @@ php74-php-bcmath php74-php-mbstring.x86_64 php74-php-cli
## MariaDB ## MariaDB
Update MariaDB to V10: ### Update MariaDB to V10
https://mariadb.com/docs/deploy/upgrade-community-server-cs105-rhel7/ https://mariadb.com/docs/deploy/upgrade-community-server-cs105-rhel7/
@ -69,13 +71,15 @@ https://mariadb.com/docs/deploy/upgrade-community-server-cs105-rhel7/
[root@monarc ~]# yum install php-mbstring php-intl [root@monarc ~]# yum install php-mbstring php-intl
``` ```
Secure the MariaDB installation: ### Secure the MariaDB installation
```bash ```bash
[root@monarc ~]# systemctl start mariabdb [root@monarc ~]# systemctl start mariabdb
[root@monarc ~]# mysql_secure_installation [root@monarc ~]# mysql_secure_installation
``` ```
### MariaDB configuration
Add the following line to server.cnf (/etc/my.cnf.d/server.cnf) Add the following line to server.cnf (/etc/my.cnf.d/server.cnf)
otherwise you may get an error when initializing the database otherwise you may get an error when initializing the database
@ -86,11 +90,9 @@ max_allowed_packet=8M
``` ```
```sql ```sql
CREATE DATABASE monarc_cli DEFAULT CHARACTER SET utf8 DEFAULT COLLATE CREATE DATABASE monarc_cli DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
utf8_general_ci;
CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
COLLATE utf8_general_ci;
``` ```
## Restart Apache ## Restart Apache
@ -99,6 +101,8 @@ COLLATE utf8_general_ci;
[root@monarc ~]# systemctl restart httpd [root@monarc ~]# systemctl restart httpd
``` ```
# MONARC installation and configuration # MONARC installation and configuration
## Install MONARC ## Install MONARC
@ -161,7 +165,7 @@ COLLATE utf8_general_ci;
[root@monarc node_modules]# git clone https://github.com/monarc-project/ng-anr.git ng_anr [root@monarc node_modules]# git clone https://github.com/monarc-project/ng-anr.git ng_anr
``` ```
## Install Database ## Install database
```bash ```bash
mysql -u root --p monarc_common < db-bootstrap/monarc_structure.sql mysql -u root --p monarc_common < db-bootstrap/monarc_structure.sql
@ -189,7 +193,7 @@ grant create, delete, insert, select, update, drop, alter on monarc_cli.* to 'mo
Reference: <https://github.com/nodesource/distributions> Reference: <https://github.com/nodesource/distributions>
## Install correct version of nodejs and grunt ## Install correct version of NodeJS and Grunt
```bash ```bash
[root@monarc fo]# yum remove -y nodejs npm [root@monarc fo]# yum remove -y nodejs npm
@ -201,7 +205,7 @@ Reference: <https://github.com/nodesource/distributions>
## Set git branch ## Set git branch
```bash ```bash
[root@monarc fo]# git branch --set-upstream-to=origin/master v2.10.4 [root@monarc fo]# git branch --set-upstream-to=origin/master v2.11.1
``` ```
## Reconfigure SSH ## Reconfigure SSH
@ -225,7 +229,7 @@ StrictHostKeyChecking no
[root@monarc html]# chown -R apache:apache monarc [root@monarc html]# chown -R apache:apache monarc
``` ```
## (Re)Start the show ## Restart the services
```bash ```bash
[root@monarc fo]# cd /etc/httpd/conf.d/ [root@monarc fo]# cd /etc/httpd/conf.d/