2008/8/13 Per Jessen
Ciro Iriarte wrote:
Ok, going the non elegant route then... :D
Hi Ciro
I've been doing some experimenting this morning, and setting environment variables in /etc/sysconfig/apache2 works just fine.
I've just added your three lines to the end of /etc/sysconfig/apache2 like this:
ORACLE_HOME=/opt/oracle/instantclient_11_1 TNS_ADMIN=/opt/oracle/instantclient_11_1/network/admin LD_LIBRARY_PATH=/opt/oracle/instantclient_11_1
To ascertain whether they've been properly set, I added
logger -i act=$1 oracle=$ORACLE_HOME
to /etc/init.d/apache2
just after
. /usr/share/$pname/load_configuration export ${!APACHE_*}
Check your /var/log/messages - it's working on my system. What I don't know is if those variables are also available to the oci8 module once it's loaded.
/Per Jessen, Zürich
Hi, tried your suggestion today, but it doesn't work. The module is not loaded at all when I comment out the variables on the init script. There should be a better way to integrate oci8 module.. For the time being I'll keep the modified init script and track the changes on future updates :s Regards, Ciro N�����r��y隊Z)z{.�ﮞ˛���m�)z{.��+�Z+i�b�*'jW(�f�vǦj)h���Ǿ��i�������