note 72239 modified in ref.memcache by bjori
| From: | bjori@php.net | Date: | Tue, 23 Jan 2007 12:12:35 +0000 |
| Subject: | note 72239 modified in ref.memcache by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122061@lists.php.net to get a copy of this message | ||
Hi there:
For run memcached in a windows box: (tested with latest php,apache and memcache in xp sp2)
a) download the php_memcache.dll it can be found in the pecl file.
b) put the dll in the extension folder (c:/php/extension for example). You cannot miss this folder
because they are filled with php*.dll files. In some cases the extension folder used is the
system32, a non-standard way to put dll but still works.
c)configure the php.ini
; i put this like the latest extension
extension=php_memcache.dll
; i'm not sure about this but don't hurts..
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts=20
memcache.chunk_size =8192
memcache.default_port = 11211
d)This is important, memcached works with a EXTERNAL service. This service must be downloaded and
installed prior to use the memcache. I use: http://jehiah.cz/projects/memcached-win32/
e)Remember to install the service and to start the service memcached.exe -d install for install and
run services.msc for start the memcached service (or restart the system).
f) check the firewall ports.
Finally restart the apache/iis and runs some test. At least in phpinfo must show some info about the
memcache.
Final notes :The "awe" about memcache is not only can help for speed some process (or
reduce the cpu use), also can be used like a global session for store a whole object also this
"global session" is shared among all the users, like APPLICATION used in ASP. So (for
example) it's possible to do a user counter without needing of database or writing a file.
--was--
Hi there:
For run memcached in a windows box: (tested with latest php,apache and memcache in xp sp2)
a) download the php_memcache.dll it can be found in the pecl file.
b) put the dll in the extension folder (c:/php/extension for example). You cannot miss this folder
because they are filled with php*.dll files. In some cases the extension folder used is the
system32, a non-standard way to put dll but still works.
c)configure the php.ini
; i put this like the latest extension
extension=php_memcache.dll
; i'm not sure about this but don't hurts..
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts=20
memcache.chunk_size =8192
memcache.default_port = 11211
d)This is important, memcached works with a EXTERNAL service. This service must be downloaded and
installed prior to use the memcache. I use: http://jehiah.cz/projects/memcached-win32/
e)Remember to install the service and to start the service memcached.exe -d install for install and
run services.msc for start the memcached service (or restart the system).
f) check the firewall ports.
Finally restart the apache/iis and runs some test. At least in phpinfo must show some info about the
memcache.
Final notes :The "awe" about memcache is not only can help for speed some process (or
reduce the cpu use), also can be used like a global session for store a whole object also this
"global session" is shared among all the users, like APPLICATION used in ASP. So (for
example) it's possible to do a user counter without needing of database or writing a file.
http://php.net/manual/en/ref.memcache.php