I'm trying to learn how to run a cgi script. I saved the following script as
Then I then saved a
in the same folder. I uploaded both of these files in text format. I logged into my account using ssh and ran the following line:
However when I went to asked 30 Sep '11, 05:05 womble |
Hi, First of all, the permissions should be set to 755, so the script is executable. If you still have issues after fixing this, please check out our docs on solving this kind of errors. answered 30 Sep '11, 05:48 todork Hi todork. Thanks - I changed the permissions to 755. I am a bit confused about the file paths though. This file is in /apache/htdocs/ - if I am calling it from a webpage does the webpage need to be in the same location (/apache/htdocs/) also?
(30 Sep '11, 06:02)
womble
Not necessarily - you can call it using a relative or an absolute path. If you are having issues with such matters, it would be best to open a ticket though.
(30 Sep '11, 06:08)
todork
|