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 1631 times

Other questions in this category Other questions in this category
1. SSH Access (viewed 4209 times)
2. What are PHP, ASP, perl, etc? (viewed 3891 times)
3. What is MySQL, MS SQL, etc? (viewed 3862 times)
4. I get the error that ODBC is not installed (viewed 1512 times)
5. What is the path to my cgi-bin directory? (viewed 1498 times)
6. Is Zend Optimizer installed? (viewed 1498 times)
7. What is the path to Sendmail? (viewed 1489 times)
8. Which FrontPage Extension components are supported? (viewed 1469 times)
9. What is SSI and how does it work? (viewed 1466 times)
10. What is my ftp web root folder? (viewed 1420 times)

Return to Search

PhP Upgrades Completed
01-16-2018
All servers have been updated to include Php 5.5.x Thru Php 7.0 If you require a specific php version other than what is assigned to your all Wordpress installations will need to update permissions and or database passwords in some rare cases of very old wordpress installs you will need to reinstall wordpress entirely. Wordpress plugins must be updated and or deactivated if they will not function with this version of php.
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.