I am doing a project on Laravel. I'm trying to make a simple system that uses cache focused on memcache. When I started studying, I checked Laravel site first and then I found that using the Memcached cache requires the Memcached PECL package to be installed.
I searched through it and I got some problems during installation.
How to install memcache
?
Here are the steps that should be followed when you install memcache.
search for
;extension=php_memcache.dll
If not found add
3. download the file
php_memecache.dll
from windows.php.net (make sure to check your php version and php_memcache.dll are same. Otherwise, it will through error.)unzip it and paste '.dll' file in the path xampp\php\ext, in my case it is F:\xampp\php\ext (I had to rename the file to memcache.dll but when you take a look on other sites that describes the steps for this, they don't tell to rename, but I have done this in my project!).
Download the Memcache.exe from jellycan
After completion of download, unzip and put the memcache.exe file into any desired directory of your choice (e.g. C:/memcached/). make sure folder name should be memcached
c:/memcached/memcached.exe -d install
then type
net start "memcached server"
In case you get memcache is already installed. then just go through line
net start "memcached server"
.Or
For the installation purpose you can go to the path where you have copied the memcache.exe. and double click to the file, memcache is installed, now just add line
net start "memcached server"
and your memcache is enabled.Restart Xampp Apache
Restart Memcached:
C:\Windows\system32> net start “memcached”
The memcached service is starting. The memcached service was started successfully.
C:\Windows\system32> net stop “memcached”
The memcached service is stopping. The memcached service was stopped successfully.