We update php version from 7.2 to 7.4.3 on BitrixVM 7.4.3
Rus
Eng
Обновляем версию php с 7.2 до 7.4.3 на BitrixVM 7.4.3
I solve complex technical challenges for Bitrix and 1C—ranging from auditing existing code to website development and configuring complex integrations—with a guarantee of results.
Recommended

Website hosting

If you are choosing hosting for your project, I recommend Timeweb. Modern infrastructure, a wide range of plans from starter options to high-load VPS, and responsive tech support that actually helps instead of sending template replies. I host some of my own projects there and recommend it to my clients.

Go to site Affiliate link. The price remains the same for you.

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

Adding repositories to the system

  sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm  

Activating the PHP 7.4 repository

  sudo yum -y install yum-utils
sudo yum-config-manager --enable remi-php74  

Installing PHP 7.4

  sudo yum update
sudo yum install php php-cli  

Confirm update (Y)

Installing software packages:

  yum install php php-cli php-fpm pdo_odbc php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json php -common php-fpm-nginx php-pecl-apcu php-ldap php-odbc php-pdo php-pecl-memcache php-process php-snmp php-soap php-tidy php-xmlrpc  

Checking the installation

  php -v  

It should look like this

  PHP 7.4.0 (cli) (built: Jan 10 2020 14:27:13) (NTS)
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies  

Post-installation troubleshooting

After the update, WebP Converter fell off and the following error appeared in the logs

  PHP Fatal error: Access level to WebPConvert \ Convert \ Converters \ BaseTraits \ WarningLoggerTrait :: logLn () must be public (as in class WebPConvert \ Convert \ Converters \ BaseTraits \ OptionsTrait) in / vendor / rosell- dk / webp-convert / src / Convert / Converters / AbstractConverter.php on line 17
 

Since the update of the rosell-dk package did not lead to anything, I had to edit the files myself. Changed protected function to public in files:

  // Line 17
/vendor/rosell-dk/webp-convert/src/Convert/Converters/BaseTraits/WarningLoggerTrait.php

// Lines 27 and 65
/vendor/rosell-dk/webp-convert/src/Convert/Converters/BaseTraits/LoggerTrait.php  

No other errors were noticed

Aleksandr Tichiy
Author

Aleksandr Tichiy

Fullstack developer · 1C-Bitrix

I build and modernize online stores and corporate portals on 1C-Bitrix. Integrations with 1C, high-load performance, 152-FZ compliance. Writing about architecture and e-commerce.


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

Please message me to discuss the task. I work remotely and officially (as a self-employed professional); my hourly rate is 1,800 RUB, and I can dedicate 3–4 hours a day to the project. I respond quickly, and the consultation is free.

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