How to correctly install memcache extension in php

王林
Release: 2023-03-07 13:48:01
Original
1718 people have browsed it

How to correctly install the memcache extension in php: 1. Download the memcache extension; 2. Place the extension file in the ext directory under the extension directory; 3. Edit the php.ini configuration file and enable the memcache extension module; 4. , restart nginx.

How to correctly install memcache extension in php

System environment

Win10 64-bit, phpStudy-2018 (PHP-7.2.10, Nginx)

(Study Video recommendation: java video tutorial)

Memcache cache server installation

Download memcache extension installation

https://github.com/nono303/PHP7-memcache-dll/tree/master/vc15/x86/nts/avx
Copy after login

How to correctly install memcache extension in php

Note that the dll downloaded here is the dll in the avx directory. Dlls in other directories seem to have problems in the Win10 environment. Which dll file to download, please check the PHP environment of your server through phpinfo() before making a decision;

For example, my local development environment is msvc-15, x86, then the version I need is the x86-nts dll file compiled based on vc15.

After the download is completed, place the file in the php extension directory/ext folder

How to correctly install memcache extension in php

Open php.ini to enable the memcache extension module

How to correctly install memcache extension in php

Restart Nginx and check whether the installation is successful through phpinfo.php

How to correctly install memcache extension in php

##Related recommendations:

php training

The above is the detailed content of How to correctly install memcache extension in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template