Based on: Apache, PHP, Oracle Instant Client on Fedora 8 (64-bit) and Installing PHP and the Oracle 10g Instant Client for Linux and Windows.
I downloaded the instant client RPMs from Oracle to my local private yum repo that I use for in-house packages. Doesn't everyone have one of those? Then all ya gotta do is...
yum -y install oracle-instantclient-devel oracle-instantclient-basic \
libaio gcc php-devel
cat <<EOF > /etc/profile.d/oracle.sh
# oracle instantclient
export LD_LIBRARY_PATH=/usr/lib/oracle/11.1.0.1/client64/lib
export ORACLE_HOME=/usr/lib/oracle/11.1.0.1/client64/
EOF
source /etc/profile.d/oracle.sh
# when prompted hit 1 and then enter
# 'instantclient,/usr/lib/oracle/11.1.0.1/client64/lib'
pecl install oci8
cat <<EOF > /etc/php.d/oci8.ini
; Enable oci9 extension module
extension=oci8.so
EOF
service httpd restart
See the links at the top for info on testing and troubleshooting.
Recent comments
22 weeks 3 days ago
22 weeks 3 days ago
35 weeks 10 hours ago
41 weeks 5 days ago
41 weeks 6 days ago
42 weeks 7 hours ago
43 weeks 19 hours ago
43 weeks 20 hours ago
51 weeks 1 day ago
51 weeks 2 days ago