Error loading oci8.so with Ubuntu server 17.04 php 7 and apache2

后端 未结 3 1423
北恋
北恋 2020-12-20 02:27

I have gone through the whole process of downloading Oracle instant client, SDK, etc. in a Ubuntu Server 17.04. Then converted rpm packages to deb with alien, installed, set

3条回答
  •  佛祖请我去吃肉
    2020-12-20 03:11

    As you still will have the same problem with php cli with the above solution, it would be better to add a new file /etc/ld.so.conf.d/oracle.conf with this content:

    /usr/lib/oracle/12.2/client64/lib
    

    Then run

    sudo ldconfig
    

    This way it works for apache and php cli and you do not need to change /etc/apache2/envvars

提交回复
热议问题