image1 image2 image3


Installing OCI8 on Ubuntu

If we want to use a database from PHP, we need to install OCI8 extension, which it will provide an API to the use of Oracle databases. Installing OCI8 on Ubuntu is not as easy as doing an apt-get, as it takes some SDK packages provided by Oracle and their distribution license prevents that can be included in Linux distributions. This means we will have to download and compile them ourselves. 

Below is the steps to follow:

 1. Install PEAR and PECL.

sudo apt-get install php-pear

2. Download ''Oracle Instant Client''. We need at least the following packages 'Basic' and 'SDK'.

3. Unzip the files
sudo mkdir -p /opt/oracle
cd /opt/oracle
sudo unzip
sudo unzip
sudo mv /opt/oracle/instantclient_xx_x /opt/oracle/instantclient

The 'X' should be replaced by the appropriate version.

4. Create symbolic links.
cd /opt/oracle/instantclient
sudo ln -s
sudo ln -s

5. Add 'instant client' to the system.
sudo su - 
echo /opt/oracle/instantclient > /etc/

6. Compiling oci8
sudo pecl install oci8-2.0.10

WARNING: If you are behind a proxy, you have to run:

pear config-set http_proxy

7. Enter 'instantclient, / opt / oracle / instantclient' when prompted on the command line.

8.Enable the extension.
sudo su -
echo >> /etc/php5/apache2/php.ini

9. Restart apache2.
sudo /etc/init.d/apache2 restart

We should now have available OCI8 extension to use from our PHP applications.

Share this:


2 comentarios:

  1. Lucky 15 Casino Review & Bonus Code - JTGHub
    Lucky 15 Casino has been 충주 출장마사지 online since 2013 태백 출장샵 and 이천 출장마사지 has since been rated by 시흥 출장샵 real 영천 출장샵 players. The site has an incredible range of games to choose from.

  2. With so many on-line casinos offering the identical video games and banking strategies, bonuses are one approach to stand out from the gang. Yes, there are legitimate on line casino bonus codes out there for stay dealer video games. As stay dealer video games are topic to totally different 룰렛 rules than regular on line casino video games, you will often find they're excluded from most bonus codes or promotions. 7Bit is nicely known|a widely known} crypto on line casino that features thousands of different on line casino video games and Bitcoin slots, prepared and ready to be enhanced by some superior deposit bonus codes. The SuperSlots promo code CRYPTO400, unsurprisingly, is completely for cryptocurrency users. It comes with wagering requirements of 48x, which is on the higher aspect of issues.