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
15 weeks 2 days ago
25 weeks 6 days ago
30 weeks 6 days ago
32 weeks 2 days ago
1 year 34 weeks ago
3 years 4 weeks ago
3 years 33 weeks ago
3 years 33 weeks ago
3 years 45 weeks ago
4 years 2 days ago