jlar310 at gmail.com
Tue Aug 26 16:33:16 UTC 2008
On Tue, Aug 26, 2008 at 10:11 AM, Mad Unix <madunix at gmail.com> wrote:
> Can I do the following
> vi /etc/sysconfig/httpd
> # Configuration file for the httpd service.
> # The default processing model (MPM) is the process-based
> # 'prefork' model. A thread-based model, 'worker', is also
> # available, but does not work with some modules (such as PHP).
> # The service must be stopped before changing this variable.
> # To pass additional options (for instance, -D definitions) to the
> # httpd binary at startup, set OPTIONS here.
> # By default, the httpd process is started in the C locale; to
> # change the locale in which the server runs, the HTTPD_LANG
> # variable can be set.
> NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256; export NLS_LANG
> NLS_DATE_FORMAT=dd-mm-yyyy ; export NLS_DATE_FORMAT
> export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32
Yes, that is the right way. But one point that was not clearly made is
that you probably ALSO need to add to your apache configuration:
PassEnv ORACLE_BASE ORACLE_HOME [etc.]
This make the values available to PHP.
More information about the CentOS