Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 10-29-2007, 04:05 AM   #1
LQ Newbie
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0

Hi all,

I'm newbie and I donīt know if my question is something obvious.
Well, I have Fedora Core 5 and PHP installed through RPM packages.
Now, I have to make PHP work with Oracle (installed in other machine).
I think that I have to find a package with php-oci module but I can't.
If I type:
[root@mola modules]# yum install php-oci
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core [1/3]
extras [2/3]
updates [3/3]
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: php-oci
Nothing to do

(The same happens if I type yum install php-oci8).

Any help would be appreciate.
Thanks in advance!
Old 10-29-2007, 07:36 AM   #2
Registered: Oct 2007
Distribution: OSX
Posts: 248

Rep: Reputation: 31
Have you tried checking phpinfo() yet?

Create a php file named info.php, then copy paste the following into it. Place it into your web directory and navigate to it from your browser. I'm hoping you know how to do this. And by navigating to it from your browser I don't mean File->open file. I mean http://localhost/info.php if you happen to put it in your root web server directory. Make sure apache (httpd) is running. Let me know if you have any questions. The output you'll see in your browser will tell you if php was compiled with oci8 support



If you do not have php compiled with oci8 support (yes I know you installed php via yum) this means you'll need to uninstall php from your system and download the source code and compile it with oci8 support. Unless of course you can find a package on the net with this already compiled in. You'll also need the oracle client installed as you'll need to point php to your oracle installation directory. Lots of stuff to do and know when adding oracle support.
Old 10-30-2007, 04:48 AM   #3
LQ Newbie
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks Shafty,

Then I have to uninstall php and re-install it with oci support.

I have another question: ŋyou said that I need to install oracle client too to point php to my oracle installation directory? But i have Oracle installed in other machine!
Isīt possible to connect to oracle installed remotely?

Thanks very much!!
Old 10-30-2007, 09:32 AM   #4
Registered: Oct 2007
Distribution: OSX
Posts: 248

Rep: Reputation: 31
PHP will need the Oracle client in order to make a connection to a remote Oracle database. It's not like php opens a direct connection to the oracle database. From my understanding and how I see it configured here at my office, PHP talks with the oracle client via oci8, which then makes a connection to the oracle database we have remotely on another server. Check out this link -> and also google "compile php with oci8"


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
Yum php-mysql 3.22 vs 4.1 Crump Fedora 1 04-21-2007 06:49 AM
oracle oci client configuration huseyin.erdag Linux - General 1 11-28-2006 11:38 AM
Connection to oracle cluster with OCI. nhydra Programming 3 05-10-2006 09:57 AM
Can YUM Reinstall PHP? stefaandk Fedora 3 06-27-2005 07:23 PM
Need yum repos with php 4.3.11 ericcarlson Fedora 1 05-30-2005 08:48 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:44 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