Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search
Reminder: On the servers affected by ChachaDDoS passwords for admin and root need to be changed necessarily

[HowTo] Install PHP OPCache APC/APCu Memcached and Redis on VestaCP CentOS

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
xorro
Posts: 81
Joined: Sun Nov 13, 2016 3:11 pm
Contact:
Contact xorro
Website Skype

Os: CentOS 7x
Web: apache + nginx
[HowTo] Install PHP OPCache APC/APCu Memcached and Redis on VestaCP CentOS
  • Quote

Post by xorro » Tue Sep 11, 2018 7:19 pm

Lets get Started :
First install Remi repo :
CentOS 7

Code: Select all

wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm
CentOS 6

Code: Select all

wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm
To install Zend Opcache :

OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.

Code: Select all

yum install php-opcache
After installation you need to restart Apache/php-fpm :

if you’re using Apache (mod_php) :

Code: Select all

service httpd restart
If you’re using PHP-FPM :

Code: Select all

service php-fpm restart
To install APC/APCu :

APC is a free, open, and robust framework for caching and optimizing PHP intermediate code.

Code: Select all

yum install php-pecl-apcu
After installation you need to restart Apache/php-fpm :

if you’re using Apache (mod_php) :

Code: Select all

service httpd restart
If you’re using PHP-FPM :

Code: Select all

service php-fpm restart
To install Memcached :

Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

For PHP 5.xx

Code: Select all

yum install memcached memcached-devel php-pecl-memcache
For PHP 7.xx

Code: Select all

yum install memcached memcached-devel php-pecl-memcached
Start memcached Service :

Code: Select all

service memcached start
Start the memcached on boot :
Centos 6 :

Code: Select all

chkconfig memcached on
Centos 7 :

Code: Select all

systemctl enable memcached
After installation you need to restart Apache/php-fpm :

if you’re using Apache (mod_php) :

Code: Select all

service httpd restart
If you’re using PHP-FPM :

Code: Select all

service php-fpm restart
To install Redis :

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.

Code: Select all

yum install redis php-pecl-redis
Start Redis Service :

Code: Select all

service redis start
Start the Redis on boot :
Centos 6 :

Code: Select all

chkconfig redis on
Centos 7 :

Code: Select all

systemctl enable redis
After installation you need to restart Apache/php-fpm :

if you’re using Apache (mod_php) :

Code: Select all

service httpd restart
If you’re using PHP-FPM :

Code: Select all

service php-fpm restart
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password