[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Perl ERROR: 13 Permission denied
- Subject: RE: [cobalt-users] Perl ERROR: 13 Permission denied
- From: "Paul Alcock" <webmgr@xxxxxxxxxxxxxxxxxx>
- Date: Thu Feb 17 07:41:06 2000
Hope I'm not explaining how to suck eggs here, but...
Here's a test cgi that I often use.
You could use it to check your system is running scripts ok.
###### the script starts on the next line
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><body>";
print "Ok, this is environment_test.cgi<br>";
while (($key, $value) = (each %ENV)) {
print "$key: $value<br>";
}
print "</body></html>";
###### the above line is the last line of the script
All it does is produce a page displaying the environment vars in your
browser.
on the RAQ the default location of perl is indicated in
#!/usr/bin/perl
If you changed that (I wouldn't) then edit that line to the correct
location.
Upload it to your site as a none binary file named 'environment_test.cgi'
into a
directory viewable to web browsers eg.
/home/sites/mysitenamegoeshere/web/testarea/environment_test.cgi
Set the permissions on the file to 755
Via telnet that is chmod 0755 environment_test.cgi
Via FTP use your ftp client menus (in cute ftp just right click on the file
and pick from the menu)
point your browser to mysitenamegoeshere/testarea/environment_test.cgi
And you should get to see it working ok with some useful info as a freebie.
Paul.
webmgr@xxxxxxxxxxxxxxxxxx