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

Restart apache

systemctl restart httpd

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

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.