Resolve it by following these steps:
Make sure you download and install Oracle instantclient at: http://www.oracle.com/technetwork/topics/winsoft-085727.html, but note:
After that, do add the location of your Oracle instantclient to your System variable Path under your Environment Variables. Do equally ensure that you have both the PHP of your xampp and its extavailable and set there as well (if not, do add them).
Then, proceed to add a new System variable with TNS_ADMIN as a variable name and the location to Oracle instantclient as the variable value.
Also, define your User variables PATH with the same the location to Oracle instantclient as value.
After this stage, restart your computer for a full propagation of the newly defined environment variables.
Once on, you may open your Windows Command Prompt and run where oci* to ensure that you had your environment variables well defined; the response should look like this:
If not, you must have missed something and need to revisit the process, ensuring to completing it effectively.
You may now proceed to your php.ini file (provided environment variables are well defined) and enable your oci extensions (php_oci8.dll and php_oci8_11g.dll) by uncommenting them; you can achieve that by simply removing the semi column (;) before the said extensions.
Do remember to save your php.ini file, then, restart or start your Apache if it isn't already running.
To check your PHP oci8 configurations are enabled, you may go back to your Windows Command Prompt and run: php --ri oci8; the response should be similar to the one below:
Alternatively, you can create a PHP file with as
<?php phpinfo(); ?> content, then open it in your browser and search for oci8 occurrences; it should show enabled there as well. |
Saturday, 22 July 2017
PHP OCIi 12c XAMPP Configuration
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment