<div dir="ltr">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 PATH<br>
/usr/sbin/apachectl start<br><br>and call it from the rc.local...<br><br><br><div class="gmail_quote">On Tue, Aug 26, 2008 at 11:16 AM, Ian Forde <span dir="ltr"><<a href="mailto:ian@duckland.org">ian@duckland.org</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">On Tue, 2008-08-26 at 10:42 +0200, Ralph Angenendt wrote:<br>

> Mad Unix wrote:<br>
> > Am running Oracle10g on the server, I do OCI connection from php/apache to<br>
> > my DB 10g<br>
> > so how would you insert the values to apache...<br>
><br>
> To quote John (reading helps!):<br>
><br>
> | you would put those variable assignments in the front of /etc/init.d/httpd<br>
><br>
> Though I still don't understand why that would be needed.<br>
<br>
</div></div>I've run into this... the OCI component needs some information about<br>
where Oracle is... my advise would be to *NOT* modify<br>
the /etc/init.d/httpd script.  Better to put the declarations<br>
into /etc/sysconfig/httpd.  That's what the file is there for, and if<br>
you upgrade the Apache RPM, you don't have to worry about your startup<br>
script mods...<br>
<font color="#888888"><br>
        -I<br>
</font><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>