- 论坛徽章:
- 0
|
求助,有的cgi程序运行不了,有的可以。
我看到apache手册上是这么说的,
Most of the time when a CGI program fails, it's because of a problem with the program itself. This is particularly true once you get the hang of this CGI stuff, and no longer make the above two mistakes. The first thing to do is to make sure that your program runs from the command line before testing it via the web server. For example, try:
cd /usr/local/apache2/cgi-bin
./first.pl
(Do not call the perl interpreter. The shell and Apache should find the interpreter using the path information on the first line of the script.)
在shell下能执行的,的确可以正常的浏览。 |
|