[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] CGI trouble RaQ4
- Subject: RE: [cobalt-users] CGI trouble RaQ4
- From: "Steven Young" <steven.young@xxxxxxxxxxxxxxx>
- Date: Wed Oct 23 17:44:02 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> > >On 22 Oct 2002 at 5:09, Ed48 wrote:
> > >
> > > No matter what site or user CGI scripting seems to not work. I did
> > > check the box for enabeling CGI scripting. Here is the test script
> > > and the result. Thank you in advance.
> > > Ed
> >On Tue, 22 Oct 2002 11:29:28 Ian Wrote:
> >
> >Does the script have execute permissions ?
> >
> >cd /path/to/script/
> >chmod +x cgiscript.cgi
> Thanks for replying Ian. I guess I am not sure what you
> mean. I placed a check mark on the site settings screen to
> enable CGI scripts to run. The script is in the web root
> directory along with all of the other files. Can you explain more?
>
> Thank you!
> Ed
Enabling CGI scripts to run via the GUI effectivly turns on / off CGI
scripting for that virtual site. It seems you have enabled CGI for the
virtual site, but the script itself needs to have execute permissions
before it will run. You can do this with FTP or from the command line...
Depending on your FTP client software, you should be able to FTP the
script to the virtual site (in ascii mode) and then set it's permissions
(in WS_FTP Pro, right click the file and look for something along the
lines of 'UNIX Permissions'). You need to set the permissions to be 755
(maybe shown as rwxr-xr-x) which allows the script to execute. Some more
basic FTP clients do not have the option to change permissions.
If you're using the command line, you can change the permissions by
hand. Change directory to where your script is and use the chmod command
to change it's permissions. For example:-
cd /home/sites/www.mysite.com/web/
chmod 755 myscript.pl
Should be good to go...
HTH
~
Steven