Skip to content

Instantly share code, notes, and snippets.

View yassine20011's full-sized avatar
🎯
Focusing

Yassine Amjad yassine20011

🎯
Focusing
View GitHub Profile

Connect Oracle database with PHP

This solution is for those facing problems connecting the Oracle database with PHP. It is tested on Fedora 41(a Linux distribution) and the Oracle 23c database.

Step 1: Install Oracle Instant client

First, you need to install Oracle Instant Client. You can download it from here. After downloading, extract the zip file and move it to the /opt/oracle directory. You also need to download the SDK package and move it to the same directory.

Example from my machine: