pb of connect php4.0.0 to oracle8i

admin

Administrator
Staff member
hard&soft environment as below:
redhat linux6.2 + apache1.3.14 + oracle8iR2 + php-4.0.0;

these have done:

ORACLE_HOME=/oracle/OraHome1
ORACLE_SID=orcl
LD_LIBRARY_PATH=/oracle/OraHome1/lib
CLASSPATH=/oracle/OraHome1/JRE:/oracle/OraHome1/jlib:/oracle/OraHome1/plsql/jlib
ORACLE_BASE=/oracle
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1

export ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH CLASSPATH ORACLE_BASE NLS_LANG

;

./configure --with-oracle=/oracle/OraHome1 --with-oci8=/oracle/OraHome1 --with-apache=/pub/michael/cache/apache_1.3.14 --enable-track-vars

make
make install

./configure --prefix=/www/apache --activate-module=src/modules/php4/libphp4.a

make
make install

cp /pub/michael/php/php-4.0.0/php.ini-dist /usr/local/lib/php.ini

chmod o+rx oracle

create a php file in /www/www as below:
...
<?php
$conn = ocilogon('system','manager','orcl.localdomain');
echo '$conn'
?>
...
error show in the internet browser:
Warning: _oci_open_server: Error while trying to retrieve text
for error ORA-12154 in /www/www/index.php on line 19
 
Back
Top