[mod_python] Apache.msi/Mod_python integration

Graham Dumpleton graham.dumpleton at gmail.com
Mon Sep 14 19:00:38 EDT 2009


Please stop replying to me directly all the time. Use reply-all and keep
discussion on the list.
As to your issue, read:

  http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking

Graham

2009/9/15 EJAZ ALI <ejazshah69 at hotmail.com>

>  Hi,
>
> Your were right. I was going down the wrong line. But I have figured it out
> with the link that you sent. Thanks.
>
> But now when I tried to test it, it isnt working fine.
>
> I added the following lines to the conf file httpd:
>
> LoadModule python_module modules/mod_python.so
>
> <Directory "/xampp/htdocs/test">
>         AddHandler mod_python .py
>         PythonHandler mptest
>         PythonDebug On
> </Directory>
>
> I created a new file and a folder(mptest.py and test
> respectively) in c:\xampp\htdocs\test\mptest.py
>
> mptest.py contains the following lines:
>
> from mod_python import apache
>
> def handler(req):
> req.content_type = 'text/plain'
> req.write("Hello World!")
> return apache.OK
>
> And now when I am pointing my browser to http://localhost/test/mptest.py,
> intead of showing Hello World! it shows the complete lines in the file as it
> is. The exact out put is this which is wrong:
>
> from mod_python import apache
>
> def handler(req):
> req.content_type = 'text/plain'
> req.write("Hello World!")
> return apache.OK
>
> What can I be doing wrong?Kindly help me in this.
>
> Regards,
>
> Ejaz Shah
>
> ------------------------------
> Date: Sat, 12 Sep 2009 19:33:58 +1000
>
> Subject: Re: [mod_python] Apache.msi/Mod_python integration
> From: graham.dumpleton at gmail.com
> To: ejazshah69 at hotmail.com
> CC: mod_python at modpython.org
>
> Did you even find:
>   http://apache.mirror.aussiehq.net.au/httpd/modpython/win/3.3.1/
>
> which is linked off the mod_python site.
>
> That will detect what you can use, especially what version of Python as no
> binaries are available for newer Python versions.
>
> I suspect though that you don't even quite understand what mod_python does
> or how it works. You seem to be wanting to tick off an item on a list and
> aren't really sure what you need.
>
> Graham
>
> 2009/9/12 EJAZ ALI <ejazshah69 at hotmail.com>
>
> Currently I have Apache on my system with following features:
>
>
>    - Apache 2.2.12 (IPv6 enabled) + OpenSSL 0.9.8k
>    - MySQL 5.1.37 + PBXT engine
>    - PHP 5.3.0
>    - phpMyAdmin 3.2.0.1
>    - Webalizer 2.21-02 + GeoIP lite
>    - FileZilla FTP Server 0.9.32
>    - msmtp 1.4.17
>
>
> I want to enable the server so that anyone can login remotely on the server
> and can upload any python script or webpage (which python script).
>
> For that i need to integrate my apache package with mod_python (which is an
> apache module, enabling python ability in the webserver).
>
> I need to know which version of mod python will work fine with the
> specification given above and what are the set of configurations that should
> be taken care of at the time of installing mod_python??
>
> Regards,
>
> Ejaz Shah
>
> ------------------------------
> Date: Sat, 12 Sep 2009 15:57:19 +1000
>
> Subject: Re: [mod_python] Apache.msi/Mod_python integration
> From: graham.dumpleton at gmail.com
> To: ejazshah69 at hotmail.com
>
> Maybe too high a level. More in terms of what msi has to do with mod_python
> and why you need it cause right now don't have any idea what your original
> request was actually asking for.
> Graham
>
> 2009/9/12 EJAZ ALI <ejazshah69 at hotmail.com>
>
>    Hi ,
>
>
> I am trying to come up with a remote website running tool so that a PC can
> be used to run a web server (started in the services or by the user)
> having python ability enabled in the webserver, loaded on the machine and
> operational for all activities of the webserver.
>
> It should allow for file control of several specific file folders
> (scripts, results, and new web pages):
>                               upload for new scripts, or web pages
>                               download test results
>                               delete to remove either scripts, web pages or
> test results
>
>  Add scripts to deliver launching scripts
>
>  Add scripts/webpages to provide downloading of test results
>  Add Scripts/webpages to allow for file administration, etc etc
>
> Kindly guide me.
>
> Regards,
>
> Ejaz Shah
>
>
>
>
>
>
>
>
> > Date: Sat, 12 Sep 2009 08:10:53 +1000
> > Subject: Re: [mod_python] Apache.msi/Mod_python integration
> > From: graham.dumpleton at gmail.com
> > To: ejazshah69 at hotmail.com
> > CC: mod_python at modpython.org
>
> >
> > Now explain what the end outcome you are trying to reach is, rather
> > some little detail about how you think you can achieve it. Then we may
> > be able to help. Not all are guru's on the intricacies of development
> > for Windows platform.
> >
> > Graham
> >
> > 2009/9/12 EJAZ ALI <ejazshah69 at hotmail.com>:
> > > Hi All,
> > >
> > > I have been searching to find out about the compatibel versions of
> > > Apache.msi file and Mo_Python. It has been 2 days and I have not
> succeeded.
> > >
> > > Kindly help me. If there is any appropriate site showing all proper
> settings
> > > for the two kindly let me know.
> > >
> > > Regards,
> > >
> > > Ejaz Shah
> > >
> > > ________________________________
> > > check out the rest of the Windows Live™. More than mail–Windows Live™
> goes
> > > way beyond your inbox. More than messages
> > > _______________________________________________
> > > Mod_python mailing list
> > > Mod_python at modpython.org
> > > http://mailman.modpython.org/mailman/listinfo/mod_python
> > >
> > >
>
> ------------------------------
> See all the ways you can stay connected to friends and family<http://www.microsoft.com/windows/windowslive/default.aspx>
>
>
>
> ------------------------------
> See all the ways you can stay connected to friends and family<http://www.microsoft.com/windows/windowslive/default.aspx>
>
>
>
> ------------------------------
> With Windows Live, you can organize, edit, and share your photos.<http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20090915/f5c26531/attachment.html


More information about the Mod_python mailing list