<div dir="ltr">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 LD_LIBRARY_PATH_32 PATH<br>~<br><br><div class="gmail_quote">On Tue, Aug 26, 2008 at 2:25 PM, Jim Perrin <span dir="ltr"><<a href="mailto:jperrin@gmail.com">jperrin@gmail.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 class="Ih2E3d">On Tue, Aug 26, 2008 at 6:01 AM, Mad Unix <<a href="mailto:madunix@gmail.com">madunix@gmail.com</a>> wrote:<br>

> i did the following, created a startup script<br>
> [pons@king script]$ cat start_apache.sh<br>
> #!/bin/bash<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<br>
> PATH<br>
> /usr/sbin/apachectl start<br>
><br>
> and call it from the rc.local...<br>
<br>
</div>Which completely circumvents the usual process for starting up apache,<br>
and will be wiped away with a simple 'service httpd restart' or even<br>
better (the weekly logrotate), and require you to reboot the machine<br>
or call your script again.  That might not be the *best* solution.<br>
<br>
Ian's previous post about setting variables in /etc/sysconfig/httpd is<br>
correct. Define the vars in /etc/sysconfig/httpd, and make sure you<br>
export them there.<br>
<br>
This is the intended use and the 'redhat' method.<br>
<font color="#888888"><br>
<br>
<br>
--<br>
During times of universal deceit, telling the truth becomes a revolutionary act.<br>
George Orwell<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<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>