OCI.dll could not be loaded in PHP-Apache

I’ve installed XAMP 1.6.6a  and running of apache 2.2.8 and PHP 5.2.5 versions. I also install oracle instant client so i want to connect to oracle via php using oci.  I got this message when i start apache

This application has failed to start because oci.dll was not found. Re-installing the application may fix this problem.

I had try to set these variable


and uncomment the following lines in php.ini file


but error message would not dissapear

Then I copy oci.dll to folder apache\bin and restart apache, it works fine now. But make sure your oci.dll from Oracle 10, older version will not work.

You can test it using php.exe -m, if you can’t find any error or warning and you see oci8 in list then congratulations!! you succeed to setup oracle extension.

If another error message, such as

The procedure entry point OCIStmtPrepare2 could not be located in the dynamic link library OCI.dll,

then copy oci.dll to php directory and restart apache and test again


6 Responses

  1. nice solution 😀

  2. Do you want know your see request variables – for free?

  3. klo ngedapetin oci.dll nya dari mana ya??

  4. donlot aja di http://www.dlldump.com/download-dll-files_new.php/dllfiles/O/oci.dll/

  5. Thanks for the solution ! It’s works with the Ora10 dll !

  6. Thanks, Allah bless you…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: