cgi scripts

General help with installation, scripts, etc....

cgi scripts

Postby Schwieg » Mon Nov 19, 2007 2:07 pm

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.
Schwieg
 
Posts: 3
Joined: Sun Nov 18, 2007 10:38 am

Postby divya » Wed Nov 21, 2007 2:00 am

Hello,

A very basic script is added below:
Code:
#!/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.
divya
 


Return to General Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron