Processing
Knowledge Base 
Search the Knowledge Base for

Here you can search and view our site Knowledge Base.
To find a specific article, use KB-article number format (ex. KB-1)

Article number: Article number: kb-23
Q. My CGI Scripts Won't Work!

A. Before you open a ticket, please be sure you have checked the following, as these are the most common reasons why CGI scripts fail to work.



1: Make sure your scripts are in the /public_html/cgi-bin folder.

2: If you need the path to your script on the server, it should be /home/yourusername/public_html/cgi-bin

3: Make sure the permissions are set correctly. Web site files are set to the read permission because that is all a visitor should be able to do. However, CGI scripts must be able to execute as well.



With most FTP programs, you can be able to set permissions.

e.g. in the WS_FTP:

-Click once with the left mouse button to select the cgi script file, then right click on the file and choose "chmod (UNIX)" (change mode) from the menu. The standard permissions for a CGI script are:

Owner: Read Write Execute



Group: Read Execute



Other: Read Execute



4: Check the path to the CGI in your web page - the path must include the cgi-bin directory (e.g., ../cgi-bin/myscript.cgi).

5: Make sure the extension of your CGI script is .pl or .cgi

6: Make sure that you uploaded the CGI scripts in ASCII (plain text) format. CGI scripts uploaded in the BINARY format will work.

7: If you downloaded the CGI script from another site, make sure you download in the ASCII format. Do not download through your browser; use FTP instead.

8: Make sure that the paths in your CGI code is pointing to the correct libraries on our system.



Path to PERL: /usr/bin/perl

Path to Sendmail: /usr/lib/sendmail

Path to Date: /usr/bin/date



Please note if you submit a ticket and request assistance for cgi scripts fees will apply if the resulting work is not related to a server issue that is the fault of Global2000Hosting
This page has been viewed 1705 times

Other questions in this category Other questions in this category
1. SSH Access (viewed 4395 times)
2. What are PHP, ASP, perl, etc? (viewed 4072 times)
3. What is MySQL, MS SQL, etc? (viewed 4035 times)
4. I get the error that ODBC is not installed (viewed 1577 times)
5. What is the path to my cgi-bin directory? (viewed 1570 times)
6. Is Zend Optimizer installed? (viewed 1563 times)
7. What is the path to Sendmail? (viewed 1557 times)
8. Which FrontPage Extension components are supported? (viewed 1545 times)
9. What is SSI and how does it work? (viewed 1539 times)
10. What is my ftp web root folder? (viewed 1502 times)

Return to Search

Global2000Hosting Has gone out of business.
01-16-2018
Thank you everyone for many years of customer loyalty We have shutdown operations and are no longer accepting any new clients.
Wordpress
02-13-2013
All Clients using wordpress just a reminder it is critical that you check your wordpress software and all plugins associated with it and update them as needed for the security of your website. If you are using wordpress software please check your installation at once for updates.