PHP 启动:无法加载动态库、Windows、Apache 2.2、php 5.2.11 [英] PHP Startup: Unable to load dynamic library, Windows, Apache 2.2, php 5.2.11

查看:28
本文介绍了PHP 启动:无法加载动态库、Windows、Apache 2.2、php 5.2.11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个非常令人沮丧的问题.我正在尝试全新安装 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 (x86)/Apache Software Foundation/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 (x86)/Apache Software Foundation/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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