Most CGI scripts written in Perl will work on Netfirms servers. For your scripts to work properly, you may need to change some paths or settings within the script to the following:
Perl 5 Location
#!/usr/bin/perl
Sendmail Location
/usr/lib/sendmail
CGI Url
[domain.example.com...]
Full or Absolute root path:
We recommend using the DOCUMENT ROOT environment variable to automatically insert the path in your Perl script:
$ENV{'DOCUMENT_ROOT'}
You may have to use "double quotes" around the path.
For example the full path to your www directory would be:
"$ENV{'DOCUMENT_ROOT'}/www"
The full path to your cgi-bin directory would be:
"$ENV{'DOCUMENT_ROOT'}/cgi-bin"
Alternatively, to find your document root use the printenv program: Type domain.example.com/cgi/printenv on any web browser.
[edited by: jatar_k at 7:13 pm (utc) on Sep. 14, 2004]
[edit reason] generalized urls [/edit]