Tero

[VestaCP - CentOS 7] - PHP 7.2 / OPCache / MariaDB 10.3

Apr 27th, 2019
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.89 KB | None | 0 0
  1. # PHP 7.2
  2. yum install yum-utils
  3. yum-config-manager --enable remi-php72
  4. yum update -y
  5.  
  6. # OPCache
  7. yum install php-opcache
  8. vim /etc/php.d/10-opcache.ini
  9.  
  10. opcache.enable_cli=1
  11. opcache.memory_consumption=128
  12. opcache.interned_strings_buffer=8
  13. opcache.max_accelerated_files=4000
  14. opcache.revalidate_freq=60
  15. opcache.fast_shutdown=1
  16.  
  17. systemctl restart nginx
  18. systemctl restart httpd
  19.  
  20. # MariaDB 10.3
  21. vim /etc/yum.repos.d/MariaDB10.repo
  22.  
  23. # MariaDB 10.3 CentOS repository list - created 2019-04-27 18:53 UTC
  24. # http://downloads.mariadb.org/mariadb/repositories/
  25. [mariadb]
  26. name = MariaDB
  27. baseurl = http://yum.mariadb.org/10.3/centos7-amd64
  28. gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
  29. gpgcheck=1
  30.  
  31. systemctl stop mariadb
  32. yum remove mariadb-server mariadb mariadb-libs
  33. yum clean all
  34. yum install MariaDB-server MariaDB-client
  35. systemctl start mysql
  36. systemctl enable mysql
  37. mysql_upgrade
Advertisement
Add Comment
Please, Sign In to add comment