I am new to PHP and I am not an Oracle DBA either. I am a systems admin but I am trying to configure PHP with oc8i. These are the steeps I took to do it all.- I compiled Apache 2.2.9 with the followings --enable-so--enable-cgi--enable-info--enable-rewrite--enable-speling--enable-usertrack--enable-deflate --enable-ssl--enable-mime-magic-Compiled php 5.3.6 with the followings --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/apache/php --with-oci8=/u01/app/oracle/client/product/11.2

when I run test.php file within the browser it shows my Environment to be like this LD_LIBRARY_PATH /usr/local/apache/lib and when I try to run a script to enter data into an Oracle tabel using oci-function I ge teh following error message:Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and LD_LIBRARY_PATH are set and point to the right directories in /usr/local/apache/htdocs/sails_completed.php on line 2

Warning: oci_connect() [function.oci-connect]: Error while trying to retrieve text for error ORA-01804 in /usr/local/apache/htdocs/sails_completed.php on line 2Oracle Connect Error Usage:sails_completed.php

Problem is fixed. After I went back to history on Server I noticed a space in --with-oci8=/u01/app/oracle/client/product/11.2. PHP compiled with out taking Oracel_Home path. I removed PHP, recomplied it again. all worked after that.