Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-14-2007, 01:34 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Trouble installing OCI8 support w/ PHP Apache

I have searched the world over for the solution to my issue, but I have come up empty handed.

OS is Red Hat, I am using Apache and PHP RPMs. I have Oracle Instant Client installed, environment variable set, and I can access my Oracle db through SqlPlus. Apache and PHP work great, PHP has Mysql support and I can access Mysql no problem.

I am new to Linux so be gentle. I have read I can add OCI8 via ./configure with PHP, but I have no idea where PHP is installed.

Can someone point me in the right direction?
Old 06-15-2007, 06:43 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,478

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480
I've never used php with oracle, but I'll try to help.
You can run:
php -i|grep configure
to see if php was compiled with oci8 support. If not (most likely), you should d/l the source code, matching your version of php, from and compile it by adding "--with-oci8" or something like "--with-oci8=instantclient,/path/to/oic/lib" to the output of the above command. I.e. you should run something like:
./configure --with-options-from-above-command --with-oci8
Then run "make", "make install".
I guess you have to uninstall the php you're now using before running "make install", but keep the rpm handy in case something goes wrong.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure php-5.1.4 with oci8 for Oracle9i jimmyjiang Red Hat 2 11-10-2006 07:53 AM
Help installing OCI8 support AcidSnake Linux - Software 0 09-11-2006 03:13 AM
php with oci8 nightmare mariogomide Programming 1 01-31-2006 10:51 PM
How to rebuild php rpm package for oci8 in RHLE 4.0 nui Linux - Enterprise 2 08-01-2005 02:18 AM
Help with OCI8/PHP APACHE on Redhat enterprise AS 3.0 pdave Linux - Software 0 07-21-2004 10:12 AM

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration