Results 1 to 3 of 3

Thread: CGI path problem - host no help

  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    12

    Default CGI path problem - host no help

    Cannot execute scripts. Get 500 error.
    I'm setting path exactly as indicated on cpanel page and chmod 755.

    Crediblehost support no help.

    Is there a simple utility that can be uploaded to the root directory that allows me to set a path in the script so as to test the path and/or to test if perl has been configured correctly for my hosted account?

    Thx.

  2. #2
    OCX
    OCX is offline
    Member
    Join Date
    Sep 2003
    Posts
    246

    Default

    in the cgi file..make sure your path to perl is set

    its either in these 2 places normally

    /usr/bin/perl

    or
    /usr/local/bin/perl

    put cgi scripts in your cgi-bin folder

  3. #3
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Add this:

    use CGI::Carp qw(fatalsToBrowser);

    near the beginning of the script. It will print out the problems to the browser, usually.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads

  1. Replies: 5
    Last Post: 05-19-2011, 07:16 AM
  2. CGI Path Not Found When Using SUEXEC
    By vince512 in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 07-12-2009, 03:05 PM
  3. Path of cgi bin
    By salvation67 in forum New User Questions
    Replies: 5
    Last Post: 07-19-2007, 02:55 AM
  4. CGI-Scripts Path and Permissions
    By kruptof in forum New User Questions
    Replies: 3
    Last Post: 10-13-2006, 03:52 AM
  5. questions on CGI path, resolver setup, nameserver sharing
    By travistee in forum New User Questions
    Replies: 0
    Last Post: 06-01-2006, 04:24 PM