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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 00:45:23  来源:igfitidea点击:

php_apcu.dll extension for symfony2.8 recommend php accelerator on xampp

phpsymfonyaccelerator

提问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:

这是为了防止网站消失的说明:

  1. to show you PHP configuration via the PHP function phpinfo()
  2. to get 2 precious informations :

    • architecture: x86 or x64?
    • TS (Thread Safe) or NTS (Non Thread Safe)?
  3. 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)

  4. to copy/paste the DLL file within your extensions directory (C:\xampp\php\ext)

  5. to edit your php.inifile (i.e. within C:/xampp/phpdirectory)

  6. to add this line inside Dynamic Extensions part :

    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;
    
    [...]
    
    extension=php_apcu.dll
    
  7. finally, to restart Apache - done.

  1. 通过 PHP 函数 phpinfo() 显示 PHP 配置
  2. 获得2个宝贵的信息:

    • 架构:x86 还是 x64?
    • TS(线程安全)还是 NTS(非线程安全)?
  3. 下载相应的DLL(包括您的PHP版本):http: //pecl.php.net/package/APCu/4.0.8/windows(PHP 7:https: //pecl.php.net/package/APCu/5.1 .17/窗户

  4. 将 DLL 文件复制/粘贴到扩展目录 (C:\xampp\php\ext) 中

  5. 编辑您的php.ini文件(即在C:/xampp/php目录内)

  6. 在动态扩展部分添加这一行:

    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;
    
    [...]
    
    extension=php_apcu.dll
    
  7. 最后,重新启动 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 上测试并运行。