OCI dll not enabled in phpinfo page

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
PushpaRavi
Forum Newbie
Posts: 2
Joined: Sat Apr 19, 2008 4:45 am

OCI dll not enabled in phpinfo page

Post by PushpaRavi »

Hi Friends,

oci dll is not enabled on phpinfo() page. I tried all possible solutions for nearly a week, still it does not work.

I am getting the error "Fatal error: Call to undefined function oci_connect() " when i connect to oracle. DB
And morever i am not getting any error on phpinfo page, though i have set error_messages on. Really frustrated, can anyone help me out.

Apache 2.0.59 was previously installed by another user.
I installed PHP 5.2.5 on windows xp. The phpinfo() page works fine. Except for OCI and LDAP details not displayed. Whereas if i run php -i in command line i can see they are enabled.

I have moved the php.ini to windows directory and copied php5ts.dll to windows directory

I made following changes in php.ini.
[PHP_LDAP]
extension=php_ldap.dll
[PHP_OCI8]
extension=php_oci8.dll
[PHP_ORACLE]
;extension=php_oracle.dll

doc_root = C:\Program Files\Apache Group\Apache2\htdocs
extension_dir ="C:\Program Files\PHP\ext\"

And following changes in httpd.conf
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll"
AddType application/x-httpd-php .php .html .htm .phtml
AddType application/x-httpd-php-source .phps

I have installed instant client 10g and set its path in the environment variable.
I also set the NLS_Lang to AMERICAN_AMERICA.WE8ISO8859P1
and TNS_ADMIN and LD_LIBRARY_PATH to instantclient path


Please advice me what i am missing!!
Post Reply