[CentOS] apache

Mad Unix madunix at gmail.com
Wed Aug 27 13:10:32 UTC 2008


I done this.... and it works
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.
#
#HTTPD=/usr/sbin/httpd.worker

#
# To pass additional options (for instance, -D definitions) to the
# httpd binary at startup, set OPTIONS here.
#
#OPTIONS=

#
# 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.
#
#HTTPD_LANG=C

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


On Tue, Aug 26, 2008 at 6:43 PM, Ross S. W. Walker <RWalker at medallion.com>wrote:

> Jeff wrote:
> > 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.
> > > #
> > > #HTTPD=/usr/sbin/httpd.worker
> > >
> > > #
> > > # To pass additional options (for instance, -D definitions) to the
> > > # httpd binary at startup, set OPTIONS here.
> > > #
> > > #OPTIONS=
> > >
> > > #
> > > # 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.
> > > #
> > > #HTTPD_LANG=C
> > > 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
> > > ~
> > <snip>
> >
> > 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.
>
> Or you could add those environment variables in /etc/profile.d, create
> a file called oracle.sh and put those environment variables there, then
> in /etc/httpd/conf.d create a file called oracle, and add the PassEnv
> directives there.
>
> At least this way the environment variables are available to all
> local processes and users.
>
> -Ross
>
> ______________________________________________________________________
> This e-mail, and any attachments thereto, is intended only for use by
> the addressee(s) named herein and may contain legally privileged
> and/or confidential information. If you are not the intended recipient
> of this e-mail, you are hereby notified that any dissemination,
> distribution or copying of this e-mail, and any attachments thereto,
> is strictly prohibited. If you have received this e-mail in error,
> please immediately notify the sender and permanently delete the
> original and any copy or printout thereof.
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Madunix_at_Gmail
Sysadmin

"Computers are useless. They can only give you answers" - Pablo Picasso
"Never trust a computer you can't throw out a window." - Steve Wozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20080827/b343feca/attachment.htm


More information about the CentOS mailing list