Computer House Home PageList of products and servicesDrivers, Utilities, Info and More!Learn more about Computer House

 How do I troubleshoot my cgi scripts?

 
Answer
 
Choosing the Check Perl scripts for common errors option from the control panel, brings up the Perl checker utility. This utility can check and automatically correct your Perl CGI scripts for some common errors. A form will be displayed prompting you for the full path and filename of the Perl CGI script to check.
  1. From the cpanel, select the "Perl Script error checker" option from the "Manage Advanced Options" menu.
  2. Enter the name and the full path to the script:
    (This is usually: /www/cgi-bin/name-of-script.pl since most scripts go into the CGI-BIN)

  3. Clicking the Submit button will run the Perl checker on the specified Perl script.
  4. The Perl checker runs the following tests (and automatically corrects some of the common errors that may be found or provide some tips on correcting the problem). If an error is found, the line of the error(s) will be displayed to help you track the problem.

    • TEST 1: script and permissions (tests for a valid script and if proper permissions are set)

    • TEST 2: script file format (tests for proper script format)

    • TEST 3: check perl path (tests to see if Perl path called correctly)

    • TEST 4: perl syntax (tests for common Perl syntax [coding])


  5. If there are any problems with any test, the error will be displayed after that test and any errors that could/couldn't be automatically fixed.

  6. PLEASE NOTE! DO NOT use the Perl checker on C/C++ compiled CGI scripts (like the Count.cgi or Whois.cgi scripts in your CGI-BIN)! The Perl checker has been known to corrupt compiled scripts and render them useless.
Back to Index

The Computer House Technology Center, Inc.
740 South Sixth Avenue
Galloway, New Jersey 08205
(800) 372-6834 --- FAX: (609) 748-9776

Copyright © 2001 Computer House, Inc. All Rights Reserved.