您的位置:首页 > 编程语言 > PHP开发

关于配置PHP的错误解决

2016-11-04 21:47 204 查看


我的php脚本是php-5.4.0-Win32-VC9-x86.zip

最下面的调试模块我把原文贴上

自己调好路径 就能解决启动apache错误的问题

#加载php

PHPIniDir "H:/wamp/php"

#加载php模块

LoadModule php5_module "H:/wamp/php/php5apache2_2.dll"

#类型

AddType application/x-httpd-php .php .html .htm

另外有网友提到这个问题,也贴上

刚刚你说版本问题,我就到php官网http://windows.php.net/download#php-5.6上看了下,才注意到页面左边有这样一段话:
Apache
Please use the Apache builds provided by Apache Lounge. They also provide VC11 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.
If you are using PHP with Apache 1 or Apache2 fromapache.org (not recommended) you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler. Do NOT use VC9+ versions of PHP with the apache.org binaries.
With Apache you have to use the Thread Safe (TS) versions of PHP.
大概了解了Apache不支持VC9+的PHP版本,而我下载的PHP5.6是VC11的,所以不支持,重新下载了一个php5.4.39版本的,里面是php5apache2_2.dll,现在好了。。
总之谢谢你了。。。

要看你的apche版本和php版本是否支持
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐