[CentOS] apache

Tue Aug 26 07:18:18 UTC 2008
John R Pierce <pierce at hogranch.com>

Mad Unix wrote:
> How can I pass the following Oracle 10g variables to my apache?
>
> ORACLE_BASE=/u01/oracle
> ORACLE_HOME=/u01/oracle/10g
> ORACLE_SID=king
> LD_LIBRARY_PATH=$ORACLE_HOME/lib
> LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32
> PATH=$PATH:$ORACLE_HOME/bin
> 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 PATH
>
>
> I start my apache through service httpd start...
> [root at king script]# ps -ef | grep apache
> apache   28494 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start
> apache   28495 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start
> apache   28496 15315  0 04:02 ?        00:00:00 /usr/sbin/httpd -k start
> apache   28497 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start
> apache   28499 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start
> apache   28500 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start
> apache   28502 15315  0 04:02 ?        00:00:00 /usr/sbin/httpd -k start
> apache   28503 15315  0 04:02 ?        00:00:00 /usr/sbin/httpd -k start
> root     31178 16299  0 08:36 pts/2    00:00:00 grep apache

you would put those variable assignments in the front of 
/etc/init.d/httpd  ...

but why would/should Apache care about your Oracle server?