As you may have heard about Memcached and Zend Opcache to support PHP's cache as it handled to save processing time. If you still do not know, then you can learn more about your caching forms.
In VestaCP, we can easily install Memcached and Zend Opcache with just two lines of code, so you should install it to support better website acceleration. In this article we will talk about using Memcached in WordPress, and Zend Opcache it self when PHP processing so we do not need to do anything.
Install Memcached and use for WordPress
To install Memcached for VestaCP, just run the following command:
For CentOS / RHEL
yum install --enablerepo = remi php-pecl-memcache memcached libmemcached -y
For Ubuntu / Debian
apt-get install memcached php5-memcache
Starts Memcached
service memcached start
Automatically start memcached at boot (for CentOS)
chconfig memcached trên
Then restart Apache.
With CentOS / RHEL
service httpd restart
With Ubuntu / Debian
service apache2 restart
If you use WordPress, install the Memcached is Your Friend plugin and do not need any further setup, you can track the cache information at Tools -> Memcached.
Install Zend Opcache
Just run the following command:
yum install --enablerepo = remi php-pecl-zendopcache -y
Then restart Apache.
With CentOS / RHEL
service httpd restart
With Ubuntu / Debian
service apache2 restart
Finished, very simple right? Now try to visit the site again to see if the speed is improved, note that the first time after installing these will be a bit longer.
Also note that when using Memcached, the VPS will cost you more RAM as buffer data will be stored in RAM to speed up access rather than write to the drive, but do not worry that the website will. It collapses due to lack of RAM because it frees itself when needed, and in Linux in general RAM is always used if it is empty.
Thursday, May 3, 2018
[VESTACP - 10] INSTALL MEMCAHED AND ZEND OPCACHE
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment