M
mycwcgr_bak
Unregistered / Unconfirmed
GUEST, unregistred user!
我在Windows 98机器上安装了Apache 1.3.x ,并在c:/php/中安装了Php 4.0作为学习用
然后编辑httpd.conf文件加上了
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
但是我在IE中打开http://cw/3_good.php (注意:cw是我机器名)
出现
HTTP 错误 403
403.1 禁止:禁止执行访问
如果从并不允许执行程序的目录中执行 CGI、ISAPI 或其他执行程序就可能引起此错误。
如果问题依然存在,请与 Web 服务器的管理员联系。
如果我用http://cw/cgi-bin/3_good.php
出现
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.
For more information as to why this behaviour exists, see the manual page for CGI security.
For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
请问如果解决!
另外,再请教
cgi-bin目录下是放什么文件的?PHP文件是否必须放在这个目录下!
然后编辑httpd.conf文件加上了
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
但是我在IE中打开http://cw/3_good.php (注意:cw是我机器名)
出现
HTTP 错误 403
403.1 禁止:禁止执行访问
如果从并不允许执行程序的目录中执行 CGI、ISAPI 或其他执行程序就可能引起此错误。
如果问题依然存在,请与 Web 服务器的管理员联系。
如果我用http://cw/cgi-bin/3_good.php
出现
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.
For more information as to why this behaviour exists, see the manual page for CGI security.
For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
请问如果解决!
另外,再请教
cgi-bin目录下是放什么文件的?PHP文件是否必须放在这个目录下!