From 7a28fa5875bec5dcb6736fb58d95b939e85f0e5e Mon Sep 17 00:00:00 2001 From: TOW Date: Sat, 30 Mar 2019 23:34:13 -0300 Subject: Forzando el uso de Python2 y CGI regular --- cgi/.htaccess | 3 +++ cgi/weabot.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cgi/.htaccess b/cgi/.htaccess index 97a4f17..c698f95 100644 --- a/cgi/.htaccess +++ b/cgi/.htaccess @@ -1,6 +1,9 @@ AddHandler cgi-script .py Options +ExecCGI +# Force regular CGI (non-FastCGI) +SetEnv FCGI_FORCE_CGI Y + # Uncomment if you want pretty URL (ie cgi/post) #RewriteEngine On #RewriteBase /cgi/ diff --git a/cgi/weabot.py b/cgi/weabot.py index 3bcef7b..c38a972 100755 --- a/cgi/weabot.py +++ b/cgi/weabot.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # coding=utf-8 # Remove the first line to use the env command to locate python -- cgit v1.2.1-18-gbd029