TMT Computers - Frenchies @ Work TMT Computers - Frenchies @ Work TMT Computers - Frenchies @ Work
TMT Computers - Frenchies @ Work
TMT Computers - Frenchies @ Work
5 Monteith Place,
Durban North,
KZN, South Africa.
Tel: 0315732562
Email: sales@tmt.co.za
Home Page
Products
Services
Specials
Support
Downloads
Contact Us
 
We have been providing world class service for 6 years!
 
FREE MIGRATION

We do not charge you to Upgrade or Downgrade your hosting account.
Is your website receiving more hits than originally planned for? Downgrade or Upgrade your hosting account at no extra charge.

 
CGI Scripts

Where to place your CGI scripts:

Although there is nothing dangerous about placing cgi scripts in random directories throughout your site, it's best if you keep them in their own little home known as the cgi-bin. This minimizes security risks and allows you to maintain your cgi programs from one directory.

The path to Perl:

One of the first things you must do when configuring a script, is set the correct path to the Perl interpreter, which is the engine responsible for processing the script. The path to Perl on our servers is: #!/usr/bin/perl

The path to Sendmail:

Some programs such as the ones, which send email will need to know where the Sendmail program resides on the server. The script will typically have a setting like this: $mailprog = '/usr/sbin/sendmail'; and will want you to set it appropriately. Sendmail on our servers can be found here: /usr/sbin/sendmail  or  /usr/lib/sendmail .

Setting directories within your cgi scripts:

When you configure a cgi script for "any" server, it may ask you to set variables such as the base, relative, and CGI directory/url settings. Here's an "example" using Matt Wright's wwwboard.pl script. Obviously, each script may vary, but this should provide you with some basic idea:

$basedir = "/home/yourlogin/public_html/wwwboard";
$baseurl = "http://www.yoursite.com/wwwboard";
$cgi_url = "http://www.yoursite.com/cgi-bin/wwwboard.pl";

Most scripts come with documentation on how to set these directories. Please make sure you read and understand it before configuring the script. New to cgi? Here is a page with questions and answers to numerous questions evolving around the inns and outs of using cgi within your scripts: http://www.w3.org/Security/Faq/www-security-faq.html. Another excellent site, which provides step by step chapters is: http://www.cgi101.com/class/.

 

Quick Links
Support Home
Services
Web Hosting Support
Contact Us

Latest Virus Alerts!

Buy security software from us!

Norton Anti-Virus 2005 RETAIL - R349.00

Norton Anti-Virus 2005 OEM - R189.00
Contact the sales team on
sales @ tmt.co.za or 0315732562.

FREE MIGRATION

We do not charge you to Upgrade or Downgrade your hosting account.
Is your website receiving more hits than originally planned for? Downgrade or Upgrade your hosting account at no extra charge.


Best Web Hosting Ever!
Click here to view our hosting packages!
Budget Plan
10MB space & 500MB traffic @ R32.00pm
Standard Plan
50MB space & 2GB traffic @ R70.00pm
Developer Plan
200MB space & 4GB traffic @ R160pm
Contact the sales team on
sales@tmt.co.za or 0315732562.

| HOME | CONTACT | SERVICES | SPECIALS | SUPPORT |
Copyright 2006 The Maujean Team cc