PHP session handling with memcache

Wojtek on memcache, PHP, session · · Comments · 1 min read

In last two posts I described how to install memcached daemon and memcache extension for PHP. Today I'll show you how to configure your PHP to use memcache to handle sessions. One thing I should mention is that when installing memcache you should answer yes when asked 1. Enable memcache session handler support? : yes First of all, lets start two... Read more »

How to run memcache in PHP

Wojtek on CentOS, Linux, memcache, PHP · · Comments · 1 min read

After installing memcached daemon, we have to install memcache PHP extension. yum install php-pecl-memcache or apt-get install php5-memcache If above is not an option try below method. pecl install memcache After successful installation add extension to your php.ini file. vim /etc/php.ini Add this line: Restart web server service httpd restart Test out... Read more »