Installing Memcached libraries and service

Memcached is an entire service similar to MySQL or PHP that runs on your web server and integrates with other applications like PHP and Drupal. We need to get Memcached installed first on our development server and then we need to integrate it with our PHP installation and environment.

To install Memcached on Windows XP, you first need to download the memcached-1.2.6 version for Win3 2. I'm using the binary version available from this website:

Download the memcached-1.2_6-win3 to your C drive.

We're going to now install Memcached as a service on our web server. To do this, first create a new folder on your c drive called memcached. You should have a folder c:\memcached and in that folder move and extract the ZIP file you just downloaded. This will extract and create a file called memcached.exe. You should see something in your folder that looks like this:

You now have the executable file of the Memcached binaries on your local computer. Now we want to install them. To do this, follow these steps:

1. Click on your Start menu button, select Run, then enter cmd or cmd.exe, and hit the Enter key. This will put you in command-line mode.

2. Install the Memcached service by typing the following:

c:\memcached\memcached.exe -d install

3. Once installed, you need to start the service. To do this type in the following:

c:\memcached\memcached.exe -d start

The Memcached service should now be installed and started. Now we need to integrate it with your PHP so that you can use it with your Drupal websites.

Was this article helpful?

0 0

Post a comment