J INFO Formerly known as Jalaram Infotech Web Hosting, Web Design Company Ahmedabad, Gujarat, India
Web Hosting Company

We are the Largest web hosting providers at Ahmedabad, Gujarat, India, Come Host with us, Linux Web Hosting Ahmedabad India, Windows Web Hosting Ahmedabad India, Reseller Web Hosting Ahmedabad India
 
 
 
 
 


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

 
  Most CGI scripts written in Perl will work on J-INFO 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.Jinfo.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.Jinfo.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.


 
Home | About Us | Contact Us | Feedback
All Rights Reserved by www.jinfo.net A Jalaram Infotech Group of Companies