Update INSTALL.rhel7.9.md

Updated the php installation instructions.
pull/483/head
Ruslan Baidan 2023-03-14 17:43:43 +01:00 committed by GitHub
parent f7a218f1fa
commit e778ff2d18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -126,24 +126,28 @@ CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_ge
[root@monarc fo]# rm composer-setup.php [root@monarc fo]# rm composer-setup.php
``` ```
## Install PHP 7.4 ## Install PHP. Php 7.4 (command below) can be a working solutin but recommended 8.0 or 8.1
```bash ```bash
[root@monarc fo]# yum install php74-php-cli [root@monarc fo]# yum install php74-php-cli
``` ```
## Configure path ## Configure path (can be adjusted depending on the php version)
```bash ```bash
[root@monarc fo]# export PATH=$PATH:/opt/remi/php74/root/usr/bin:/opt/remi/php74/root/usr/sbin [root@monarc fo]# export PATH=$PATH:/opt/remi/php74/root/usr/bin:/opt/remi/php74/root/usr/sbin
[root@monarc fo]# ln -s /usr/bin/php74 /usr/bin/php [root@monarc fo]# ln -s /usr/bin/php74 /usr/bin/php
``` ```
## Update ## Apply PHP configuration settings in your php.ini
https://github.com/monarc-project/MonarcAppFO/blob/master/vagrant/bootstrap.sh#L22-L26
## Update (The option --ignore-platform-req=php is used in case of php8.1)
```bash ```bash
[root@monarc fo]# composer self-update [root@monarc fo]# composer self-update
[root@monarc fo]# composer install -o [root@monarc fo]# composer install -o --ignore-platform-req=php
``` ```
## Prepare Backend ## Prepare Backend