How To Install Oci8 Php Code

  

  1. How To Install Oci8 Php Code Checker
  2. How To Install Php Manager
  3. How To Install Php Ubuntu
  4. Download And Install Php
  5. How To Install Php Linux

Installing OCI8 as a Shared Extension

The configuration shared option builds OCI8 as a shared library that can be dynamically loaded into PHP. Building a shared extension allows OCI8 to be upgraded easily without impacting the rest of PHP.

Yajra/laravel-oci8 v5.6.0 requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system. Yajra/laravel-oci8 5.6.x-dev requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.

Configure OCI8 using one of the following configure options.

  • If using the free » Oracle Instant Client libraries, then do:

    If Instant Client is installed from ZIP files, make sure to create the library symbolic link first, for example ln -s libclntsh.so.12.1 libclntsh.so.

    If using an RPM-based installation of Oracle Instant Client, the configure line will look like this:

    For example, --with-oci8=shared,instantclient,/usr/lib/oracle/12.1/client/lib

    Note that Oracle Instant Client support first appeared in PHP 4.3.11 and 5.0.4 and originally used the option --with-oci8-instant-client to configure PHP.

  • If using an Oracle database or full Oracle Client installation then do:

    Make sure the web server user (nobody, www) has access to the libraries, initialization files and tnsnames.ora (if used) under the $ORACLE_HOME directory. With Oracle 10gR2, you may need to run the $ORACLE_HOME/install/changePerm.sh utility to give directory access.

After configuration, follow the usual PHP building procedure, e.g. make install. The OCI8 shared extension oci8.so library will be created. It may need to be manually moved to the PHP extension directory, specified by the extension_dir option in your php.ini file.

To complete installation of OCI8, edit php.ini and add the line:

Active1 year, 2 months ago
Install

Summary of problem

I have oci8 installed for php 7.1.19

Running on Laravel Framework 5.6.3

//error i get when trying to install Yajra oci8 github for laravel

Your requirements could not be resolved to an installable set of packages.

Problem 1

  • yajra/laravel-oci8 v5.6.0 requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.

  • yajra/laravel-oci8 5.6.x-dev requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.

  • yajra/laravel-oci8 5.6.x-dev requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.

  • Installation request for yajra/laravel-oci8 5.6.* -> satisfiable by yajra/laravel-oci8[5.6.x-dev, v5.6.0].

To enable extensions, verify that they are enabled in your .ini files:

  • C:wampbinphpphp7.1.9php.ini

You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

//

When i make a test.php in WAMP it works and no errors, but now i want it to work for laravel as well.

Code snippet

The command i run to install it in laravel is:

'composer require yajra/laravel-oci8:'5.6.*'

I understand that this might not be the right command, soo i tried this:

'composer require yajra/laravel-oci8:'7.1.19'

But that one doesnt exists

I am kinda stuck now. Anyone can help me?

Nanko PrinzhornNanko Prinzhorn
How To Install Oci8 Php Code

How To Install Oci8 Php Code Checker

1 Answer

Download OCI8 2.1.8 - 7.2 Thread Safe (TS) x86

Extract the file to xamppext

Add code to file xamppphp.ini

extension=php_oci8.dll

How To Install Php Manager

Download the 'Instant Client Package - Basic' for Windows from the OTN Instant Client page. http://www.oracle.com/technetwork/topics/winsoft-085727.html

Because PHP is 32 bit, use the 32 bit version of Instant Client.(http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html)

How

Instant Client Package - Basic Version 12.2.0.1.0

How To Install Php Ubuntu

Extract the Instant Client folder to C:instantclient_12_2

Edit the Windows PATH environment setting and add this path

Restart

MrZzippo pMrZzippo p

Download And Install Php

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

How To Install Php Linux

Not the answer you're looking for? Browse other questions tagged phporaclelaravel-5ocioci8 or ask your own question.