PHP+OCI8 on RH 7.1

admin

Administrator
Staff member
I was wondering if anyone clould please help me with a solution to this problem?

I installed Red Hat 7.1 w/ Apache+PHP on a new drive. Next I installed Oracle 8.1.7. I have the ORACLE env variables set and can connect to the database using sqlplus and Perl/DBI. I would like to use the oci8 extension via PHP. I'm not sure if this is right, but this is what I did next:

1. export LD_LIBRARY_PATH=$ORACLE_HOME/lib
2. Download php source and untar it.
3. cd php source/ext/oci8 and ran phpize
4. ./configure --with-oci8;make;make install
5. uncomment the extension=oci8.so in php.ini
6. restart apache.

I get the "Call to undefined function: ocilogon()" when I try and run a script. I then checked the loaded extensions and saw oci8 wasn't loaded. I added a dl("oci8.so"); to the script and get the following:

Warning: Invalid library (maybe not a PHP library) 'oci8.so' in /var/www/html/ora.php on line 9

What am I doing wrong?

Thanks in advance to anyone that can help.

--Jeff
 
Back
Top