enviornment:


Linux x86_64 x86_64 x86_64 GNU/Linux
nginx 1.2.0
uwsgi-0.9.9.3
django 1.2.5


uwsgi configure:
<uwsgi>
  <socket>127.0.0.1:8082</socket>
  <listen>10240</listen>
  <processes>8</processes>
  <max-requests>2048000</max-requests>
  <master>true</master>
  <pidfile>/usr/local/nginx/logs/uwsgi.pid</pidfile>
  <module>uwsgi</module>
  <pythonpath>/home/myproject</pythonpath>
  <profiler>true</profiler>
  <memory-report>true</memory-report>
  <enable-threads>true</enable-threads>
  <logdate>true</logdate>
  <limit-as>256</limit-as>
  <env>ORACLE_HOME=/usr/lib/oracle/10.2.0.4/client64</env>
  
<env>LD_LIBRARY_PATH=.:/usr/lib/oracle/10.2.0.4/client64/lib:/usr/local/lib</env>
 
<env>PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin</env>
</uwsgi>



the .bash_profile configure:
LD_LIBRARY_PATH=.:/usr/lib/oracle/10.2.0.4/client64/lib::/usr/lib/oracle:/usr/local/lib
ORACLE_HOME=/usr/lib/oracle/10.2.0.4/client64


uwsgi startup is ok,but access web report error:


InterfaceError at /index.htmlUnable to acquire Oracle environment handleRequest 
Method:GETRequest URL:http://127.0.0.1:8081/index.htmlDjango 
Version:1.2.5Exception Type:InterfaceErrorException Value:Unable to acquire 
Oracle environment handleException 
Location:/usr/local/lib/python2.5/site-packages/django/db/backends/oracle/base.py
 in _cursor, line 411Python Executable:/usr/local/bin/uwsgiPython Version:2.5.4 


when i used fastcgi is ok,so is the uwsgi cause problems,Ask everybody to help 
me.




thx!
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to