mod_python cherrypy

View: New views
3 Messages — Rating Filter:   Alert me  

mod_python cherrypy

by jerome mariette :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm facing a probleme trying to run cherrypy behind Apache (using Apache2).
I basicly didn't even succed to make work the exemple provided here: http://www.cherrypy.org/wiki/ModPython

I saved myapp.py into my docucuments (/home/user/myapp.py)

so into my apache2 config file (which is apache2.conf in /etc/apache2/apache2.conf, I figured out with  sudo /usr/sbin/apache2 -V | grep .conf that my apache2 config file was apache2.conf and not httpd.conf) I added the following:

DocumentRoot "/"
Listen 8080
LoadModule python_module /usr/lib/apache2/modules/mod_python.so

<Location "/">
PythonPath "sys.path+['/home/user']" I tryed as well PythonPath "sys.path+['/home/user/myapp.py']"
SetHandler python-program
PythonHandler cherrypy._cpmodpy::handler
PythonOption cherrypy.setup myapp::setup_server
PythonDebug On
</Location>
each time I got "Unrecoverable error in the server."


I tryed to access the page http://127.0.0.1:8080/ after and before lunching the myapp.py script without any difference :'(

What am I doing wrong,

thx for your help
Jerome

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: mod_python cherrypy

by Robert Brewer-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


jerome mariette wrote:
> I'm facing a probleme trying to run cherrypy behind Apache (using
Apache2).
> I basicly didn't even succed to make work the exemple provided here:
> http://www.cherrypy.org/wiki/ModPython

You were probably hitting the problem Lakin just fixed in
http://cherrypy.org/changeset/1982. Please upgrade/patch and try again.


Robert Brewer
fumanchu@...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: mod_python cherrypy

by jerome mariette :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for the answer :)
so I did patch it and I have the same result: "Unrecoverable error in the server."

I figured out the _cpmodpy.py file is quite different from the version on the trunk and from the last release. Would there is something else wrong ?

thanks for your help

Jerome







2008/6/17 Robert Brewer <fumanchu@...>:

jerome mariette wrote:
> I'm facing a probleme trying to run cherrypy behind Apache (using
Apache2).
> I basicly didn't even succed to make work the exemple provided here:
> http://www.cherrypy.org/wiki/ModPython

You were probably hitting the problem Lakin just fixed in
http://cherrypy.org/changeset/1982. Please upgrade/patch and try again.


Robert Brewer
fumanchu@...





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price