# PHP 7.2
yum install yum-utils
yum-config-manager --enable remi-php72
yum update -y
# OPCache
yum install php-opcache
vim /etc/php.d/10-opcache.ini
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
systemctl restart nginx
systemctl restart httpd
# MariaDB 10.3
vim /etc/yum.repos.d/MariaDB10.repo
# MariaDB 10.3 CentOS repository list - created 2019-04-27 18:53 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
systemctl stop mariadb
yum remove mariadb-server mariadb mariadb-libs
yum clean all
yum install MariaDB-server MariaDB-client
systemctl start mysql
systemctl enable mysql
mysql_upgrade
Comments