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]
Umm, unfortunately, not quite.  The trick is RPM packages are BINARY.  Thus, you don't have the source.  And, if you compile from source a clean PHP system, you're not using the RPM database.  SO, you are generally either using a binary RPM or a source package.  Now, another option is to install a source rpm, and rebuild a binary rpm form modified sources - this is a bit of a pain (well, more than a bit), but it is an option.  Which method are you using?

Off hand though, I thought the PHP used by RHEL included the Oracle options, if it found the libraries.  I'm assuming you did a phpinfo page to look through, to see if the OCI8 extensions were included already?

For the environment variables, yes, that's the only thing you'd need to set.  However, make sure they're set in the apache user's environment, as otherwise the httpd process which runs as Apache (if I remember correctly) won't see the Oracle environment variables.


--

/--------------------------------------|---------------------------\

| 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)            |

\--------------------------------------|---------------------------/

GnuPG Key:  http://poetshome.com/about/jmcintosh_mlug.missouri.edu.gpgkey



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