Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    63

    Default CGI > Error 500

    Hello
    I've got a little problem, but it's really annoying. Everytime I run a CGI script, I get an error 500, any idea were this could come from ?

    Thanks in advance

  2. #2
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    have u tested upon the script locally; are there any errors on this script ? and also u will need tocheck on the permissions on this script.

  3. #3
    Member
    Join Date
    Dec 2004
    Posts
    7

    Default

    Try chmod to 755 instead of 777 - worked for me.

  4. #4
    Member
    Join Date
    Nov 2004
    Posts
    63

    Default

    It does that for all the scripts.
    I tried chmodding, doesn't arrange.

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    What permissions do you have on your cgi-bin directory itself? That needs to be 755. You could also try:

    /scripts/enablefileprotect

    You should also be checking for errors in:

    /etc/httpd/logs/error_log
    /etc/httpd/logs/suexec_log
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

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

    Default

    Quote Originally Posted by DjMiX
    Hello
    I've got a little problem, but it's really annoying. Everytime I run a CGI script, I get an error 500, any idea were this could come from ?

    Thanks in advance

    in your script open it and look at the very top line
    make sure your path to perl is correct

    #!/usr/bin/perl OR /usr/local/bin/perl

    to find out what path for sure..open up ssh and type
    "which perl" (without the quotes of coarse)

  7. #7
    Member sleddog's Avatar
    Join Date
    Jun 2004
    Location
    Labrador, Canada
    Posts
    44

    Default

    If you're uploading these scripts from a Windows box, make sure they are uploaded in ASCII mode, not binary. The line endings are different between Windows & Linux and will cause errors when a script is executed.

Similar Threads & Tags
Similar threads

  1. Error with cgi-bin 500 internal server error
    By approx in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 03-12-2009, 12:13 AM
  2. Cgi 500 error
    By Avg-Joe in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-02-2005, 11:29 AM
  3. all customer run cgi error 500
    By promak in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-09-2003, 06:11 PM
  4. 500 error on all cgi scripts all domains
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-28-2003, 05:27 PM
  5. 500 server error with cgi
    By maxhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-11-2002, 12:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube