Update example_centos.rst for PHP8.2

Signed-off-by: HelloDarkness <111370255+hellodarkness@users.noreply.github.com>
This commit is contained in:
HelloDarkness
2023-10-11 14:05:43 +00:00
committed by GitHub
parent ed17a88cd9
commit 686f50f596

View File

@@ -60,7 +60,7 @@ PHP
Setting up remirepo with PHP 7.4
Setting up remirepo with PHP 8.2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
More details can be found on ``https://blog.remirepo.net/pages/Config-en``
@@ -79,24 +79,29 @@ Command to install the yum-utils package (for the yum-config-manager command):
You want a single version which means replacing base packages from the distribution. Packages have the same name than the base repository, ie php-\*. Some common dependencies are available in remi-safe repository, which is enabled by default.
You have to enable the module stream for 7.4:
You have to enable the module stream for 8.2:
::
dnf module reset php
dnf module install php:remi-7.4
dnf module install php:remi-8.2
dnf update
Installing PHP and the required modules
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Next install the PHP modules needed for this install. Remember, because this is a limited basic install, we only install the neccessary modules, not all of them. If you are making a more complete install, please refer to PHP module list in the source installation documentation, :doc:`../installation/source_installation`.::
Next, install the PHP modules needed for this install. Remember, because this is a limited basic install, we only install the neccessary modules, not all of them. If you are making a more complete install, please refer to PHP module list in the source installation documentation, :doc:`../installation/source_installation`::
dnf install -y php php-gd php-mbstring php-intl php-pecl-apcu\
php-mysqlnd php-opcache php-json php-zip
It may also be useful to install the php-cli module, to ease future troubleshooting:
::
dnf install php-cli
Installing optional modules redis/imagick
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^