Not able to Run CGI/Perl scripts on my Windows Server 2003!

Discussion in 'Site & Server Administration' started by Freewebspace, Jun 23, 2008.

  1. #1
    I have a Windows 2003 dedicated Server with Plesk Control panel


    The problem is I am not able to execute CGI scripts(Perl/Python/CGI) on it


    when I try to execute on it

    I get these errors:


    Access denied to invalid credentials 401 Error

    Error is 401.3 ACL restrictions....

    what I tried is


    I have tried to change IIS settings for IUSR_name

    and also I tried editing in httpdconf file for CGI settings and restarted the server...

    but all of no use

    Note:I am executing these scripts in CGI-BIN folder and outside of it
     
    Freewebspace, Jun 23, 2008 IP
  2. azlanhussain

    azlanhussain Active Member

    Messages:
    640
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I'm not familiar with Windows server but very much fluent with Perl in Linux web server environment.

    Have you tried looking at the error & access log? In Apache server when such things happen it will clearly identify the problem.

    Normally such error caused by:
    1) Unauthorized file (.cgi) access/execution from web server
    2) Perl compiler linking not properly set in web server settings
    3) Missing required libraries as needed by the engine.

    Normally to identify what is the reason to those problem, and if there's no solution even after checking the logs, try running a simple "hello world" Perl script (.cgi) from the browser. If even with a basic script it still not working, then it's surely due to your web server Perl settings...

    Hope that helps,

    cheers,
     
    azlanhussain, Jun 23, 2008 IP
  3. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #3

    I tried running a simple perl script but it's of no use...
     
    Freewebspace, Jun 23, 2008 IP
  4. azlanhussain

    azlanhussain Active Member

    Messages:
    640
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #4
    In that case you need to check your either webserver settings or Perl compiler installed in your webserver. Just in case try running perl script crom command prompt also. (ie. perl test.cgi) This will help you to identify if your Perl compiler installed is in good condition.

    Hope that helps,
     
    azlanhussain, Jun 24, 2008 IP