no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | database:oracle:ubuntu_php7_apache2 [2019/10/31 09:04] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Install Ora8 on Ubuntu 16.04 to use with Apache2 and PHP7 ====== | ||
+ | Don't mind the version numbers | ||
+ | |||
+ | <code bash> | ||
+ | apt-get install php-pear php-dev build-essential unzip libaio1 | ||
+ | </ | ||
+ | Download oracle instant client basic and SDK and unzip them | ||
+ | <code bash> | ||
+ | mkdir /opt/oracle | ||
+ | unzip instantclient-basic-linux.x64-12.2.0.1.0.zip /opt/oracle | ||
+ | unzip instantclient-sdk-linux.x64-12.2.0.1.0.zip / | ||
+ | chown -R root: | ||
+ | cd /opt/oracle | ||
+ | mv instantclient_12_2 instantclient | ||
+ | cd instantclient | ||
+ | echo / | ||
+ | echo / | ||
+ | ldconfig | ||
+ | ln -s libclntsh.so.11.2 libclntsh.so | ||
+ | ln -s libocci.so.11.2 libocci.so | ||
+ | |||
+ | pecl install oci8 | ||
+ | echo extension=oci8.so >> / | ||
+ | echo extension=oci8.so >> / | ||
+ | service apache2 restart | ||
+ | </ | ||
+ | When prompted to enter instant client home, use **instantclient,/ | ||