Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.