LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

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

Rep: Reputation: 0
PHP-OCI and YUM


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!
Cristina
 
Old 10-29-2007, 08:36 AM   #2
shafty023
Member
 
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

<?php

phpinfo();
?>

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, 05:48 AM   #3
cristinaaragon
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
PHP-OCI and YUM

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!!
Cristina
 
Old 10-30-2007, 10:32 AM   #4
shafty023
Member
 
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 -> http://us.php.net/oci8 and also google "compile php with oci8"
 
  


Reply


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


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

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