SUSE 12.1 Apache startup after oci8 installation
Posted
by
DKSan
on Server Fault
See other posts from Server Fault
or by DKSan
Published on 2012-02-16T15:18:01Z
Indexed on
2013/11/08
4:00 UTC
Read the original article
Hit count: 792
opensuse
|php-extensions
I have got a virtual server running opensuse 11.4 with apache, php, oracle instantclient, and oci installed through pecl.
The steps it took for me to have it up and running on 11.4 were:
# Install instantclient
rpm -Uvh oracle-instantclient11.2-basic-11.2.0.2.0.x86_64.rpm
rpm -Uvh oracle-instantclient11.2-devel-11.2.0.2.0.x86_64.rpm
# Install OCI8 through pecl
pecl install oci8
# add oci8 to modules
vi /etc/php5/conf.d/oci8.ini
extension=oci8.so
# add LD_LIBRARY_PATH to apache
vi /etc/sysconfig/apache2
# add to bottom of script
export LD_LIBRARY_PATH="/usr/lib/oracle/11.2/client64/lib"
# restart Apache
/etc/init.d/apache2 restart
Celebrating the same procedure on a fresh installation of OpenSUSE 12.1 results in apache throwing the following message at startup:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/oci8.so' - libnnz11.so: cannot open shared object file: No such file or directory in Unknown on line 0
I can't get any explanation, why it is working for 11.4 and in 12.1 it stops working.
Can someone please point me in the right direction..
© Server Fault or respective owner