Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
easy way to install memcached and memcache in a cpanel server

cPanel/WHM Easy way to install Memcached and memcache in a cPanel server
#1
In website hosting industry, speed is one of the most important factor that we prefer. The website speed depends upon many factors. Ofcourse, the speed of the website depends upon the plugins or other third party application installed with it. Other than the plugins, it mainly depends upon the server performance. Server can be tuned according to our requirement. Enabling caching is one of the factor that includes in optimizing a webserver. Caching technology is a main paramter. Memcache is a popular type of caching method used. Memcache is an open source caching system to speed-up dynamic website applications. For the proper functioning of Memcache, its daemon memcached is needed. Here I am explaining the installation steps of Memcache and Memcahed in the server.

Memcache is a type of caching. memcached daemon is needed for the functioning of Memcache. For that, first we need to install memcached daemon.

Code:
yum install memcached

Then, start memcached service:


Code:
service memcached start

Then, install PHP memcache:


Code:
pecl install memcache

Or

We can install memcache from the source by following the steps below:

Code:
wget http://pecl.php.net/get/memcache
cd memcache-3.0.8
phpize
./configure
make
make install

Make sure memcache module is present in php.ini file. If not, add the memcache extension in php.ini file.


Code:
echo "extension=memcache.so" >> /usr/local/lib/php.ini

Finally, restart Apache

Code:
service httpd restart

Make sure memcached will be up even after a server reboot:

Code:
chkconfig --levels 235 memcached on

How to check if memcache is installed or not?

Code:
php -m | grep memcache



Dinesh Kumar Mohanty
Ultra Web Solutions®
Bhubaneswar, Odisha, India.

UltratechHost - Your One Stop Offshore & Onshore Hosting Provider
Server Locations : Netherlands, Germany, Russia, Singapore & USA
Service Offers: Shared hosting | Reseller hosting | Cloud server | Dedicated server | VPS Hosting



Forum Jump:


Users browsing this thread: 1 Guest(s)