 User Manual :: Configuring CGI Scripts
The following settings will help you get your scripts up and running.
- First, make sure that your script has the mode of 755 (user=r,w,x; group=r,x; other=r,x). If
the permissions on your script are not set properly, you may not be giving the server enough
access to execute/run the script. Or you may be giving the server too many permissions, and
giving the ability to let other users on the system modify your script.
- Make sure that you set your Paths Properly. Setting the paths improperly will either not allow
the script to run, or it may not work properly, due to it not being able to write to
important data files that it needs to operate.
Path to Perl: /usr/bin/perl
Web Path: /web/domain.com/www/
Path to Sendmail: /usr/lib/sendmail -t
 Common Scripting Error Messages
Below are the most commonly found, and asked questions regarding CGI scripts.
- 500 Internal Server Error:
The above error usally means one of three things. 1) The path to perl is incorrectly
specified. 2) The script does not have execute permissions or 3) The script has
bad syntax. To find more details about the error, you can see your sites error_log.
- 401/403 Access Forbidden:
The directory which the script is in, or the script itself, does not have read and
execute privledges the server does not have sufficient access to let the file run.
Fix the problem by updating the permissions (set to 755). If this does not fix the
problem, check the path to perl that is specified on line one of the script.
- Perl Syntax Error:
The below error message generally means that you specified invalid syntax. Check your script
for coding errors near 'line 1' in 'somescript.cgi'.
Bareword found where operator expected at somescript.cgi
line 1, near "somevariable"
(Missing operator before somevariable?)
syntax error at somescript.cgi line 1, next token ???
Execution of somescript.cgi aborted due to compilation errors.
- PHP Syntax Error:
The below error message generally means that you specified invalid syntax. Check your script
for coding errors near 'line 1' in 'somescript.php'.
Parse error: parse error, unexpected T_SOMETHING
in somescript.php on line 1.
 Other Forms of Help
Online there is a wide variaty of information to teach you how to program in the language
you like best. If after searching online you are still not able to solve your problem,
ByteHosting Support should be able to help you with your problem.
|
 Whats Included?
• Massive Amounts of Disk space
• Scalable Bandwidth Transfer
• IMAP/POP3 Server Access
• Mailinglist Support (ezmlm)
• MySQL Databases
• Password Protected Directories
• PHP/CGI Script Abilities
• SSL Server Capabilities
• Free Technical Support*
* Free technical support available only on shared hosting plans. Dedicated Servers and colocation remote hands available on a per-hour basis.

 Additional Value-added Services
• Website Monitoring Sign up for Monitoring of your website today! Get instant notification if your website is ever offline. ByteHosting monitoring monitors your site from multiple points across the globe.
• SSL Certificates Secure your website with SSL Encryption! Protect your data while in transit across the internet.
• Cincinnati Fiber We are able to provide fiber-based internet services to companies in the cincinnati area.
• Quality Website Templates ByteHosting has teamed up with 4Templates.com to provide you with some of the highest quality templates available on the net!
• HyperSubmit! Use HyperSubmit search engine submission services to
make sure your business is one of the websites they can find. HyperSubmit will optimize and submit your website to hundreds of search engines and directories worldwide to help you unleash the full potential of your online business.

|