问题描述
这已成为一个非常令人沮丧的问题。我试图做一个干净的安装Apache 2.2和PHP 5.2.11的。一切似乎是正确配置,但PHP模块没有开始...
This is becoming a very frustrating issue. I am trying to do a clean install of apache 2.2 and PHP 5.2.11. Everything seems to be configured correctly but the php modules aren't starting...
PHP Warning: PHP Startup: Unable to load dynamic library '.;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/php_mcrypt.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '.;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '.;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/php_openssl.dll' - The specified module could not be found.\r\n in Unknown on line 0
在php.ini
in the php.ini
include_path = ".;C:\Program Files (x86)\Apache Software Foundation\Apache2.2\php"
extension_dir = ".;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/"
所有文件都没有...... .dll文件,如ssleay32.dll,libmcrypt.dll,libmysql.dll的,的libeay32.dll都安装在...
All the files are there... The .dll files such as ssleay32.dll, libmcrypt.dll, libmysql.dll, libeay32.dll are all installed at...
C:/ Program Files文件(86)/ Apache软件基金会/的Apache2.2 / PHP /
C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/
我还包括他们在C:\\ Windows \\ System32下
I also included them in the C:\Windows\System32
和甚至还添加了C:/ Program Files文件(86)/ Apache软件基金会/的Apache2.2 / PHP /到windows路径。
and even added C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ to the windows path.
我不知道这是为什么不工作,感觉就像一个双输。任何人有关于如何得到这个任何想法所有的工作好吗?
I have no idea why this isn't working and it feels like a no win situation. Anyone have any ideas on how to get this all working ok?
推荐答案
试试这个:
extension_dir = "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/"
而不会启动;
这篇关于PHP的启动:无法加载动态库时,Windows,Apache 2.2的,PHP 5.2.11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!