Forum

CGI execution not allowed for python script

Akash Talole
20 January 2016, 08:23
When I am going to execute python script through Hiawatha webserver it gives CGI execution not allowed error. My hiawatha.conf is
CGIhandler = /usr/bin/python:py

VirtualHost {
ExecuteCGI = yes
TimeForCGI = 60
}

Hugo Leisink
20 January 2016, 12:21
Does /usr/bin/python exist and is Hiawatha allowed to execute it?
Akash Talole
20 January 2016, 16:46
ScriptAlias not working
Akash Talole
22 January 2016, 18:53
import MySQLdb|ImportError: No module named MySQLdb for python script in cgi-bin directory
Hugo Leisink
24 January 2016, 11:28
ScriptAlias works as intended. The last error you mentioned has nothing to do with Hiawatha.
HugoLeisink
24 January 2016, 14:42
<I'm not Hugo> Isn't this vulnerable to impersonation? (Just a test).
Hugo Leisink
24 January 2016, 14:56
Yes, but what is the risk? You are the first one to try this since I have a website (and forum) for Hiawatha. And I get a notification for every message. So, any abusive message will be removed at once.
This topic has been closed.