You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nuno Carvalho <ig...@alunos.ipb.pt> on 2004/07/15 12:14:18 UTC

[users@httpd] can't find package cgi

Internal Server Error
The server encountered an internal error or misconfiguration and was 
unable to complete your request.
Please contact the server administrator, root@localhost 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.
------------------------------------------------------------------------
Apache/2.0.49 (Fedora)

error_log:
[Thu Jul 15 11:02:42 2004] [error] [client xxx.xxx.xxx.xxx] can't find 
package cgi
[Thu Jul 15 11:02:42 2004] [error] [client xxx.xxx.xxx.xxx]     while 
executing
[Thu Jul 15 11:02:42 2004] [error] [client xxx.xxx.xxx.xxx] "package 
require cgi"
[Thu Jul 15 11:02:42 2004] [error] [client xxx.xxx.xxx.xxx]     (file 
"/var/www/cgi-bin/gnugkcallreport.cgi" line 3)
[Thu Jul 15 11:02:42 2004] [error] [client xxx.xxx.xxx.xxx] Premature 
end of script headers: gnugkcallreport.cgi

http.conf:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>


What am I doing wrong?

Nuno

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] can't find package cgi

Posted by Robert Andersson <ro...@profundis.nu>.
Nuno Carvalho wrote:
> # ./gnugkcallreport.cgi
> can't find package cgi
>     while executing
> "package require cgi"
>     (file "./gnugkcallreport.cgi" line 3)
>
> vi gnugkcallreport.cgi :
> #!/usr/bin/tclsh
> package require mysqltcl
> package require cgi
> .....

There we go. This is a tcl issue, not Apache. You need to install the cgi
package. I suggest you find some tcl documentation or mailing list if you
need help with that.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] can't find package cgi

Posted by Nuno Carvalho <ig...@alunos.ipb.pt>.
# ./gnugkcallreport.cgi
can't find package cgi
    while executing
"package require cgi"
    (file "./gnugkcallreport.cgi" line 3)

vi gnugkcallreport.cgi :
#!/usr/bin/tclsh
package require mysqltcl
package require cgi
.....

Nuno

Robert Andersson wrote:

>Nuno Carvalho wrote:
>  
>
>>error_log:
>>[Thu Jul 15 11:02:42 2004] [error] [client xxx.xxx.xxx.xxx]
>>can't find package cgi
>>    
>>
>
>Your CGI script is broken. Most likely you are missing a package or two.
>
>Try to execute the script in a shell and make it work before attempting to
>run it through Apache. Eg:
>
>...$ cd /var/www/cgi-bin
>/var/www/cgi-bin$ ./gnugkcallreport.cgi
>
>Regards,
>Robert Andersson
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>  
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] can't find package cgi

Posted by Robert Andersson <ro...@profundis.nu>.
Nuno Carvalho wrote:
> error_log:
> [Thu Jul 15 11:02:42 2004] [error] [client xxx.xxx.xxx.xxx]
> can't find package cgi

Your CGI script is broken. Most likely you are missing a package or two.

Try to execute the script in a shell and make it work before attempting to
run it through Apache. Eg:

...$ cd /var/www/cgi-bin
/var/www/cgi-bin$ ./gnugkcallreport.cgi

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org