The last notes
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
Comments