[mod_python] (no subject)

ryan luna ryan_gm at sbcglobal.net
Wed Jul 18 02:12:49 EDT 2007


hmm yeah its late, /mpinfo does show alot of info.
Your not seeing the full code in my replys but im seeing it in my emails

Graham Dumpleton <graham.dumpleton at gmail.com> wrote: If you went to /mptest I wouldn't be surprised that it was not found
as that isn't the URL I told you to use. I said to use /mpinfo and
that should have been obvious from the configuration example.

Also, whatever email program you are using keeps deleting parts of the
examples I send you when they appear in your responses. Turn off your
HTML editing/rendering in your email program. You may well find that
if you read the original raw text of the messages that you will find
other bits of configuration which you aren't even putting in your
files. This may well account for why you can't get anything working.

Anyway, when you can get that /mpinfo test handler example working and
have read about Apache configuration then come back to the list. I
though seem not be able to help you, so if you are lucky someone else
with more patience than me will keep going.

Graham

On 18/07/07, ryan luna  wrote:
> Alright ill read the link you sent,
> But i did add that line to the config file and i went to /mptest and it was
> not found.
>
> Graham Dumpleton  wrote:
>  I told you to do something which was unrelated to the mptest.py file.
> I asked you to add to your main Apache configuration file:
>
>
>  SetHandler mod_python
>  PythonHandler mod_python.testhandler
>
>
> You should then have restarted Apache. When you access your web server
> from a web browser using the URL /mpinfo, this should have the result
> of triggering the special inbuilt mod_python handler called
> mod_python.testhandler. The Location directive in this case has got
> nothing to do with your files and directories that exists on disk, it
> matches the URL directly. I wanted you to at least get this working so
> I knew whether you knew enough about Apache configuration so that I
> had some idea that my other instructions made any sense to you and
> that you were following them correctly. This Location based test
> handler check was a simple as I could get and wouldn't depend on other
> things you could get wrong and not manage to correct such as file and
> user permissions. If you weren't able to even get this going, then I'd
> have to consider that I wasting my time until you went and actually
> read the Apache documentation and learned how to configure and use
> Apache, something which I still suggest you now go do.
>
> Graham
>
> On 18/07/07, ryan luna wrote:
> > /mpinfo is a .py file...meaning when i got to /mpinfo it shows the source
> > code i thought iv made this clear -.-
> >
> > Graham Dumpleton wrote:
> > If you don't understand what a Location directive is and that to
> > access /mpinfo meant to access from it your web browser, I would very
> > much suggest that before even trying to use mod_python that you learn
> > something about Apache and configuring it first. I suggest starting
> > with the following:
> >
> > http://httpd.apache.org/docs/2.2/
> >
> > Without you having some understanding of Apache configuration we could
> > go on forever suggesting you try certain things, yet never even be
> > certain that you are doing it correctly, and probably never find a
> > solution either.
> >
> > Graham
> >
> > On 18/07/07, ryan luna wrote:
> > > You mean putting those lines to the httpd.conf and running the
> mpinfo.py?
> > > If so this is what i get
> > > Traceback (most recent call last):
> > > File "C:\Scripts\mptest.py", line 1, in
> > > from mod_python import apache
> > > File
> > > "C:\Python25\Lib\site-packages\mod_python\apache.py",
> > line
> > > 30, in
> > > import _apache
> > > ImportError: No module named _apache
> > >
> > > Graham Dumpleton wrote:
> > > What happens if you use add this configuration:
> > >
> > >
> > > SetHandler mod_python
> > > PythonHandler mod_python.testhandler
> > >
> > >
> > > Then access '/mpinfo'.
> > >
> > > Do you get lots of mod_python debug info?
> > >
> > > Graham.
> > >
> > > On 18/07/07, ryan luna wrote:
> > > > I just tried that and theres no change.
> > > > The fact that im using WAMP instead of straight up Apache wouldn't
> have
> > > > anything to do with it would it?
> > > >
> > > > Graham Dumpleton wrote:
> > > > Hmmm, you never mentioned you were on a Windows box.
> > > >
> > > > Did you try what was previously suggested of putting the mod_python
> > > > configuration stuff in an appropriate Directory directive in your main
> > > > Apache configuration file?
> > > >
> > > >
> > > > PythonHandler mptest
> > > > AddHandler mod_python .py
> > > > PythonDebug On
> > > >
> > > >
> > > > Graham
> > > >
> > > > On 18/07/07, ryan luna wrote:
> > > > > Im running the latest python version, mod_python 3.3.1, and latest
> > > Apache.
> > > > > Heres my apache config file
> > > > > http://www.megaupload.com/?d=OKNGKO7Q
> > > > > Still having trouble figuring out why apache still shows the source
> > code
> > > > of
> > > > > .py files instead of the code output.
> > > > >
> > > > > _______________________________________________
> > > > > Mod_python mailing list
> > > > > Mod_python at modpython.org
> > > > >
> > >
> http://mailman.modpython.org/mailman/listinfo/mod_python
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070717/a8a7648b/attachment-0001.html


More information about the Mod_python mailing list