Quantcast
Channel: Setting environment variables in mod_wsgi for Django - Server Fault
Viewing all articles
Browse latest Browse all 5

Answer by Graham Dumpleton for Setting environment variables in mod_wsgi for Django

$
0
0

Since you built Apache from source code, you could have added to the 'envvars' file in same directory as 'httpd' executable the lines:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/some/path/to/oracle/lib/directoryexport LD_LIBRARY_PATH

The LD_RUN_PATH method when compiling mod_wsgi should also work, but since you don't show the exact methods you used, ie., commands executed, to try and get that work, can't comment on why it didn't work. It would be of the form though:

make distclean./configureLD_RUN_PATH=some/path/to/oracle/lib/directory makesudo make install

So, set LD_RUN_PATH in same line when running 'make'. If you set it seperately as environment variable before running 'make', you must 'export' the environment variable else make will not pass it through to compiler.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>