Results 1 to 2 of 2

Thread: Perl/CGI Problem

  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    1
    cPanel/WHM Access Level

    Root Administrator

    Default Perl/CGI Problem

    Hi all, sorry if posted in wrong section, not sure where this should go...

    Try as I may I cannot get any per scripts to run on my server. I have tried them with various permissions, inside and outside the cgi-bin folder but each time I get a 501 Internal Server Error message.

    Please see the following urls as an example hxxp://ubumama.net/1.pl and hxxp://ubumama.net/1.pl and hxxp://ubumama.net/cgi-bin/manage.pl

    my error logs pulled from ...apache/logs/ are thus

    [2012-07-10 17:45:34]: uid: (501/nuclear) gid: (501/nuclear) cmd: 1.pl
    [2012-07-10 17:45:53]: uid: (501/nuclear) gid: (501/nuclear) cmd: 1.pl
    [2012-07-10 17:46:09]: uid: (501/nuclear) gid: (501/nuclear) cmd: 1.pl
    [2012-07-10 17:46:09]: file has no execute permission: (/home/nuclear/public_html/ubumama.net/1.pl)
    [2012-07-10 17:46:27]: uid: (501/nuclear) gid: (501/nuclear) cmd: 1.pl
    [2012-07-10 17:46:27]: file has no execute permission: (/home/nuclear/public_html/ubumama.net/1.pl)
    [2012-07-10 17:46:55]: uid: (501/nuclear) gid: (501/nuclear) cmd: manage.pl
    [2012-07-10 17:47:18]: uid: (501/nuclear) gid: (501/nuclear) cmd: manage.pl
    [2012-07-10 17:48:01]: uid: (501/nuclear) gid: (501/nuclear) cmd: 1.pl
    [2012-07-10 17:48:01]: file has no execute permission: (/home/nuclear/public_html/ubumama.net/1.pl)
    [2012-07-10 17:48:02]: uid: (501/nuclear) gid: (501/nuclear) cmd: manage.pl
    [2012-07-10 17:48:35]: uid: (501/nuclear) gid: (501/nuclear) cmd: 1.pl
    [2012-07-10 17:48:35]: file has no execute permission: (/home/nuclear/public_html/ubumama.net/1.pl)
    [2012-07-10 17:50:18]: uid: (501/nuclear) gid: (501/nuclear) cmd: manage.pl
    [2012-07-10 18:01:13]: uid: (501/nuclear) gid: (501/nuclear) cmd: whmredirect.cgi
    [2012-07-10 18:01:47]: uid: (501/nuclear) gid: (501/nuclear) cmd: 1.pl
    [2012-07-10 18:02:14]: uid: (501/nuclear) gid: (501/nuclear) cmd: 1.pl

    I fixed the permissions problem, had a file set as 644 instead of 755 but it hasn't made any difference.

    I have played about in whm with Configure PHP and SuExec and every combination I try continues to yield no success. My current config is:

    PHP Code:
    php.conf updated to:

    # This file was automatically generated by the Cpanel PHP Configuration system
    # If you wish to change the way PHP is being handled by Apache on your system,
    # use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
    #
    # Manual edits of this file will be lost when Apache is updated.


    # CGI configuration for PHP5
    Action application/x-httpd-php5 /cgi-sys/php5
    AddType application
    /x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

    # End of autogenerated PHP configuration.


    Updating user configurable PHP settings.
    [
    inforecursion depth is set to2
    Restarting Apache 

    If anyone could offer an opinion on this I would be most grateful. I have been searching the forum and the web for days but still not solution. My server is a dedicated server and cpanel is not a supported panel so they cannot help.


    Many thanks

    Carl

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Perl/CGI Problem

    Please stat the file and let us see the output:

    Code:
    stat 1.pl
    It definitely needs to be 755 file permissions (or chmod +x 1.pl after you've created it). I don't know that user's specific UID and GID, so stating will give us all that information.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. perl/cgi errors
    By ckh in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 02-23-2011, 12:29 PM
  2. Perl cgi's now need -w or -U to run
    By jcarey in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 08-25-2006, 07:45 PM
  3. cgi & perl problem
    By shann in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-16-2006, 08:01 AM
  4. Securing PERL/CGI
    By ksingh in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 09-16-2003, 01:33 PM
  5. perl-demployer.cgi
    By marinanewman in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 12-29-2002, 08:38 PM