Hi Paul,

Many thanks for your suggestion!
Actually it was not the right way to solve the problem, but it led me to this article:
http://unix.stackexchange.com/questions/51992/setting-up-enviroment-variables-in-ubuntu
"[the user that runs apache] is a "system account", it has no default shell or bash environment". What the article suggests, which is what I ended up doing, is to use "SetEnv" (http://httpd.apache.org/docs/2.2/env.html) in the apache configuration file; this solved my issue. I still have no clue why setting the environment variables in /etc/apache2/envvars didn't work (all three variables were even visible in php)!

Cheers,

Grégori


On 18.09.2014 19:51, Paul Emsley wrote:
On 18/09/14 17:57, Grégori Gerebtzoff wrote:
Now on the apache server, I added the same three lines to the
/etc/apache2/envvars file:
export RDBASE=/opt/RDKit_2014_03_1
export LD_LIBRARY_PATH=$RDBASE/lib
export PYTHONPATH=$RDBASE:$PYTHONPATH

Importing rdkit gives me the "ImportError: No module named rdkit" error;
looking at the environment variables from within python, only
LD_LIBRARY_PATH:    /opt/RDKit_2014_03_1/lib
is available.


------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to