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...
--
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
so how would you insert the values to apache...
On Tue, Aug 26, 2008 at 9:18 AM, John R Pierce <pierce@xxxxxxxxxxxx> wrote:
Mad Unix wrote:you would put those variable assignments in the front of /etc/init.d/httpd ...
How can I pass the following Oracle 10g variables to my apache?
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
I start my apache through service httpd start...
[root@king script]# ps -ef | grep apache
apache 28494 15315 0 04:02 ? 00:00:01 /usr/sbin/httpd -k start
apache 28495 15315 0 04:02 ? 00:00:01 /usr/sbin/httpd -k start
apache 28496 15315 0 04:02 ? 00:00:00 /usr/sbin/httpd -k start
apache 28497 15315 0 04:02 ? 00:00:01 /usr/sbin/httpd -k start
apache 28499 15315 0 04:02 ? 00:00:01 /usr/sbin/httpd -k start
apache 28500 15315 0 04:02 ? 00:00:01 /usr/sbin/httpd -k start
apache 28502 15315 0 04:02 ? 00:00:00 /usr/sbin/httpd -k start
apache 28503 15315 0 04:02 ? 00:00:00 /usr/sbin/httpd -k start
root 31178 16299 0 08:36 pts/2 00:00:00 grep apache
but why would/should Apache care about your Oracle server?
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
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
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos