Oracle oci extension not working.


  • | 308 points

    Hello,

    I have problem with extension oci8.
    This extension is enabled but doesn't working end not showing in phpinfo()

    How can enable this extension?

    Regards,


  • | 308 points

    I try change configuration in php.ini
    When uncomment
    extension_dir = "ext"

    comment

    ; extension_dir = "C:/laragon/bin/php/php-7.1.7-Win32-VC14-x64/ext"

    and restart apache laragon automatically back to configuration:

    ; extension_dir = "ext"
    extension_dir = "C:/laragon/bin/php/php-7.1.7-Win32-VC14-x64/ext"

    Next when change in php.ini this
    extension_dir = "C:/laragon/bin/php/php-7.1.7-Win32-VC14-x64/ext"

    on this
    extension_dir = "C:\laragon\bin\php\php-7.1.7-Win32-VC14-x64\ext"

    and restart apache laragon automatically back to configuration:
    extension_dir = "C:/laragon/bin/php/php-7.1.7-Win32-VC14-x64/ext"

    In command line is:
    Warning: PHP Startup: Unable to load dynamic library 'C:/laragon/bin/php/php-7.1.7-Win32-VC14-x64/ext\php_oci8_12c.dll'

    Problem is in:
    /ext\php_oci8_12c.dll'

    Because should be
    /ext/php_oci8_12c.dll'

    Why laragon same change file php.ini


  • administrators
    | 66215 points

    I don't think the extension dir is the issue. I'll check and get back to you soon.


  • administrators
    | 66215 points

    @Tomasz : Did you install the Oracle Instant Client 64-bit?
    http://www.oracle.com/technetwork/topics/winx64soft-089540.html


  • | 114 points

    @Tomasz 64 bit ?


  • | 308 points

    Dll 'C:/laragon/bin/php/php-7.1.7-Win32-VC14-x64/ext\php_oci8_12c.dll' is in installation packages laragon, bat I try download oci for 64Bit.

    I check massage command line and wright this palce.


  • administrators
    | 66215 points

    @Tomasz : Don't change the extension_dir as Laragon always ensures it is right for you - even you rename your Laragon's installation dir.

    I believe you missed some steps.
    Check out my tutorial about how to install Oracle oci Extension for your case here:
    https://forum.laragon.org/topic/607/tutorial-how-to-install-php-s-oracle-oci-extension


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.