thanks for reading my email. well, I did not see any obvious error from the apache error log. Here are the last few lines of the apache error.log
[Mon Apr 02 20:44:14 2012] [warn] mod_wsgi: Compiled for Python/2.7. [Mon Apr 02 20:44:14 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. [Mon Apr 02 20:44:14 2012] [notice] Apache/2.2.22 (Win32) mod_wsgi/3.3 Python/2.7.2 configured -- resuming normal operations [Mon Apr 02 20:44:14 2012] [notice] Server built: Jan 28 2012 11:16:39 [Mon Apr 02 20:44:14 2012] [notice] Parent: Created child process 2760 [Mon Apr 02 20:44:15 2012] [warn] mod_wsgi: Compiled for Python/2.7. [Mon Apr 02 20:44:15 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. [Mon Apr 02 20:44:15 2012] [notice] Child 2760: Child process is running [Mon Apr 02 20:44:15 2012] [notice] Child 2760: Acquired the start mutex. [Mon Apr 02 20:44:15 2012] [notice] Child 2760: Starting 64 worker threads. [Mon Apr 02 20:44:15 2012] [notice] Child 2760: Starting thread to listen on port 80. thang On Mon, Apr 2, 2012 at 7:33 AM, Mengu <[email protected]> wrote: > hi thang, > > is there anything in your error log? > > On Apr 2, 1:05 am, Thang Nguyen <[email protected]> wrote: >> Hi, >> >> I am running into a problem in deploying a simple TG2.1.4 application >> to Apache via mod_wsgi. My OS is Windows XP. >> >> Background: >> ----------------- >> 1) This is a very simple TG2 website (taken directly from TG2 >> website - "example"). >> 2) I have Apache 2.2, mod_wsgi installed and worked fine together >> (in fact, I was able to use mod_wsgi with other python web framework >> (web.py)) >> 3) The TG2 app (example) itself works fine in virtualenv (e.g >> paster serve production.ini) >> 4) I was able to use modwsgi_deploy helper script and did all config >> changes according to README.txt. In fact, I was able to run the >> test.wsgi successfully without any problem. >> >> example >> |-- apache >> | |-- README.txt >> | |-- example >> | |--example.wsgi >> | |--test.wsgi >> >> However, here is the problem. >> When I run the "example" app, (e.g. http://localhost/example), it >> never returns, the page seems busy doing something (or just hangs). >> NOTE: I do NOT have any problem with running test.wsgi >> (e.g.http://localhost/test) >> >> Here is my example.wsgi: >> ------------------------------------ >> >> import sys >> prev_sys_path = list(sys.path) >> >> import site >> site.addsitedir('C:/TG2APP/tg2env/Lib/site-packages') >> >> new_sys_path = [] >> for item in list(sys.path): >> if item not in prev_sys_path: >> new_sys_path.append(item) >> sys.path.remove(item) >> sys.path[:0] = new_sys_path >> >> import os, sys >> sys.path.append('C:/TG2APP/example') >> os.environ['PYTHON_EGG_CACHE'] = 'C:/TG2APP/example/python-eggs' >> >> from paste.deploy import loadapp >> application = loadapp('config:C:/TG2APP/example/production.ini') >> >> ------------------------------------ >> Any pointer/help is really appreciated. >> >> Thanks >> Thang > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

