Binding php on Apache on Windows 7 to Oracle

Discuss server installationa nd configuration issues here

Moderators: macek, egami, gesf

rodnower
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Dec 01, 2010 6:08 am

Binding php on Apache on Windows 7 to Oracle

Postby rodnower » Wed Dec 01, 2010 6:13 am

Hello, I have php 5, Apache 2 and Oracle Express Edition 10 g

I'm tring to use oci_connect() function, but get error:

PHP Fatal error: Call to undefined function oci_connect() in ...


I unzipped Instant Client to "C:\instantclient_11_2" and updated system PATH. I'm uncommented

extension=php_oci8.dll


line in php.ini file, and rebooted web server.
This is Configuring Command from phpinfo():

cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static"


I see that path in --with-oci8 is incorrect, but I don't know where I change it, and whether it is what I need to do.
Also there is no string "OCI8 Support enabled" in phpinfo output.

Is there some solution?

rodnower
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Dec 01, 2010 6:08 am

Re: Binding php on Apache on Windows 7 to Oracle

Postby rodnower » Sun Dec 05, 2010 11:43 am

The solution was to uncomment and set extension_dir parameter in php.ini file.


Return to “Server installation and configuration”

Who is online

Users browsing this forum: No registered users and 1 guest

cron