How can I enable oracle (oci8) on PHP?
I’m using:
Operating system CentOS Linux 5.3
Webmin version 1.470
Virtualmin version 3.69.gpl GPL
And I have already installed Oracle XE.
Thanks for any help.
Rogerio<br><br>Post edited by: rogeriobrito, at: 2009/05/25 19:10
Again, I have no idea. I have never seen Zend Core for Oracle. Never even heard of it. You’re asking me about things that I have no idea about.
Is Zend Core for Oracle provided as RPM packages? And do they conflict with the existing PHP packages? Is that why you’re asking this question? I don’t know what problem you’re trying to solve here…you’ve just asked me if you should uninstall PHP, and the answer is still, “I don’t know.”
Yeah, I guess the problem is that we haven’t done it before
There are instructions on the PHP.net website in the Oracle section there for one way to get it running – it includes installing some Oracle runtime libraries, as well as compiling PHP from source.
Ideally, what you’d do is modify an existing PHP RPM file to incorporate the Oracle module.
That way, if something doesn’t go as you want, no problem, just uninstall the new PHP RPM, install the old one.
Sorry I can’t offer more details, but I just haven’t needed to install PHP’s Oracle support before.
-Eric
I don’t know how good the Oracle PHP packages are, but since the Oracle Linux variant is a RHEL clone, it seems likely that their packages will be pretty sane. So, I’d suggest you start with their PHP RPMs and work from there to deal with any other issues that crop up.
Here is what I did to make PHP with Oracle XE work in a fresh install of Virtualmin on CentOS 5.3:
- Installed Oracle XE
the line "XXX.XXX.XXX.XXX hostname hostname.domain" must exists in the file /etc/hosts , otherwise installation fails (not giving any error message). The XXXs must be your server IP.