时间线

My Life My Style

apache 2.2.2 + PHP5.1.4 不能运行的解决办法

问题,使用传统的模块化方法安装PHP5.1.* + apache 2.2.2 后不能启动,

提示:
"Cannot load C:/php/php5apache2.dll into server: The specified module could not be found."或者"The requested operation has failed!"

原因:
PHP压缩包里的php5apache2.dll只适用于apache2.0.*

解决方法:
下载这个文件,并解压。
http://www.phpv.net/php5apache2.dll-php5.1.x.rar
共有三个文件:

vcredist_x86.exe
php5apache2.dll
httpd.exe.manifest

1.将 php5apache2.dll 覆盖掉你原来PHP目录下的 php5apache2.dll 文件.
2.将 httpd.exe.manifest 文件复制到你的apache安装目录下的bin文件夹下.
3.双击运行vcredist_x86.exe安装.(如果您的系统里已安装了 .NET framework 2.就可以省掉这一步)

完成!去重启你的apache2.2试试吧。

发表评论

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Connecting to %s

加关注

Get every new post delivered to your Inbox.