<div dir="ltr">Hi,<div><br></div><div style>I'm setting up a nginx + spawn-fcgi + mapserver centos box.I've installed everything. The web site (nginx) is working, Oracle is working fine and returning spatial data, shp2img generates pictures from Oracle data well, and everything just seem working well. Unless I put them all together.</div>
<div style><br></div><div style>Requesting map image from the box in browser and I get this:</div><div style>msDrawMap(): Image handling error. Failed to draw layer named 
'BLD_BLDG'.
msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI 
Handlers. Connection failure. Check the connection string. Error: . <br></div><div style><br></div><div style>I've tried strace and checked the oracle trace log, and found this in the oracle log:</div><div style><div>
<msg time='2013-05-22T14:15:00.181+08:00' org_id='oracle' comp_id='clients'</div><div> type='UNKNOWN' level='16' host_id='<a href="http://55.gz.rd.mapking.com">55.gz.rd.mapking.com</a>'</div>
<div> host_addr='127.0.0.1'></div><div> <txt>Unable to find environment variable: ORACLE_HOME</div><div> </txt></div><div></msg></div><div><br></div><div style>I've change the mapserver process to use oracle user, and I've then checked the spawn-fcgi process environment at /proc/ directory and see that there are variables in it. I've even tried adding ORACLE_HOME variable to /etc/profile, but still can't get it working.</div>
<div style><br></div><div style>What is wrong? Or what have I missed?</div><div style><br></div><div style>P.S. I could have post the whole strace log here, but it's too long so if anyone really need it to get a clue, just give a mail to me.</div>
</div></div>