`

windows2000安装Apache php5

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

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

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

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

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


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


重启Apache..
出现错误,

引用

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



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

重启Apache.....

又出现了500错误,internet server ............
引用

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.



查找网上资料..
应当吧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........
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics