windows2000安装Apache php5

想在公司的机子上装Apache+php5+mysql环境...

配置PHP过程中遇到2个问题...

首先下载需要的程序..apache php mysql
公司电脑只用一个盘.... 昏........

都装在C盘下.
通过网上的资料配置PHP;
DirectoryIndex index.html 在后面加入 index.htm index.php (默认index.php为首页文件)

在httpd.conf文件最后加上;
[code]
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
[/code]

还把文件php5ts.dll拷到了wint/system32下;
php.ini-recommended拷到了wint下..


重启Apache..
出现错误,

[quote]
您无权查看该网页
您可能没有权限用您提供的凭据查看此目录或网页。
... ...
HTTP 错误 403 - 禁止访问
[/quote]


修改httpd.conf 在
<Directory "/">
Options FollowSymLinks
Allow from all #修改
Order Allow,Deny #修改
AllowOverride None
Satisfy all
</Directory>

重启Apache.....

又出现了500错误,internet server ............
[quote]
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@synchrotimes.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
[/quote]


查找网上资料..
应当吧php目录下的php.exe改名,然后把php-cgi.exe改名为php.exe,也可以把

Action application/x-httpd-php "/php/php.exe" 改为
Action application/x-httpd-php "/php/php-cgi.exe"

重启APACHE.........

OK........
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值