Merge pull request #1913 from bkmgit/patch-2

Update example_centos.rst
This commit is contained in:
Julius Härtl
2020-04-04 22:42:24 +02:00
committed by GitHub

View File

@@ -8,19 +8,19 @@ Start off by installing a CentOS 8 minimal install. This should provide a suffic
First install some dependencies you will be needing during installation, but which will also be useful in every day use situations::
yum install -y epel-release yum-utils unzip curl wget \
dnf install -y epel-release yum-utils unzip curl wget \
bash-completion policycoreutils-python-utils mlocate bzip2
Now make sure your system is up to date::
yum update -y
dnf update -y
Apache
------
::
yum install -y httpd
dnf install -y httpd
See :ref:`apache_configuration_label` for details.
@@ -44,13 +44,6 @@ Setting up remirepo with PHP 7.4
More details can be found on ``https://blog.remirepo.net/pages/Config-en``
Command to install the EPEL repository configuration package:
::
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Command to install the Remi repository configuration package:
::
@@ -78,20 +71,23 @@ You have to enable the module stream for 7.4:
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`.::
yum install -y php php-gd php-mbstring php-intl \
php-pecl-apcu php-mysqlnd php-opcache php-json php-zip
dnf install -y php php-gd php-mbstring php-intl php-pecl-apcu\
php-mysqlnd php-opcache php-json php-zip
Manually building redis/imagick (optional)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
yum install -y php-pear gcc curl-devel php-devel zlib-devel pcre-devel make
dnf install -y php-pear gcc curl-devel php-devel zlib-devel pcre-devel make
pecl install redis
yum config-manager --set-enabled PowerTools
yum install -y Imagemagick ImageMagick-devel
dnf config-manager --set-enabled PowerTools
dnf install -y Imagemagick ImageMagick-devel
pecl install imagick
After installing the extensions make sure to load the extensions in your php.ini file with:
@@ -104,7 +100,7 @@ Database
As mentioned, we will be using MySQL/MariaDB as our database.::
yum install -y mariadb mariadb-server
dnf install -y mariadb mariadb-server
Make sure the database service is enabled to start at boot time.::
@@ -125,7 +121,7 @@ Redis
::
yum install -y redis
dnf install -y redis
systemctl enable redis.service
systemctl start redis.service