34SP.com
Support Forums . SUPPORT FORUMS . Account . ACCOUNT
.
.
---
Hosting | Domains | Contact us | Order
Hosting servers
Knowledge Base : Glossary : Suggestions
.
BROWSE ARTICLES
.
SCRIPTING TROUBLESHOOTING
Website
FTP and uploading
Siteadmin control panel
Email
Scripting
MySQL and databases
Domain names
Account Management Pages
Miscellaneous topics
.
SEARCH ARTICLES




The following is a list of frequently asked questions regarding scripting problems.

Q: When I run my CGI script, my browser displays "Software Error".

A: This message indicates you have made an error in your script. You need to carefully go through your program and check for mistakes.


Q: When I run my CGI script, my browser displays an error containing the words "cannot connect to database" or "cannot connect to localhost".

A: This error indicates your script uses a database to function. In this case the script is trying to access a database that is not present. You must create a database for your script to use. You may consult section four of this document regarding this.


Q: I know my Perl script should run fine. It is syntactically correct and all modules I need are installed on the server.

A: Try changing your shebang line to:

/usr/bin/perl -w

If your Perl script produces warnings this will be needed to execute it without issue.


Q: Can I run cgi scripts from outside the cgi-bin?.

A: Yes you can, but you will need to do the following as the scripts will not be parsed otherwise:

Create a blank document in something like notepad;
Enter the lines:

Options +ExecCGI
AddHandler cgi-script .cgi
Save the document as htaccess.txt

Upload this to the root of the directory you wish cgi to run from.

Once the file is on the server rename the file with your FTP client to .htaccess. You should rename the file to exactly this, it should have no file extension and be entirely in lowercase. Once you have done this cgi will execute without problem. (For further information, check out this tutorial)



.
RELATED ARTICLES
There are no related articles

.
support . | . other services . | . about 34SP.com . | . contact . | . sitemap