R
R
RedimeRold2020-05-30 09:17:21
PHP
RedimeRold, 2020-05-30 09:17:21

How to change the php version from 7.2.31 to 5.6 in "1C-Bitrix: Web Environment" - Linux?

There is a server on CentOS-7.8.2003 x86_64
and "1C-Bitrix: Web environment" 7.4-3

how to change the PHP version to 5.6 which still supports the mysql command
Through the environment menu, you can only rollback 1 version down to 7.1 - Rollback PHP to version 7.1

(in php 7 the standard command for working with the mysql database and most of the functions associated with it disappeared.)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RedimeRold, 2020-05-31
@RedimeRold

Friends tried many options until I came across useful information that you can roll back not only to version 1. In a few steps and up to php version 5.6.40 without problems.
5ed307143db76074958848.png
Solution checked, it works!
Maybe someone else will come in handy.

A
Alexey Dmitriev, 2020-05-30
@SignFinder

/etc/yum.repos.d/ contains files remi*.repo
There you need to set enabled=0 for the current version and set enabled=1 for the required one.
Then remove php with yum remove php and reinstall with yum install php.
But!!! there is an option to put a second set of php packages into the system - maybe this option will suit you better.
Just install it with yum install php56-php.
And then you will have the second version - if my memory serves me - to lie in / opt
PS backups and an understanding of what you are doing and how to return - if something breaks - are welcome.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question