Menu
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:Windowssystem32 net start “memcached” The memcached service is starting. The memcached service was started successfully. Install memcache for php 5.6.30. Xampp version: 3.2.2 (x86). Step 1: Download phpmemcache-3.0.8-5.6-ts-vc11-x86.zip from and copy example.php, memcache.php to C:xampphtdocs. Anonymous March 7, 2017 at 4:52 PM.
Xamp is an Appache distribution. In this tutorial we will teach you how to install xamp in windows 7.
Follow this step by step tutorial to learn how to install xampp in windows 7 in a few easy steps.
Step 1 – Xampp for Windows
Before we teach you how to install xampp, you will have to download xampp first. Open up the browser and type “apachefriends.org” and hit enter. Once the webpage opens up, move to the xampp section and click on the “XAMPP for Windows” option.
Step 2 – Download Xampp
Next, scroll down the page and move towards the download section. Over there, simply click on “XAMPP”.
Step 3 – Wampp Installation Wizard
Now click on “Installer”, the download will begin automatically. Once the download has been completed, double click on the installation file to start the installation wizard.
Step 4 – Select language
First of all, you will be required to select the language. In the next screen, a notification will be displayed if you have activated user account control. Simply click on the “Ok” button to continue installing xampp.
Step 5 – Select components to install
With the installation wizard splash screen opened up, click on “Next” to begin the installation.
Over here, you can select the components to be installed. You can check out the space required for the installation towards the bottom of the screen.
In the next screen, you will be required to set the path for the installation. Let’s keep it the way it is and click on the install button to continue installing xampp.
Step 6 – Complete installation
Once the installation has been completed, click on the finish button to exit from the wizard. With that done, a notification window will appear on the screen. Over there, click on the ok button to start the Xampp control panel.
Step 7 – XAMPP Control Panel
And that’s pretty much it. Let’s start all 5 Modules in the control panel.
Step 8 – Ports for each module
With that done you can see the ports which are utilized by each module.
Step 9 – Check Status for XAMPP components
To check whether all components were installed, open up a browser, move to the address bar on top and type in the url:localhost/xampp/index.php
This will land you to the index page. Over here, click on the “Status” option located on the pane towards the left side of the screen. Once the new page opens up, you can see the status of all the components is activated.
Hey there, its me (Stan nesi) again !!!LOLMemcached solves this problem for you by letting you write frequently accessed data directly to RAM, where it can be fetched almost instantaneously; plus you can tell memcached how long to store the cached data and it will automatically purge stale data without any further intervention from you, the programmer. Many web sites & applications such as Facebook, LiveJournal, Flickr, Slashdot, WikiPedia/MediaWiki, SourceForge, Digg and Twitter use memcached to enhance their performance. I'm often asked 'How can I run Memcache on my localhost server?' 'Is Memcache a php extension or a serve?' after this HOW TO: all your questions will be answered and I choose to use XAMPP because most people I know uses XAMPP, I recently figured it out recently anyway...because i mostly use File Cache but I use Memcahe now! :D So Lets begin: 1. Edit your XAMPP php.ini (becareful) Open up the php.ini file located at 'C:/xampp/php/php.ini.' find this line: extension=php_memcache.dll and replace it with extension=php_memcache.dll If you cannot find this line append the following line of codes after all of the other extension declarations: extension=php_memcache.dll
Make sure there are no semicolon (;) before the extension. 2. Download the necessary php extension (.dll) 'php_memcache.dll' Believe it or not this step was quite troublesome for me myself. All resources I search online all directed to this download location: http://downloads.php.net/pierre/. to download the php_memache.dll extension file. Unfortunately I found only VC9-x86 complied version of php_memcache.dll on that site, check it out for yourself. But I'm using XAMPP 1.7.4 and i'm quite sure you use same which requires VC6-x86 complied version of php_memcache.dll. incase you might me wondering how would you know what complier (VC9 or VC6) and architecture (x86) is used, all information are located in your phpinfo(); see below image with markings. YAY!!! douring my search I was able to some sources where you can download the VC6-x86 dll version. I think that's enough. After successfully downloading the file, Unzip and copy the file php_memcache.dll and put it into your php extension folder. located at C:/xampp/php/ext/
3. Download and installing Memcache server for windows
Download the Memcache.exe from http://code.jellycan.com/memcached/ and make sure it a win-32 binary or use this for direct download http://code.jellycan.com/files/memcached-1.2.6-win32-bin.zip
After completion of download, unzip and put the memcache.exe file into any desired directory of your choice (e.g. c:/memcached/) I know you wanna know how mine was...LOL!! i used 'C:/servers/memcached/'. I'm serious i'm not lying... ok here's my proof!!:P
Open command line in Windows Administrative Mode.
Click -> Start, in the search bar laballed 'Search programs and files' type 'cmd.exe' and wait for programme to appear, then right-click on the icon and click 'run as administrator'.
Type the following into the command line using the right directory (e.g. c:/memcached/)
If you don't get any error it means the memcached service installed and it's working
Starting Memcached Server
There are different ways to run the Memcached service
> net start 'memcached server'
Restart XAMPP Apache Restart XAMPP Apache for all changes to take effect/
create a new .php file and paste the following line of codes
<?php $memcache = new Memcache; $memcache->connect('localhost', 11211) or die ('Could not connect');$ver = $memcache->getVersion(); echo 'Server's version: '. $ver .'<br/>n'; $oTmp = new stdClass; $oTmp->str_attr = 'testing memcached'; $oTmp->int_attr = 12345; $memcache->set('key', $oTmp, false, 10) or die ('Failed to save data at the server'); echo 'Store data in the cache (data will expire in 10 seconds) <br/>n'; $res = $memcache->get('key'); echo 'Data from the cache:<br/>n'; var_dump($res); ?> Just in case it doesn't work: I ran the c:/memcached/memcached.exe file as administrator. This opens the ports on the Windows firewall which might solve some problems. There will me more!!!LOL Feel free to contribute by dropping your comments: Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |