| Using cgiwrap
to Run CGI Scripts
Normally, a CGI script
runs as the user www. This means that you may not be not able to
update files created by your CGI script, and that permissions on
files your CGI script needs to access must be set to allow everyone
to read them.
Because this is not always appropriate, a CGI wrapper
has been installed. This wrapper will allow you to run CGI scripts
using your own username. This means that you will have full control
over files created by your CGI scripts, and that you can have tighter
control over other files your script needs.
To use cgiwrap to run a CGI script, the script must
be placed in a directory of your public_html called: cgibin. Then, you simply use a slightly modified URL to
access the script by passing it through the wrapper.
For example, if the URL for your CGI script is: http://www.yourdomain.com/cgibin/script.cgi
You would use this URL to access the script using
cgiwrap: http://www.yourdomain.com/cgi-bin/~username/script.cgi
In other words, remove "cgibin" from the
path, and replace it with "cgi-bin/~username". |