Troubleshooting Scripts

PLEASE NOTE: Biz-hosting Technical Support does not provide scripting support. However we have provided the following articles which cover some common scripting problems.

Choose an article below:

PROBLEM: PHP scripts won't run from CGI-BIN
PROBLEM: My sendmail script doesn't work under Windows
PROBLEM: Script times out
PROBLEM: I continually get 'Error 500 - server too busy' error messages
PROBLEM: MS Access database problems
PROBLEM: PHP scripts won't run from CGI-BIN

Description:

The cgi-bin directory is for files which require execute permissions. Typically, these would be CGI, Perl, or compiled binaries.

PHP won't work from the cgi-bin.

Customers wanting to run PHP scripts, should place these scripts in the htdocs, or sub-directory.

PROBLEM: My sendmail script doesn't work under Windows

Summary:

The sendmail script can only be used on Linux servers. It does not work on Windows servers.

For Windows servers you should use Jmail or CDONTS.

PROBLEM: Script times out

Summary

In order to ensure server reliability, the timeout on our servers has been set to 10 seconds for CGI scripts, and 15 seconds for ASP scripts.

Solution

If you continue to experience difficulties, you should review the script and try to configure it to run within the above parameters.

PROBLEM: I continually get 'Error 500 - server too busy' error messages

Symptom

If you continually receive the error message: 500 Server too busy

This may be because the scripts you are using are not closing database objects and connections. Such scripts may work well to begin with, but eventually they will consume too many resources and adversely affect the web server.

PROBLEM: MS Access database problems

Summary

MS Access has a limit of 255 connections per server, across all sites. Scripts that open many connections, or do not close connections after use, can quickly exceed this limit. Leaving a connection open means that a script has to time out. This can take several minutes - during which time the connection is unavailable to the same, and other, scripts.

Biz-hostings' servers support MS Access 2000 and above. You are strongly recommended to use the latest version.

Solution

When using Access, it is very important to:

Use OLE-DB ("PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=path to database.mdb;");
Open connections only when needed.
Close open connections as early as possible.
If resources become exhausted on a regular basis, you are advised to upgrade to an MS SQL database. This is a more reliable, faster technology, and does not suffer from the same access problems.

The connections are on a per server basis, and we cannot control how they are used.