This is a place where Ian write stuffs. So, what kind of stuffs is that? Why don't you stop reading this description, and start reading the blogs to find out.
Thursday, December 29, 2005
Monday, December 12, 2005
RHEL 4: php_oci8
I've got a new box with RHEL 4 pre-installed. I got that brand new box for a new project. This particular project will use Oracle as the database engine. It will also use PHP for the front-end.
The classic problem for the Oracle+PHP is that the PHP must be recompiled to include the Oracle Extension. In the past, I would've opted the compiled from source approach. But for this one, I've tried and succeded using the rebuild RPM approach.
Here's a list what I've done:
The classic problem for the Oracle+PHP is that the PHP must be recompiled to include the Oracle Extension. In the past, I would've opted the compiled from source approach. But for this one, I've tried and succeded using the rebuild RPM approach.
Here's a list what I've done:
- install the Oracle 9i on top RHEL 4
- download the PHP Source RPM from ftp://ftp.redhat.com/
- rename gcc.orig, created after installing compat-gcc package (required to install Oracle 9i on top RHEL 4), to gcc
- do the rpm --rebuild
- install php_oci8 package using rpm -Uvh --nodeps, so it will not complain about missing oracle client library
- set up the ORACLE_HOME and LD_LIBRARY_PATH for the root environment
Subscribe to:
Posts (Atom)