1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Problem running Perl / CGI

Discussion in 'Plesk for Windows - 8.x and Older' started by igoldman, Feb 1, 2006.

  1. igoldman

    igoldman Regular Pleskian

    26
    23%
    Joined:
    Sep 14, 2004
    Messages:
    212
    Likes Received:
    0
    Hello to all members ,

    I would like to run cgi / perl scripts.

    in which folder I need to host the files ?

    currently I see that the following is installed in my server :

    Perl v5.8.6 built for MSWin32-x86-multi-thread

    when I try to run cgi file then I get the following error :

    502 Bad Gateway
    Web server received an invalid response while acting as a gateway or proxy server

    someone knows this issue ?
    someone know how to fix it ?
     
  2. Pavluha

    Pavluha Guest

    0
     
    The error can be caused by the following:
    502 Bad Gateway. Web server received an invalid response while acting as a gateway or proxy. You receive this error message when you try to run a CGI script that does not return a valid set of HTTP headers.
    502.1 CGI application timeout.
    502.2 Error in CGI application.
     
  3. Just4Clicks

    Just4Clicks Guest

    0
     
    Has anyone resolved the "Bad Gateway" error?
     
  4. igoldman

    igoldman Regular Pleskian

    26
    23%
    Joined:
    Sep 14, 2004
    Messages:
    212
    Likes Received:
    0
    Hi , give us more details.

    Also check which Perl modules do you need ?

    There is possibility to install additional perl modules under windows platform.
     
  5. Just4Clicks

    Just4Clicks Guest

    0
     
    Plesk for Windows 7.5.6
    PHP 4.4.3 (cgi-fcgi) (built: Jul 31 2006 23:25:09)
    Perl v5.8.6 built for MSWin32-x86-multi-thread

    Users are having issues uploading files in Nuke/Mambo sites...they are getting the Bad Gateway error. I've upgraded PHP to 4.4.3 which some have said fixes the problem. I have changed all php scripts to use curl instead of fopen...still have an issue :(
     
  6. arisd

    arisd Basic Pleskian

    23
    90%
    Joined:
    Jan 31, 2007
    Messages:
    60
    Likes Received:
    0
    I thing most common problem with this error is folder or file permission.

    Put this line in perl script file after "#!/usr/bin/perl":

    use CGI::Carp qw(fatalsToBrowser);

    This will help you get clearer message of what is wrong when you access your webpage

    Aris, www.slohost.net
     
Loading...