Updating php and mysql versions on BitrixVM
Rus
Eng
Обновление версий php и mysql на BitrixVM

All English-language materials have been translated fully automatically using the Google service

Do not forget to make backups of everything and everything before starting work

Upgrade php to 7.4

rpm -ivh http://rpms.remirepo.net/enterprise/remi-release-7.rpm

yum install yum-utils

yum-config-manager --enable remi-php74

yum update -y

php -v

Updating php from 7.0.13 to 7.3.18

Installing repositories

  wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm  

Additional customization

  yum install yum-utils
yum-config-manager --enable remi-php73  

Updating

  yum update -y  

If everything is successful, then check the php version

  php -v  

Upgrading php from 5.4 to 7.4

rpm -ivh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y install epel-release yum-utils
yum remove php*
yum-config-manager --enable remi-php74
yum install php php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-common php-fpm php-pdo php-mysqlnd php-imap php-embedded php-ldap php-odbc php-zip php-fileinfo php-process php-opcache
systemctl restart httpd

Upgrading mysql from 5.5 to 5.7

Dump just in case

  mysqldump --all-databases> dump.sql  

Stop mysql

  service mysqld stop  

Connecting the repository

  wget https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm
rpm -Uvh mysql80-community-release-el6-1.noarch.rpm  

Disable unnecessary default mysql version (MySQL8 is selected by default)

  yum install yum-utils
yum repolist all | grep mysql
yum-config-manager --disable mysql80-community
yum-config-manager --enable mysql57-community  

Install

  yum install mysql-community-server  

Starting mysql

  service mysqld start  

Error output

  mysqld_safe --log-error = / var / log / mysql.err  

In case of errors, you can use the history and rollback of actions

View History

  yum history  

Delete event

  yum history undo id  

MySQL config in Bitrix VM is in:

/etc/mysql/conf.d/bvat.cnf 

Comments

There are no comments yet, you can be the first to leave it

Leave a comment

The site uses a comment pre-moderation system, so your message will be published only after approval by the moderator

You are replying to a user's comment

Send

FEEDBACK

Email me

Are you developing a new service, making improvements to the existing one and want to be better than your competitors? You have come to the right place. I offer you a comprehensive studio-level website development. From me you can order design, layout, programming, development of non-traditional functionality, implementation of communication between CMS, CRM and Data Analitics, as well as everything else related to sites, except for promotion.

Contact, I will always advise on all questions and help you find the most effective solution for your business. I am engaged in the creation of sites in Novosibirsk and in other regions of Russia, I also work with the CIS countries. You will be satisfied with our cooperation

An error occurred while sending, please try again after a while
Message sent successfully

Phones

+7(993) 007-18-96

Email

info@tichiy.ru

Address

Россия, г. Москва

By submitting the form, you automatically confirm that you have read and accept the Privacy Policy site

Contact with me
Send message
By submitting the form, you automatically confirm that you have read and accept Privacy policy of site
Sending successful!
Thank you for contacting :) I will contact you as soon as possible
Sending failed
An error occurred while sending the request. Please wait and try again after a while or call my phone number