Learn more about Lync
Learn more about Lync
Lookup Article by ID:
Web Hosting > Getting Started
 
 

Where should I put my CGI scripts on Linux plans?

 

You should upload your CGI scripts to cgi-bin folder that is located under htdocs.

Files that are located in cgi-bin folder are recognized by web-server as CGI programs and run from the shell. To make CGI scripts run at your account you should do the following:

  1. Set the path to interpreter at your script at the first line (i.e. #!/usr/bin/perl for Perl scripts).
  2. Upload your script to cgi-bin folder.
  3. Set execution mode to your script. (you can do this from "Web/FTP Server > Apache Server > Permissions" page of your HostPilot or via ftp by using "quote site chmod 755 filename" command).
  4. Run it via web browser (http://yourdomain/cgi-bin/filename). You will need to put a link to the script into a web page and, possibly, create form that will submit all necessary information to the script.
 
Article ID: 873
Keywords: linux apache cgi-bin cgi bin script execution permissions chmod
Direct Path: http://hosting.intermedia.net/support/kb/viewKBArticle.asp?id=873
 

Copyright © Intermedia, Inc. 1995 - 2013. All Rights Reserved.

Users of this site agree to be bound by the Intermedia Service Agreement,
Service Level Agreement, and Acceptable Use Policies.
Legal | AUP | Privacy Policy