如何在Windows中安装apcu [英] How to install apcu in windows

查看:525
本文介绍了如何在Windows中安装apcu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows中安装APCu?

How can I install APCu in Windows?

我发现了.但是我需要Windows的解决方案.

I found this. But I need a solution for Windows.

我使用PHP 5.5.6(我具有XAMPP软件包).

I use PHP 5.5.6 (I have the XAMPP package).

推荐答案

这篇简短直接的教程应该对您有帮助

This short and straight to the point tutorial should help you

假设

  • 我假设您知道什么是APC-备用PHP缓存
  • 您要安装APCu,因为APC与PHP 5.5.x不再兼容
  • 您要为wamp,xampp安装APCu.通常是用于PHP的Windows Web开发平台

说明

前提:根据您的wamp安装文件夹和PHP/apache版本,所有目录位置可能对您有所不同.

Pre: All directory locations might be different for you depending on your wamp installation folder and your PHP/apache versions.

  1. 转到 http://pecl.php.net/package/APCu ,包含可用版本的表
  2. 选择更适合您的版本(支持您的php版本的最新稳定版本)
  3. 从DLL列表中选择软件包,具体取决于您使用的Windows:
    • PHP版本(以您的情况为5.5)
    • x64 (64位)或 x86 (32位窗口)
    • 线程安全(用于Apache兼容性)
  1. Go to http://pecl.php.net/package/APCu, there is a table with available releases
  2. Choose whatever release suits you better (latest stable version that supports your php version)
  3. Choose package from DLL list, depending on what Windows you are using:
    • PHP version (5.5 in your case)
    • x64 (64 bits) OR x86 (32 bits windows)
    • Thread Safe (for Apache compatibility)

转到C:\wamp\bin\apache\apache2.4.9\bin打开php.ini并添加以下行(我刚刚在文件末尾添加了它们):

Go to C:\wamp\bin\apache\apache2.4.9\bin open php.ini and add the following lines (I just added them at the end of the file):

[apcu]
extension=php_apcu.dll
apc.enabled=1
apc.shm_size=32M
apc.ttl=7200
apc.enable_cli=1
apc.serializer=php

除了DLL文件的位置之外,这是建议的配置,位于php_apcu归档文件的INSTALL文件中.

This are recommended configurations located in INSTALL file from the php_apcu archive, excepting the location of the DLL file.

重启沼泽

结束!

这篇关于如何在Windows中安装apcu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆