The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cgi-bin / perl won't run

Discussion in 'General Discussion' started by netnexi, Apr 15, 2004.

  1. netnexi

    netnexi Member

    Joined:
    Dec 9, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Ok have searched here and found all the relevant threads...
    But...
    Can't get any perl scripts to run... period

    have tried:
    (permissions - of course)

    suExec - disabled

    rebuilt Apache

    edited httpd.conf

    changed from STABLE to CURRENT etc

    So I'm at a loss... really need to get perl scripts running ASAP

    Running FreeBSD 5.1...

    Can anyone point me in the right direction?
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    What kind of error messages do you receive when you attempt to execute these scripts? What do your error logs tell you? Have you tried executing these scripts from command line (i.e. perl -w script.cgi)?
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Do you have the line

    use CGI::Carp qw(fatalsToBrowser);

    near the beginning of the script?

    I use it all the time to help figure out problems. Also, in shell, run

    perl -c /path/to/script

    to test the script.


    If it's a server setup problem, that may not help, but you never know.
     
Loading...

Share This Page