play_ Posted August 29, 2009 Share Posted August 29, 2009 First i would like to mention that i know i shouldn't be using mod_python, but it have no choice as it's what my shared host provides. Second, They say i need to put .py files in /cgi-bin/. Is this correct? I thought putting .py files in the cgi-bin was the old way of doing things, and one of the feature of mod_python is so that you wouldn't have to run your scripts through a cgi. Quote Link to comment https://forums.phpfreaks.com/topic/172383-mod_python/ Share on other sites More sharing options...
corbin Posted August 29, 2009 Share Posted August 29, 2009 Hrmmm, unless they are running Python in CGI mode (which they most likely aren't since why would they be using mod_python), then you should be able to put python files anywhere. That is, of course, unless they have restricted via commands in httpd.conf or elsewhere where py files are allowed. (Which wouldn't make sense, but hey, some hosts are crazy.) Quote Link to comment https://forums.phpfreaks.com/topic/172383-mod_python/#findComment-909031 Share on other sites More sharing options...
trq Posted August 30, 2009 Share Posted August 30, 2009 First i would like to mention that i know i shouldn't be using mod_python, but it have no choice as it's what my shared host provides. Why would you say that? mod_python is a great tool. mod_python is exactly the same as mod_php in that *.py files can be placed anywhere and are parsed as python. This is of course unless they have setup restirctions such as those that Corbin mentioned. Quote Link to comment https://forums.phpfreaks.com/topic/172383-mod_python/#findComment-909159 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.