Most Perl cgi scripts 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
http://domain.netfirms.com/cgi-bin/file.cgi
Your full or absolute root path is:
$ENV{'DOCUMENT_ROOT'}
Remember to use double quotes around the path.
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"
You can also find your document root by running the printenv program in your cgi-bin directory. Type: domain.netfirms.com/cgi/printenv on any web browser. It will display the absolute path and other variables needed for cgi scripts.
CGI File Permissions
Make sure all files and directories are set to chmod 755. The cgi-bin directory itself should be chmod 755.
能不能請問一下上面是啥意思...
還有他的真實路徑..和實際路徑是啥??
我不太會用cgi