MLUG: Re: [MLUG] installing oracle instant client
Re: [MLUG] installing oracle instant client
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
You'll have to install and rebuild the PHP source RPMs.  If you're using Red Hat's RHN service, you can do the following to build the Oracle bits of PHP.  As root:

  up2date --get --download --src php
  rpm -Uvh /var/spool/up2date/php-4.3.9-3.12.src.rpm
  cd /usr/src/redhat/SPECS

You should have a file called php.spec in that directory.  You should now be able to rebuild PHP RPMs with Oracle support using the following command:

  rpmbuild -bb --clean --rm{source,spec} --define oracle=1 php.spec

There might be dependencies that you'll need to manually install to get a complete build.  Once you get a good build, you should be able to get Oracle support by installing the php-oci8 RPM in /usr/src/redhat/RPMS/i386.  Restart Apache at that point and you're golden.

Good luck!


  ryan woodsmall

    EMAIL:PROTECTED



"Be well, do good work, and keep in touch." - Garrison Keillor



On Jun 6, 2006, at 10:25 AM, Davis, Jared Scott wrote:

Well, here are the relevant packages I have:

php-4.3.9-3.12

httpd-2.0.52-22.ent

oracle-instantclient-basic-10.2.0.1-1

 

and yes, I am using the rpms as the php/apache packages were preinstalled when we bought the server, so I’ve just been updating those.  Technically I should just be able to recompile php --with-oci8-instant-client=[dir] and set the environment variables, right?

 

Thanks,

 

Jared Davis
Internet Administrator
Residential Life
University of Missouri-Columbia
100 Pershing Hall
(573) 884-3616


From: EMAIL:PROTECTED [mailto:EMAIL:PROTECTED] On Behalf Of McIntosh Jason
Sent: Tuesday, June 06, 2006 9:36 AM
To: MLUG Members
Subject: Re: [MLUG] installing oracle instant client

 

I haven't enabled this patch previously, but a few notes on this - check the version numbers of PHP you're trying to install.  It may not be necessary.  Actually, I just looked at the php.net site and the packages have DEFINITELY been updated to a much newer version than is on the tutorial.

 

Keep in mind, if you're doing RPM files, this may all be different.  I'm not sure what version of the RPM's, etc. you're using, but I generally do source installs for php/apache/tomcat/oracle rather than use RPM's due to said issues.

Jason

 

--
/--------------------------------------|---------------------------\
| Jason McIntosh                       | CELL: 573-424-7612        |
| Webmaster, thinker, programmer, etc. | WORK: 573-884-3865        |
| http://poetshome.com/                |                           |
|------------------------------------------------------------------|
|"How should I know if it works?  That's what beta testers are     |
|for.  I only coded it."                                           |
|(Attributed to Linus Torvalds, somewhere in a posting)            |
\--------------------------------------|---------------------------/



 

On Jun 6, 2006, at 9:28 AM, Davis, Jared Scott wrote:



I’m having some trouble getting the OCI8 extention for PHP working.  I’ve tried following this: http://www.oracle.com/technology/pub/notes/technote_php_instant.html (scroll down to “Enabling the PHP OCI8 Extension on Linux”) but it seems I don’t have the directory to apply the patch they are talking about.  Has anyone done this and could help?  We’re running RHEL4.  Thanks,

 

Jared Davis

Internet Administrator

Residential Life

University of Missouri-Columbia

100 Pershing Hall

(573) 884-3616

 

 

<image001.gif>

_______________________________________________

members mailing list

 

<image001.gif>
_______________________________________________
members mailing list

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members