• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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