简体   繁体   English

PHP模块在wampserver配置symfony中不起作用

[英]php modules doesn't work in wampserver configuring symfony

I unzipped symfony in the www folder of wampserser and it's gaving me three recommendations witch are: 我在wampserser的www文件夹中解压缩了symfony,这给了我三个关于女巫的建议:

  1. Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component. 如果您的项目使用Symfony安全组件中的注销处理程序,则安装PHP 5.4.11或更高版本。
  2. Install and enable the intl extension (used for validators). 安装并启用intl扩展名(用于验证程序)。
  3. Install and/or enable a PHP accelerator (highly recommended). 安装和/或启用PHP加速器(强烈建议)。

Concerning to the second one i tried to enabled the module php_intl but as sun as i do it a warning message shows up saying "PHP Startup" two times one after the other, after all of this on loading http://localhost/Symfony/web/config.php it keeps giving me this recommendation. 关于第二个,我试图启用模块php_intl,但是像我做的一样,出现了一条警告消息,说“ PHP Startup”一个接一个地两次,所有这些都加载了http://localhost/Symfony/web/config.php它一直给我这个建议。

In the third recommentation i downloaded the php_apc.dll don`t remember from where but on enabling it happen the same thing as the intl extension but the warning message that shows up says: 在第三个建议中,我下载了php_apc.dll,但不记得从哪里下载,但是在启用它时会发生与intl扩展相同的事情,但是出现的警告消息显示:

PHP Startup:apc: Unable to initialize module 
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match

I'm using wampserver 2.3, Apache Version : 2.2.23, PHP Version : 5.4.9 What do i have to upgrade? 我正在使用wampserver 2.3,Apache版本:2.2.23,PHP版本:5.4.9我需要升级什么? wampserver, PHP to 5.4.11? wampserver,PHP到5.4.11?

Thanks 谢谢

What this says is basically "you are using the wrong version of this module." 这基本上是“您使用的模块版本错误”。

In PHP the module has to be compiled for the correct PHP Version. 在PHP中,必须为正确的PHP版本编译模块。 So if you use PHP 5.4 you have to use the module compiled for PHP 5.4, not 5.3. 因此,如果您使用PHP 5.4,则必须使用针对PHP 5.4而不是5.3编译的模块。 Minor versions between for example 5.4.11 und 5.4.12 make (usually) no difference to the module. 例如,在5.4.11和5.4.12之间的次要版本对模块没有影响(通常)。

http://windows.php.net/downloads/pecl/releases/apc/3.1.13/ There you get the latest version of for your PHP Version. http://windows.php.net/downloads/pecl/releases/apc/3.1.13/在那里,您可以获得PHP版本的最新版本。 Check the name of the file. 检查文件名。 There is also a difference between "Thread Safe" (ts) and "Not Thread Safe" (nts). “线程安全”(ts)和“非线程安全”(nts)之间也有区别。 I don't know which one you have, but just try both, it'll work with your version. 我不知道您拥有哪一个,但只需尝试两者,它将与您的版本一起使用。

Also note that since PHP 5.5 Zend OPCache is included inside PHP directly. 另请注意,由于PHP 5.5 Zend OPCache直接包含在PHP中。 It does basically the same but you don't have to maintain a dependency. 它的作用基本相同,但是您不必维护依赖关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM