Oracle OCI not starting on php 5 windows server 2003sp2 IIS 6
Posted on 2009-12-30
I inherited a task a task to start up a PHP server on a wintel box. I'm not a php or unix kind of guy. Basically I have Php installed and running phpinfo() works fine.
I cannot get the php_oci8.dll to load and it is needed for a project.
Full oracle 9i client installed.
I can sqlplus myuser/mypwd@mydb successfully.
I have the error going to the system log and it error says
Event Type: Information
Event Source: PHP-5.2.12
Event Category: (6)
Event ID: 2
Time: 8:43:31 AM
The description for Event ID ( 2 ) in Source ( PHP-5.2.12 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: php, PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5\ext\php_oci8.dll' - The specified procedure could not be found.
in Unknown on line 0.
I enabled php_ldap.dll in the php.ini file and it shows up in phpinfo() so I'm pretty confident that my ini is ok. I'm thinking that the pho_oci8.dll is not finding what it needs from oracle and failing to start up.
Parts of my php.ini file
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php5\ext"
; Windows Extensions
C:\oracle\ora92\bin;C:\ColdFusion8\verity\k2\_nti40\bin;C:\CFusionMX7\verity\k2\_nti40\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\php5;
Running php 5.2.12 ISAPI
I have not loaded PECL as I'm not quite sure what that is or how to do it in windows world or if I need it.