About us Reseller Hosting Directory Feedback Payment Support
Website Designing Domain Registration Webhosting Outsource to us Internet Marketing E commerce solution
 
     
     
     
 
 

Support Help- Scripting

 
 
     
 
     
 

Scripting:


What are the common settings/paths for my CGI scripts?


Most CGI scripts written in Perl will work on Jinfo 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.skyinfo.com/cgi-bin/file.cgi

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.skyinfo.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.


 

Back to Support Page

Back

go to top

 
 
   

Top

 
   
     
 
skynetindia.info
Index E mail