SHARE
TWEET

Untitled

a guest Feb 25th, 2020 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo su -
  2.  
  3. sudo apt-get install libaio1 libaio-dev
  4.  
  5. mkdir /opt/oracle
  6. cd /opt/oracle
  7. wget https://download.oracle.com/otn_software/linux/instantclient/19600/instantclient-basiclite-linux.x64-19.6.0.0.0dbru.zip
  8. wget https://download.oracle.com/otn_software/linux/instantclient/19600/instantclient-sdk-linux.x64-19.6.0.0.0dbru.zip
  9.  
  10. unzip instantclient-sdk-linux.x64-19.6.0.0.0dbru.zip
  11. unzip instantclient-basiclite-linux.x64-19.6.0.0.0dbru.zip
  12.  
  13. echo /opt/oracle/instantclient_19_6 > /etc/ld.so.conf.d/oracle-instantclient.conf
  14.  
  15. ldconfig
  16.  
  17. apt-get install php74-dev
  18.  
  19. pecl install oci8
  20. instantclient,/opt/oracle/instantclient_19_6
  21.  
  22. echo "extension =oci8.so" >> /etc/php/7.2/fpm/php.ini
  23. echo "extension =oci8.so" >> /etc/php/7.2/cli/php.ini
  24. echo "extension =oci8.so" >> /etc/php/7.2/apache2/php.ini
  25.  
  26.  
  27. echo "LD_LIBRARY_PATH=/opt/oracle/instantclient_19_6:$LD_LIBRARY_PATH" >> /etc/environment
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top