php symfony2.8 的php_apcu.dll 扩展推荐xampp 上的php 加速器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36243959/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
php_apcu.dll extension for symfony2.8 recommend php accelerator on xampp
提问by Dung
On windows 7 xampp 5.6.19 and symfony 2.8 dev environment configuration i was prompted "install and/or enable a php accelerator (highly recommended)". How to resolve this recommendation/warning?
在 Windows 7 xampp 5.6.19 和 symfony 2.8 开发环境配置上,我被提示“安装和/或启用 php 加速器(强烈推荐)”。如何解决此建议/警告?
回答by Dung
I found the answer to my question here: http://www.ivangabriele.com/php-how-to-install-php-accelerator-in-xampp/
我在这里找到了我的问题的答案:http: //www.ivangabriele.com/php-how-to-install-php-accelerator-in-xampp/
here is instruction just in case the site goes away:
这是为了防止网站消失的说明:
- to show you PHP configuration via the PHP function phpinfo()
to get 2 precious informations :
- architecture: x86 or x64?
- TS (Thread Safe) or NTS (Non Thread Safe)?
to download the corresponding DLL (including your PHP version): http://pecl.php.net/package/APCu/4.0.8/windows(PHP 7: https://pecl.php.net/package/APCu/5.1.17/windows)
to copy/paste the DLL file within your extensions directory (C:\xampp\php\ext)
to edit your
php.ini
file (i.e. withinC:/xampp/php
directory)to add this line inside Dynamic Extensions part :
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; [...] extension=php_apcu.dll
finally, to restart Apache - done.
- 通过 PHP 函数 phpinfo() 显示 PHP 配置
获得2个宝贵的信息:
- 架构:x86 还是 x64?
- TS(线程安全)还是 NTS(非线程安全)?
下载相应的DLL(包括您的PHP版本):http: //pecl.php.net/package/APCu/4.0.8/windows(PHP 7:https: //pecl.php.net/package/APCu/5.1 .17/窗户)
将 DLL 文件复制/粘贴到扩展目录 (C:\xampp\php\ext) 中
编辑您的
php.ini
文件(即在C:/xampp/php
目录内)在动态扩展部分添加这一行:
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; [...] extension=php_apcu.dll
最后,重新启动 Apache - 完成。
NOTE: It is php_apcu.dll not php_apc.dll and click on Windows icon for Windows versions https://pecl.php.net/package/APCu
注意:它是 php_apcu.dll 不是 php_apc.dll 并单击 Windows 版本的 Windows 图标https://pecl.php.net/package/APCu
Tested and works on Windows 10.
在 Windows 10 上测试并运行。