i did the following, created a startup script [pons at king script]$ cat start_apache.sh #!/bin/bash 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 /usr/sbin/apachectl start and call it from the rc.local... On Tue, Aug 26, 2008 at 11:16 AM, Ian Forde <ian at duckland.org> wrote: > On Tue, 2008-08-26 at 10:42 +0200, Ralph Angenendt wrote: > > Mad Unix wrote: > > > Am running Oracle10g on the server, I do OCI connection from php/apache > to > > > my DB 10g > > > so how would you insert the values to apache... > > > > To quote John (reading helps!): > > > > | you would put those variable assignments in the front of > /etc/init.d/httpd > > > > Though I still don't understand why that would be needed. > > I've run into this... the OCI component needs some information about > where Oracle is... my advise would be to *NOT* modify > the /etc/init.d/httpd script. Better to put the declarations > into /etc/sysconfig/httpd. That's what the file is there for, and if > you upgrade the Apache RPM, you don't have to worry about your startup > script mods... > > -I > > _______________________________________________ > 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/20080826/276e9679/attachment-0005.html>