Enabling Oracle Instant Client on Plesk
Posted: Wed Jul 23, 2008 12:26 pm
I have a book here about PHP Oracle Web Development and it has some instructions for installing Oracle's Instant Client on a Linux Machine (to enable Oracle database support for PHP) and it gives me the following instructions:
First I would download a copy of the Oracle Instant Client, in our case we would need the 64-bit linux version:
http://www.oracle.com/technology/softwa ... 4soft.html
(the main page for the download is the link below):
http://www.oracle.com/technology/tech/o ... index.html
Then it says unzip the package into a single directory in your file system (no problem).
Next it asks me to set the LD_LIBRARY_PATH to the directory in which you unzipped the libraries (this is unfamiliar to me, but I think a simple Google search would clear things up for me).
After doing this it now says that I should run configure with Apache2 and OCI8 support using the following command:
# cd php-5xx
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-config-file-path=$HOME/apache/conf \ --with-oci8-instant-client=/home/instantclient10_2 \ --enable-sigchild
(the above command would definitely be different on a Plesk-based machine and the location where I unzipped the files into, but I am not quite sure if I can simply run that configuration option in Plesk and have it work).
Then the procedure says to run make, and then make install and restart Apache.
Now the procedure does not seem very difficult but adding Plesk into the mix adds a bit of uncertainty into things for me as I really do not want to mess up the way Plesk handles things, so I wanted to ask if somebody either knew the correct procedure for doing this or if perhaps there was script available that makes it very easy to do (much like the other one's ART has available for other PHP extensions.
From what I've read the Oracle Instant Client has a pretty liberal distribution license so I can't imagine why there wouldn't be at least a few repositories available that provided install scripts.
It'd be a very useful feature for colleges using Plesk (like ours) since Oracle databases are our primary data storage.
Thank you for your help!
First I would download a copy of the Oracle Instant Client, in our case we would need the 64-bit linux version:
http://www.oracle.com/technology/softwa ... 4soft.html
(the main page for the download is the link below):
http://www.oracle.com/technology/tech/o ... index.html
Then it says unzip the package into a single directory in your file system (no problem).
Next it asks me to set the LD_LIBRARY_PATH to the directory in which you unzipped the libraries (this is unfamiliar to me, but I think a simple Google search would clear things up for me).
After doing this it now says that I should run configure with Apache2 and OCI8 support using the following command:
# cd php-5xx
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-config-file-path=$HOME/apache/conf \ --with-oci8-instant-client=/home/instantclient10_2 \ --enable-sigchild
(the above command would definitely be different on a Plesk-based machine and the location where I unzipped the files into, but I am not quite sure if I can simply run that configuration option in Plesk and have it work).
Then the procedure says to run make, and then make install and restart Apache.
Now the procedure does not seem very difficult but adding Plesk into the mix adds a bit of uncertainty into things for me as I really do not want to mess up the way Plesk handles things, so I wanted to ask if somebody either knew the correct procedure for doing this or if perhaps there was script available that makes it very easy to do (much like the other one's ART has available for other PHP extensions.
From what I've read the Oracle Instant Client has a pretty liberal distribution license so I can't imagine why there wouldn't be at least a few repositories available that provided install scripts.
It'd be a very useful feature for colleges using Plesk (like ours) since Oracle databases are our primary data storage.
Thank you for your help!