<div dir="ltr">I done this.... and it works <br>vi /etc/sysconfig/httpd<br><br># Configuration file for the httpd service.<br><br>#<br># The default processing model (MPM) is the process-based<br># 'prefork' model.  A thread-based model, 'worker', is also<br>
# available, but does not work with some modules (such as PHP).<br># The service must be stopped before changing this variable.<br>#<br>#HTTPD=/usr/sbin/httpd.worker<br><br>#<br># To pass additional options (for instance, -D definitions) to the<br>
# httpd binary at startup, set OPTIONS here.<br>#<br>#OPTIONS=<br><br>#<br># By default, the httpd process is started in the C locale; to<br># change the locale in which the server runs, the HTTPD_LANG<br># variable can be set.<br>
#<br>#HTTPD_LANG=C<br><br>ORACLE_BASE=/u01/oracle<br>ORACLE_HOME=/u01/oracle/10g<br>ORACLE_SID=king<br>LD_LIBRARY_PATH=$ORACLE_HOME/lib<br>LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32<br>PATH=$PATH:$ORACLE_HOME/bin<br>NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256; export NLS_LANG<br>
NLS_DATE_FORMAT=dd-mm-yyyy ; export NLS_DATE_FORMAT<br>export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32 PATH<br><br><br><div class="gmail_quote">On Tue, Aug 26, 2008 at 6:43 PM, Ross S. W. Walker <span dir="ltr"><<a href="mailto:RWalker@medallion.com">RWalker@medallion.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Jeff wrote:<br>
> On Tue, Aug 26, 2008 at 10:11 AM, Mad Unix <<a href="mailto:madunix@gmail.com">madunix@gmail.com</a>> wrote:<br>
> > Can I do the following<br>
> ><br>
> > vi /etc/sysconfig/httpd<br>
> ><br>
> > # Configuration file for the httpd service.<br>
> ><br>
> > #<br>
> > # The default processing model (MPM) is the process-based<br>
> > # 'prefork' model.  A thread-based model, 'worker', is also<br>
> > # available, but does not work with some modules (such as PHP).<br>
> > # The service must be stopped before changing this variable.<br>
> > #<br>
> > #HTTPD=/usr/sbin/httpd.worker<br>
> ><br>
> > #<br>
> > # To pass additional options (for instance, -D definitions) to the<br>
> > # httpd binary at startup, set OPTIONS here.<br>
> > #<br>
> > #OPTIONS=<br>
> ><br>
> > #<br>
> > # By default, the httpd process is started in the C locale; to<br>
> > # change the locale in which the server runs, the HTTPD_LANG<br>
> > # variable can be set.<br>
> > #<br>
> > #HTTPD_LANG=C<br>
> > ORACLE_BASE=/u01/oracle<br>
> > ORACLE_HOME=/u01/oracle/10g<br>
> > ORACLE_SID=king<br>
> > LD_LIBRARY_PATH=$ORACLE_HOME/lib<br>
> > LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32<br>
> > PATH=$PATH:$ORACLE_HOME/bin<br>
> > NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256; export NLS_LANG<br>
> > NLS_DATE_FORMAT=dd-mm-yyyy ; export NLS_DATE_FORMAT<br>
> > export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH<br>
> LD_LIBRARY_PATH_32<br>
> > PATH<br>
> > ~<br>
> <snip><br>
><br>
> Yes, that is the right way. But one point that was not clearly made is<br>
> that you probably ALSO need to add to your apache configuration:<br>
><br>
> PassEnv ORACLE_BASE ORACLE_HOME [etc.]<br>
><br>
> This make the values available to PHP.<br>
<br>
</div></div>Or you could add those environment variables in /etc/profile.d, create<br>
a file called oracle.sh and put those environment variables there, then<br>
in /etc/httpd/conf.d create a file called oracle, and add the PassEnv<br>
directives there.<br>
<br>
At least this way the environment variables are available to all<br>
local processes and users.<br>
<br>
-Ross<br>
<br>
______________________________________________________________________<br>
This e-mail, and any attachments thereto, is intended only for use by<br>
the addressee(s) named herein and may contain legally privileged<br>
and/or confidential information. If you are not the intended recipient<br>
of this e-mail, you are hereby notified that any dissemination,<br>
distribution or copying of this e-mail, and any attachments thereto,<br>
is strictly prohibited. If you have received this e-mail in error,<br>
please immediately notify the sender and permanently delete the<br>
original and any copy or printout thereof.<br>
<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Madunix_at_Gmail<br>Sysadmin<br><br>"Computers are useless. They can only give you answers" - Pablo Picasso<br>"Never trust a computer you can't throw out a window." - Steve Wozniak <br>

</div>