PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, December 5, 2022

[FIXED] How to configure PHP 5.6/Apache 2.4 in xampp(Windows 7) with Oracle oci8_11g?

 December 05, 2022     apache, oci8, oracle, oracle-call-interface, php     No comments   

Issue

I'm using Xampp environment (PHP 5.6.21/Apache 2.4.17/MySQL 5.0) in windows 7 32 bit.

I'm trying to connect to the Remote Oracle Database using Oracle Instant Client in PHP.

I can able to load the oci8_11g related Dll files into the application, But Oracle Run-time Client Library Version is not loading. Here I have attached the screenshot, Kindly help me in resolving the issue.

your suggestions are appreciated.

Click here to see image


Solution

Really i got frustrated with oracle configuration with PHP. Finally i got the solution. Please go through the Following steps.

  1. First check your PHP version and Windows OS(32-bit or 64-bit).
  2. Go to www.oracle.com/technetwork/topics/winsoft-085727.html.
  3. Download the files which are related to your PHP and windows configuration.
  4. Place the Oracle Instant Client folder in your system C:\ drive.
  5. Update the PATH in the Environment Variables with your Oracle Instant Client folder path.
  6. Add this line to your Apache HTTP.conf file "LoadModule fcgid_module modules/mod_fcgid.so".
  7. Go to www.apachelounge.com/download/VC11/ and Download the file "modules-2.4-win32-VC11.zip"
  8. Extract the folder "modules-2.4-win32-VC11.zip" and find the folder with this name "mod_fcgid-2.3.9"
  9. Copy the "mod_fcgid.so" file and place this file into your "C:\xampp\apache\modules".
  10. Go to windows.php.net/downloads/pecl/releases/oci8/2.0.6/" and search for "php_oci8-2.0.6-5.5-ts-vc11-x86".
  11. Download the file "php_oci8-2.0.6-5.5-ts-vc11-x86" and extract this file and place them in your "C:\xampp\php\ext".
  12. Go to php.ini and enable your extension "extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client"
  13. Just restart your Xampp Apache and Check your oci enable or or not by browsing phpinfo();
  14. Strat using your Oracle Services with PHP Application.

Hope this solution is helpful for you guys.. Thanks.



Answered By - Rakesh
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing