Re: OT: PHP 5.6 with ohs in FM11g on Win2k12 (x64)

  • From: Patrice sur GMail <patrice.boivin@xxxxxxxxx>
  • To: Mladen Gogala <gogala.mladen@xxxxxxxxx>
  • Date: Wed, 15 Feb 2017 15:36:27 -0400

An update, I ended up installing plain 32-bit apache 2.4 on the FM12c
server with 32-bit PHP and the 32-bit 11g instantclient.  Using a different
port of course than ohs, and a redirect.  Nothing else worked for me.

Regards, Pat.

On Feb 7, 2017 13:37, "Patrice sur GMail" <patrice.boivin@xxxxxxxxx> wrote:

that's partly my point

the oci8 extension is included by default in the PHP distribution for
Windows but I wonder how many people actually try it.

(like I haven't tried the ProgreSQL or MySQL ones, LOL).

On Tue, Feb 7, 2017 at 12:42 PM, Mladen Gogala <gogala.mladen@xxxxxxxxx>
wrote:

Sorry, I don't use Windows. I am a Linux guy.


On 02/07/2017 10:46 AM, Patrice sur GMail wrote:

Well, oci8 in the WAMP 3 server doesn't work for me either.

I did install the Microsoft Visual C++ redistributables that match what
was used to compile PHP for windows.  VC9, VC10, VC11, VC12, VC13, VC15

I am using the 64-bit instantclient

D:\PHP>deplister php5apache2_4.dll
php5ts.dll,OK
libhttpd.dll,OK
libapr-1.dll,OK
libaprutil-1.dll,OK
MSVCR110.dll,OK
KERNEL32.dll,OK

D:\PHP>deplister ext\php_oci8_12c.dll
php5ts.dll,OK
OCI.dll,OK
MSVCR110.dll,OK
KERNEL32.dll,OK

D:\PHP>php --ri oci8

oci8

OCI8 Support => enabled
OCI8 DTrace Support => disabled
OCI8 Version => 2.0.11
Revision => $Id: 8effa3c719ada4f4f79587ac85aca57b3b9f9b38 $
Oracle Run-time Client Library Version => 12.1.0.2.0
Oracle Compile-time Instant Client Version => 12.1

Directive => Local Value => Master Value
oci8.max_persistent => -1 => -1
oci8.persistent_timeout => -1 => -1
oci8.ping_interval => 60 => 60
oci8.privileged_connect => Off => Off
oci8.statement_cache_size => 20 => 20
oci8.default_prefetch => 100 => 100
oci8.old_oci_close_semantics => Off => Off
oci8.connection_class => no value => no value
oci8.events => Off => Off

Statistics =>
Active Persistent Connections => 0
Active Connections => 0

also,
D:\PHP>php -r "var_dump(function_exists('oci_connect'));"
bool(true)


php --ri oci8 is happy but phpinfo doesn't list oci8 and attempts to
connect using oci8 returns
*Fatal error*: Call to undefined function oci_connect() in
*D:\Oracle\user_projects\domains\base_domain\config\fmwconfig\components\OHS\instances\ohs1\htdocs\oci8_connect.php*
 on
line *4*

​In the WAMP 3 server I uncommented the oci8 extension reference, then
started gettting errors like oci.dll is missing from your computer.  I also
had to download another Visual C++ extension.​

​​So even in the WAMP distribution oci8 doesn't work for me.  I left a
note on their support site.

the saga continues.



--
Mladen Gogala
Oracle DBA
Tel: (347) 321-1217




-- 


-- Patrice
My profiles: [image: Facebook]
<http://www.facebook.com/home.php?#!/profile.php?id=100000206805521>[image:
LinkedIn] <http://ca.linkedin.com/pub/patrice-boivin/a/933/5a9>[image:
Twitter] <http://www.twitter.com/PatriceBoivin>

Other related posts: