Jump to content

mod_python


play_

Recommended Posts

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.

 

 

Link to comment
https://forums.phpfreaks.com/topic/172383-mod_python/
Share on other sites

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.)

Link to comment
https://forums.phpfreaks.com/topic/172383-mod_python/#findComment-909031
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/172383-mod_python/#findComment-909159
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.