• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Problem running Perl / CGI

igoldman

Regular Pleskian
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 ?
 
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.
 
Hi , give us more details.

Also check which Perl modules do you need ?

There is possibility to install additional perl modules under windows platform.
 
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 :(
 
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
 
Back
Top