how to install in a multi php version system #850

Closed
opened 2026-02-04 22:29:28 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @andreiM101 on GitHub (Oct 8, 2018).

Hi,

I want to install BookStack on Centos 6 with multiple php versions.
I installed php 7 from Remi repository. When I run php72 --ini part of the output is:
php72 --ini
Configuration File (php.ini) Path: /etc/opt/remi/php72
Loaded Configuration File: /etc/opt/remi/php72/php.ini
Scan for additional .ini files in: /etc/opt/remi/php72/php.d

In installed in /opt/remi/php72/root/usr/bin/ the composer.
I installed php-fpm for php72 on another port.
I changed in the all the BookStack scripts php with php72
When I run /opt/remi/php72/root/usr/bin/composer.phar install it is using /etc/php.ini instead of /etc/opt/remi/php72/php.ini

BookStack version is v0.25-dev
PHP Version 7.2
Nginx

Can you tell me where and what should I change in order to work with php72 instead of php (which is 5.3)?

Originally created by @andreiM101 on GitHub (Oct 8, 2018). Hi, I want to install BookStack on Centos 6 with multiple php versions. I installed php 7 from Remi repository. When I run php72 --ini part of the output is: php72 --ini Configuration File (php.ini) Path: /etc/opt/remi/php72 Loaded Configuration File: /etc/opt/remi/php72/php.ini Scan for additional .ini files in: /etc/opt/remi/php72/php.d In installed in /opt/remi/php72/root/usr/bin/ the composer. I installed php-fpm for php72 on another port. I changed in the all the BookStack scripts php with php72 When I run /opt/remi/php72/root/usr/bin/composer.phar install it is using /etc/php.ini instead of /etc/opt/remi/php72/php.ini BookStack version is v0.25-dev PHP Version 7.2 Nginx Can you tell me where and what should I change in order to work with php72 instead of php (which is 5.3)?
Author
Owner

@andreiM101 commented on GitHub (Oct 8, 2018):

I solved it.
For anyone else who's looking for a solution you should run conmposer with the 7 php version:
php72 /opt/remi/php72/root/usr/bin/composer install

@andreiM101 commented on GitHub (Oct 8, 2018): I solved it. For anyone else who's looking for a solution you should run conmposer with the 7 php version: php72 /opt/remi/php72/root/usr/bin/composer install
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#850