the following problem occurs on a SLES11 apache2 web server with
PHP/ORACLE modules:
In order to configure PHP/OCI8 modules, we need to set an environment
variable:
TNS_ADMIN=/etc
This helps the OCI8 module to find its configuration files.
This must be set before the web server starts.
After many failures (other options like putting it in profile.local do
NOT work),
the only working solution for us is to append the following line in
/etc/sysconfig/apache2 manually:
export TNS_ADMIN=/etc
This works fine, the apache environment is set correctly,
however, the only problem is that after the next YAST Konfiguration
warns about
overwrites and this will be lost.
Is there any other place where we can put this in safely without
hassles?
the following problem occurs on a SLES11 apache2 web server with
PHP/ORACLE modules:
In order to configure PHP/OCI8 modules, we need to set an environment
variable:
TNS_ADMIN=/etc
This helps the OCI8 module to find its configuration files.
This must be set before the web server starts.
After many failures (other options like putting it in profile.local do
NOT work),
the only working solution for us is to append the following line in
/etc/sysconfig/apache2 manually:
export TNS_ADMIN=/etc
This works fine, the apache environment is set correctly,
however, the only problem is that after the next YAST Konfiguration
warns about
overwrites and this will be lost.
Is there any other place where we can put this in safely without
hassles?
Many thanks in advance,
kind regards
stagyy
[/color]
Hi
If it works then just add the format after the last entry;
## Type: string
## Default: "/etc"
## ServiceRestart: apache2
#
# This variable helps the OCI8 module to find its configuration files.
#
TNS_ADMIN="/etc"
Then run the command;
SuSEconfig --module sysconfig
You should now see it appear in YaST /etc/ sysconfig editor Network →
WWW.