FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


cgi-bin help





solarwind
Lets say I have a file "hello.cgi" that just uses perl. It just prints hello world when executed.

Here are my questions:

1) What is the perl executable? Example, is it: /usr/bin/perl? or /usr/local/bin/perl?
2) What should my .cgi file be chmoded to?
3) How should I link to the "hello.cgi" file from my homepage "http://www.solarwind.frih.net/index.html"? like would it be "http://www.solarwind.frih.net/cgi-bin/hello.cgi"? or where would it be located as a url?
4) Also, it does go in public_html/cgi-bin/ right?

All help is much appreciated

Thankyou
thnn
Perl directory is #!/usr/bin/perl

Chmod to 755.

And yes you would use the link http://www.solarwind.frih.net/cgi-bin/hello.cgi

Make sure of course that the hello.cgi program is in the cgi-bin. However it is possible to set the mail directory to run CGI programs, at http://www.solarwind.frih.net/hello.cgi, for example if you put this in the .htaccess file.

Code:
Options +ExecCGI
AddHandler cgi-script .cgi .pl
solarwind
Wow! Thanks, that worked, you saved me time!

Thankyou!!!
Tumbleweed
What scripts are allready (if any) are on my frih space ?
I am trying to make a comments form and the tutorial I am following asks for the location of the pearl script for handling mail through cgi
(there example is fmail.pl)....Is there allready some scripts in my frih space or do I have to add my own ?
johanfh
You can look wich perl-modules are installed in DirectAdmin (look in Your Account - Installed Perl Modules), but I don't think the script you need is installed. Note: a script is not the same as a module. The difference isn't important for now, but modules end in .pm and scripts end most of the time in .pl
So I guess you need to upload fmail.pl yourself
Wink
Good luck!
JohanFH
Tumbleweed
Thanks JohanFH........I have tried umpteen scripts but I just didnt seem to be able to get the script and the flash form to comunicate... I have settled for a mailto: form for now as I want to keep some of my sanity Razz
Im hoping one day the penny will drop

The mailto form does not work properly for everyone........so I want this form bad.......I have uploaded multiple scripts and as far as I am aware they are correct.....I have uploaded a prebuilt "just change the email addy" form and this to did not work either allthough it appears to there is no mail received..........I am probably missing something somewhere but what I know not...
Create a form........with variables.......upload form and scripts .... it seems so simple Confused
Related topics
about cgi setup
CGI-bin script help
Some php probs..need some help plzz!
cgi guestbook... need help setting up.
problem with cgi perl script
Help, I need LWP::Simple perl module!!
Ftp Subdomain Trouble!!! URGENT!
Python via CGI - A personal triumph
CGI-BIN
mod_python outside cgi-bin
cgi script outsite cgi-bin
cgi-bin directory?
Setup cgi-bin in apache
Which scripting languages into CGI-Bin?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.