# Install PHP Oracle OCI Extension (11.2) on Mac OS X (10.8)

> Installation This procedure is tested on Mac OS X 10.8 with Developpers tools installed (xCode). WARNING: Some users in comment reported issue with more recent version of MacOS. PHP 5.4 installed \[…\]

Source: https://antistatique.net/en/blog/install-php-oracle-oci-extension-11-2-on-mac-os-x-10-8

Category: Development

# Install PHP Oracle OCI Extension (11.2) on Mac OS X (10.8)

Author(s)

[

![Gilles](https://images.statique.ch/t/w_750,h_750,c_fill,f_jpeg,q_70/wp/app/uploads/2020/12/Gilles-300x300.jpg)



](/en/agence/gilles)

[Gilles](/en/agence/gilles)25 March 2013

## Installation

This procedure is tested on Mac OS X 10.8 with Developpers tools installed (xCode).

**WARNING:** Some users in comment reported issue with more recent version of MacOS.

PHP 5.4 installed with [Homebrew](http://mxcl.github.com/homebrew/).

## Preparation

Download the following files from [Oracle website](http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html) (yes, you need to create an account and accept terms):

-   [instantclient-basic-macos.x64-11.2.0.3.0.zip](http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html)
-   [instantclient-sqlplus-macos.x64-11.2.0.3.0.zip](http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html)
-   [instantclient-sdk-macos.x64-11.2.0.3.0.zip\]](http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html)

Create and unzip all theses files into a the directory \`_/usr/local/instantclient/11.2.0.3/_\`.  
This directory will looks like:

`. ├── BASIC_README ├── SQLPLUS_README ├── adrci ├── genezi ├── glogin.sql ├── libclntsh.dylib.11.1 ├── libnnz11.dylib ├── libocci.dylib.11.1 ├── libociei.dylib ├── libocijdbc11.dylib ├── libsqlplus.dylib ├── libsqlplusic.dylib ├── ojdbc5.jar ├── ojdbc6.jar ├── sdk │   ├── SDK_README │   ├── demo │   ├── include │   ├── ott │   └── ottclasses.zip ├── sqlplus ├── uidrvci └── xstreams.jar`

### Create symlinks

`ln -s /usr/local/instantclient/11.2.0.3/sdk/include/*.h /usr/local/include/ ln -s /usr/local/instantclient/11.2.0.3/sqlplus /usr/local/bin/ ln -s /usr/local/instantclient/11.2.0.3/*.dylib /usr/local/lib/ ln -s /usr/local/instantclient/11.2.0.3/*.dylib.11.1 /usr/local/lib/ ln -s /usr/local/lib/libclntsh.dylib.11.1 /usr/local/lib/libclntsh.dylib`

### Test with sqlplus instantclient

I recommand to install Oracle Server with a VirtualBox VM preinstalled.

`/usr/local/bin/sqlplus oracle/oracle@192.168.2.2`

### Install extension with pecl

`pecl install oci8`

If the script prompt you to provide the path to ORACLE\_HOME directory, respond with:

`instantclient,/usr/local/lib`

And your are done, normally pecl will automatically load the extension in your \`php.ini\`. If not, add the following line to your \`php.ini\`:

`extension=oci8.so`

Restart your HTTP Server and test.

Enjoy (or try to…) !

Feel free to fork and adapt [this gist](https://gist.github.com/gido/5237100) !

## More articles

Author(s)

[

![Anthony](https://images.statique.ch/t/w_750,h_750,c_fill,f_jpeg,q_70/wp/app/uploads/2024/11/anthony-1-300x300.png)



](/en/agence/anthony-salamone)

[Anthony](/en/agence/anthony-salamone)28 September 2026

### [Smashing Conference Freiburg 2026](/en/blog/smashing-conference-freiburg-2026)

Back in Freiburg for Smashing Conference 2026: AI and design systems, deeply technical CSS and HTML, and more human talks about teams and mindset. Here's what we took away.

Back in Freiburg for Smashing Conference 2026: AI and design systems, deeply technical CSS and HTML, and more human talks about teams and mindset. Here's what we took away.

[

![Smashing Conference Freiburg 2026 poster](https://images.statique.ch/t/w_750,h_500,c_fill,f_jpeg,q_70/assets/blog/smashing-2026.png)



](/en/blog/smashing-conference-freiburg-2026)

Author(s)

[

![Akira](https://images.statique.ch/t/w_750,h_750,c_fill,f_jpeg,q_70/wp/app/uploads/2025/03/akira-small-300x300.jpg)



](/en/agence/akira-kamata)

[Akira](/en/agence/akira-kamata)22 July 2026

### [Making of : “La nuit des Losers”](/en/blog/making-of-la-nuit-des-losers)

lanuitdeslosers.ch, built fast: paper wireframes, a bold hand-drawn identity, then Claude Code to prototype and ship. A mouse-tracking hero animation, a bowling game made of sponsor logos, and a few bugs we’re keeping.

lanuitdeslosers.ch, built fast: paper wireframes, a bold hand-drawn identity, then Claude Code to prototype and ship. A mouse-tracking hero animation, a bowling game made of sponsor logos, and a few bugs we’re keeping.

[

![Making of : “La nuit des Losers”](https://images.statique.ch/t/w_750,h_500,c_fill,f_jpeg,q_70/wp/app/uploads/2026/05/La-nuit-des-Losers-Teaser-1-768x576.png)



](/en/blog/making-of-la-nuit-des-losers)

Author(s)

[

![Pierre](https://images.statique.ch/t/w_750,h_750,c_fill,f_jpeg,q_70/wp/app/uploads/2020/12/Pierre-300x300.jpg)



](/en/agence/pierre)

[Pierre](/en/agence/pierre)7 July 2026

### [Dark mode: necessity or trend](/en/blog/dark-mode-necessity-or-trend)

Nous faisons le tri entre idées reçues, réalités techniques et bonnes pratiques de design.

Nous faisons le tri entre idées reçues, réalités techniques et bonnes pratiques de design.

[

![Dark mode: necessity or trend](https://images.statique.ch/t/w_750,h_500,c_fill,f_jpeg,q_70/wp/app/uploads/2026/07/1-768x384.png)



](/en/blog/dark-mode-necessity-or-trend)
