[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Problem executing CGI




However, I now am unable to execute my script.

Did you "chmod 755 script.cgi" ..?


I have a file /cgi-bin/script

Actually, you're not really required to put your cgi scripts in specifically a "cgi-bin" directory. You can execute them in any /web directory for a virtual site. Since you didn't include a file extension I'll take a stab here and say that the script won't execute because it doesn't have a file extension. For all web page based stuff I usually give a cgi script the ".cgi" extension. ".pl" stuff I use for shell scripts, but that's my own personal preference.


This file was placed on the machine by telnetting in. Ownership is now
httpd.

Have you tried changing ownership with "chown username script.cgi" in telnet for a user name of that particular virtual site??

I can't run simple CGI's on a RAQ2 either. I've:

1. changed permissions - (775, 755, 750)
2. changed owner (admin, httpd, site-adm '<-doesn't work')
3. changed owner and group (chown http.site1)
4. added the following .htaccess into /cgi-bin/

   Options FollowSymLinks Includes ExecCGI
   AddHandler server-parsed .shtml
   AddType    text/html     .shtml
   AddHandler cgi-script .cgi
   AddHandler cgi-script .pl cgi-bin/

Please Help!!! They are simple scripts and I can't get past cgi-wrapper.