配置Apache以查看我的CGI脚本。无法运行CGI。 [英] Configuring Apache to see my CGI scripts. Unable to run CGI.

查看:324
本文介绍了配置Apache以查看我的CGI脚本。无法运行CGI。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apache没有看到我的cgi脚本。我不知道该怎么办,


1)我在我的conf文件夹中读过httpd文件但仍然没有运气。


2 )我把我的CGI放在了


C:/ Program Files / Apache Software Foundation / Apache2.2 / cgi-bin /


还没有运气。


我的CGI中的shebang行是:#!/ usr / bin / perl

My cgi script is not being seen by Apache. I have no idea what to do,

1) I have read the httpd file in my conf folder and still no luck.

2) I have placed my CGI place in

C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/

still not luck.

My shebang line in my CGI is: #!/usr/bin/perl

推荐答案

In conf文件夹(httpd)我需要删除/更改下面的内容才能运行我的CGI脚本。我试过''允许所有''然而这也没有用。


目前我所有的.cgi文件都在/Apache2.2/cgi-bin.


以下代码取自httpd doc(在conf文件夹中):

In the conf folder (httpd) what do i need to delete/change below to run my CGI scripts. I''ve tried ''Allow from all'' however this did not work too.

Currently all my .cgi files are in /Apache2.2/cgi-bin.

The below code taken from httpd doc (in conf folder):

展开 | 选择 | 换行 | 行号


改变了实际解决问题的shebang。改变shebang线指向perl.exe
changed the shebang which actually resolved the issue. Changed the shebang line to point to perl.exe


Heya,Patel。


看看此文档
Heya, Patel.

Have a look at this document.


这篇关于配置Apache以查看我的CGI脚本。无法运行CGI。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆