| Author |
Message |
Schwieg
Joined: 18 Nov 2007 Posts: 3
|
Posted: Mon Nov 19, 2007 1:07 pm Post subject: cgi scripts |
|
|
| I'm having all sorts of problems getting my cgi scripts to work. I've checked my permissions and read hundreds of articles. I'm overlooking something simple in the code i'm sure. If someone could post an example of a very basic script that'll work on this server it would be much appreciated. Thank you. |
|
| Back to top |
|
 |
divya CWH Staff
Joined: 24 Jul 2007 Posts: 52
|
Posted: Wed Nov 21, 2007 1:00 am Post subject: |
|
|
Hello,
A very basic script is added below:
Code: | Quote: | #!/usr/local/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n"; |
save it in a file called hello.cgi. And the script should be having permissions 755 and in the ownership of user.
Regards,
Divya
CWH Support. |
|
| Back to top |
|
 |
|