Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Add memcache to PHP – CentOS 7

Install Memcached on your server if you haven’t already done it: LINK

Issue the following at shell:

yum install php-pecl-memcache

Now add memcache to PHP, create a file at: /etc/php.d/memcache.ini and the following to it

extension=memcache.so

Restart apache

systemctl restart httpd

Verify the installation by creating a file containing PHPINFO();