Home >Backend Development >PHP Tutorial >How to enable php's memcache extension?

How to enable php's memcache extension?

藏色散人
藏色散人forward
2019-04-22 11:19:495223browse

PHP does not have the memcache extension enabled by default. The installation of the memcache extension will be explained in detail below.

Install the memcache extension under windows

Visit the php official website http://pecl.php.net/package/memcache

Click on the DLL to download the corresponding windows Version of dll

How to enable phps memcache extension?

How to enable phps memcache extension?

Copy the dll to php/ext/

Modify php.ini

extension=php_memcache.dll

Restart web access to enable it

Install memcache extension under linux

centOs:

yum install php-pecl-memcache Start php Can.

Or compile and install the php extension under Linux, the download address is the same as above

The above is the detailed content of How to enable php's memcache extension?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:hcoder.net. If there is any infringement, please contact admin@php.cn delete