win10下apache2.4 ,php , memcache环境

机器重装了,环境歇菜了。 本来顺手装了下。没有想到还有些问题,记录下,免得之后 再浪费时间。

(1) apache 2. 4

Apache的官网(http://httpd.apache.org)

httpd.exe -t  测试

httpd.exe -k install 成为服务

(2) 加php 

httpd.conf

LoadFile D:\installed\php-7.0.12-Win32-VC14-x64\libeay32.dll
LoadFile D:\installed\php-7.0.12-Win32-VC14-x64\php7ts.dll
LoadFile D:\installed\php-7.0.12-Win32-VC14-x64\ssleay32.dll
LoadFile D:\installed\php-7.0.12-Win32-VC14-x64\libssh2.dll
LoadModule php7_module "D:\installed\php-7.0.12-Win32-VC14-x64/php7apache2_4.dll"
PHPIniDir "D:\installed\php-7.0.12-Win32-VC14-x64"
AddType application/x-httpd-php .php .html .htm

(3) memcache.dll增加

   将PHP解压后拷贝到安装位置,我这里选择的是C:/php。然后将php.ini-development复制并重命名为php.ini

exetension增加

https://codechina.csdn.net/mirrors/nono303/PHP7-memcache-dll/-/tree/master/

注意选择 v14-x64-ts  7.0.x 版本。

一定要注意放到ext下后面,错误 的,不能以 memcache.dll.wrong等保留 ,不然会出错。 

猜你喜欢

转载自blog.csdn.net/dualvencsdn/article/details/114285754