Installing Oracle Instant Client on Fedora 9 and PHP
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.
- dale's blog
- Login or register to post comments

Recent comments
50 weeks 2 days ago
50 weeks 2 days ago
1 year 9 weeks ago
1 year 38 weeks ago
1 year 38 weeks ago
1 year 50 weeks ago
2 years 5 weeks ago
2 years 5 weeks ago
2 years 6 weeks ago
2 years 6 weeks ago