473,786 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

oci8 not showing in phpinfo()

Hello All,

I have reviewed various posts in regard to Oracle and PHP.
I am running Apache 2.0.59, on Windows XP, with PHP 5.2.

I would like to connect using PHP to a remote oracle db (ver. 7)
I have uncommented out the php_oci8.dll and the older php_oracle.dll
in the php.ini file
the ini file resides in c:\php\php.ini

The oracle info page (http://www.oracle.com/technology/pub/notes/
technote_php_in stant.html) outlines the steps for this.

I have stopped and restarted apache, no luck, I do not see support for
oracle on the info page.
I do see mysql, etc.

I have the path set to the location for the oracle dlls, etc.

I can connect to the db using MS Access and the file dsn.

any idea what I am missing?
eholz1
Jun 27 '08 #1
7 22096
eholz1 wrote:
I have uncommented out the php_oci8.dll and the older php_oracle.dll
in the php.ini file
the ini file resides in c:\php\php.ini
Let's make sure, just for the sake of it...

Put a call in any one of your pages to phpinfo(); check that the.ini file
loaded matches the oen you modified, and that there is some information
about the oci8 module being loaded.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Más vale ser cobarde un minuto, que muerto todo el resto de la vida.
Jun 27 '08 #2
On Jun 19, 2:34 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:
eholz1 wrote:
I have uncommented out the php_oci8.dll and the older php_oracle.dll
in the php.ini file
the ini file resides in c:\php\php.ini

Let's make sure, just for the sake of it...

Put a call in any one of your pages to phpinfo(); check that the.ini file
loaded matches the oen you modified, and that there is some information
about the oci8 module being loaded.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Más vale ser cobarde un minuto, que muerto todo el resto de la vida.
Ha, I did think of that. I went to my php.ini file, and added a
comment char (;) to the mysqli extension line to see if it WOULD NOT
SHOW in my phpinfo page if I had a comment in front of the line. It
worked, put semi-colon in front of line, and no mysqli info on my
phpinfo page. if I remove the comment from that line, the mysqli
extension info appears.

So, for some unknown reason, the oci8 extension, commented or not does
not show. I do have a PATH statement that has the path to the oracle
dlls (for Oracle instantclient), and the php_oci8.dll file does exist
in my c:\php\ext directory. I guess I am out of luck.

Muchas Gracias

eholz1
Jun 27 '08 #3
eholz1 wrote:
[...] and the php_oci8.dll file does exist
in my c:\php\ext directory. I guess I am out of luck.
Well, I'm not a windows kind of guy, so let me ask: from where did you
download both PHP and the oracle libraries?

Also, have you tried to put the full path to the oracle library in php.ini?
Any relevant messages in the Apache logs?
Cheers,
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Proudly running Debian Linux with 2.6.24-1-amd64 kernel, KDE 3.5.9, and PHP
5.2.6-1 generating this signature.
Uptime: 00:54:42 up 11 days, 8:42, 4 users, load average: 0.93, 0.91,
0.82

Jun 27 '08 #4
eholz1 wrote:
On Jun 19, 2:34 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:
>eholz1 wrote:
>>I have uncommented out the php_oci8.dll and the older php_oracle.dll
in the php.ini file
the ini file resides in c:\php\php.ini
Let's make sure, just for the sake of it...

Put a call in any one of your pages to phpinfo(); check that the.ini file
loaded matches the oen you modified, and that there is some information
about the oci8 module being loaded.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Más vale ser cobarde un minuto, que muerto todo el resto de la vida.

Ha, I did think of that. I went to my php.ini file, and added a
comment char (;) to the mysqli extension line to see if it WOULD NOT
SHOW in my phpinfo page if I had a comment in front of the line. It
worked, put semi-colon in front of line, and no mysqli info on my
phpinfo page. if I remove the comment from that line, the mysqli
extension info appears.

So, for some unknown reason, the oci8 extension, commented or not does
not show. I do have a PATH statement that has the path to the oracle
dlls (for Oracle instantclient), and the php_oci8.dll file does exist
in my c:\php\ext directory. I guess I am out of luck.

Muchas Gracias

eholz1
This is a typical symptom of not having the correct libraries loaded.
It could be your extension directory, or more likely, the oracle
libraries (or something they require) are not available.

Check your phpinfo() command. Exactly what does it show for
"Configurat ion File (php.ini) Path". Also, under the "Apache
Environment" section, verify the PATH value - and ensure your Oracle
libraries (and everything they require) are in the PATH.

Also ensure you have the latest Oracle libraries on your system.

Finally - are you loading PHP as a CGI or Apache module?

It's a bit tricky to set up sometimes, but it does work.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Jun 27 '08 #5
On Jun 19, 4:59 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
eholz1 wrote:
On Jun 19, 2:34 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:
eholz1 wrote:
I have uncommented out the php_oci8.dll and the older php_oracle.dll
in the php.ini file
the ini file resides in c:\php\php.ini
Let's make sure, just for the sake of it...
Put a call in any one of your pages to phpinfo(); check that the.ini file
loaded matches the oen you modified, and that there is some information
about the oci8 module being loaded.
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Más vale ser cobarde un minuto, que muerto todo el resto de la vida.
Ha, I did think of that. I went to my php.ini file, and added a
comment char (;) to the mysqli extension line to see if it WOULD NOT
SHOW in my phpinfo page if I had a comment in front of the line. It
worked, put semi-colon in front of line, and no mysqli info on my
phpinfo page. if I remove the comment from that line, the mysqli
extension info appears.
So, for some unknown reason, the oci8 extension, commented or not does
not show. I do have a PATH statement that has the path to the oracle
dlls (for Oracle instantclient), and the php_oci8.dll file does exist
in my c:\php\ext directory. I guess I am out of luck.
Muchas Gracias
eholz1

This is a typical symptom of not having the correct libraries loaded.
It could be your extension directory, or more likely, the oracle
libraries (or something they require) are not available.

Check your phpinfo() command. Exactly what does it show for
"Configurat ion File (php.ini) Path". Also, under the "Apache
Environment" section, verify the PATH value - and ensure your Oracle
libraries (and everything they require) are in the PATH.

Also ensure you have the latest Oracle libraries on your system.

Finally - are you loading PHP as a CGI or Apache module?

It's a bit tricky to set up sometimes, but it does work.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===
Hello again,

I will check the items that Jerry mentions - there is a lot to double
check.
I will get back to the group, if successful!
Thanks

eric
Jun 27 '08 #6
eholz1 wrote:
On Jun 19, 4:59 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>eholz1 wrote:
>>On Jun 19, 2:34 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux .-.punto.-.orgwrote:
eholz1 wrote:
I have uncommented out the php_oci8.dll and the older php_oracle.dll
in the php.ini file
the ini file resides in c:\php\php.ini
Let's make sure, just for the sake of it...
Put a call in any one of your pages to phpinfo(); check that the.ini file
loaded matches the oen you modified, and that there is some information
about the oci8 module being loaded.
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Más vale ser cobarde un minuto, que muerto todo el resto de la vida.
Ha, I did think of that. I went to my php.ini file, and added a
comment char (;) to the mysqli extension line to see if it WOULD NOT
SHOW in my phpinfo page if I had a comment in front of the line. It
worked, put semi-colon in front of line, and no mysqli info on my
phpinfo page. if I remove the comment from that line, the mysqli
extension info appears.
So, for some unknown reason, the oci8 extension, commented or not does
not show. I do have a PATH statement that has the path to the oracle
dlls (for Oracle instantclient), and the php_oci8.dll file does exist
in my c:\php\ext directory. I guess I am out of luck.
Muchas Gracias
eholz1
This is a typical symptom of not having the correct libraries loaded.
It could be your extension directory, or more likely, the oracle
libraries (or something they require) are not available.

Check your phpinfo() command. Exactly what does it show for
"Configurati on File (php.ini) Path". Also, under the "Apache
Environment" section, verify the PATH value - and ensure your Oracle
libraries (and everything they require) are in the PATH.

Also ensure you have the latest Oracle libraries on your system.

Finally - are you loading PHP as a CGI or Apache module?

It's a bit tricky to set up sometimes, but it does work.

--
============== ====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attg lobal.net
============== ====

Hello again,

I will check the items that Jerry mentions - there is a lot to double
check.
I will get back to the group, if successful!
Thanks

eric
Come back if you're not successful, also - we'll try some other things! :-)

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Jun 27 '08 #7
On Jun 24, 1:07 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
eholz1 wrote:
On Jun 19, 4:59 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
eholz1 wrote:
On Jun 19, 2:34 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinu x.-.punto.-.orgwrote:
eholz1 wrote:
I have uncommented out the php_oci8.dll and the older php_oracle.dll
in the php.ini file
the ini file resides in c:\php\php.ini
Let's make sure, just for the sake of it...
Put a call in any one of your pages to phpinfo(); check that the.inifile
loaded matches the oen you modified, and that there is some information
about the oci8 module being loaded.
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Más vale ser cobarde un minuto, que muerto todo el resto de la vida.
Ha, I did think of that. I went to my php.ini file, and added a
comment char (;) to the mysqli extension line to see if it WOULD NOT
SHOW in my phpinfo page if I had a comment in front of the line. It
worked, put semi-colon in front of line, and no mysqli info on my
phpinfo page. if I remove the comment from that line, the mysqli
extension info appears.
So, for some unknown reason, the oci8 extension, commented or not does
not show. I do have a PATH statement that has the path to the oracle
dlls (for Oracle instantclient), and the php_oci8.dll file does exist
in my c:\php\ext directory. I guess I am out of luck.
Muchas Gracias
eholz1
This is a typical symptom of not having the correct libraries loaded.
It could be your extension directory, or more likely, the oracle
libraries (or something they require) are not available.
Check your phpinfo() command. Exactly what does it show for
"Configurat ion File (php.ini) Path". Also, under the "Apache
Environment" section, verify the PATH value - and ensure your Oracle
libraries (and everything they require) are in the PATH.
Also ensure you have the latest Oracle libraries on your system.
Finally - are you loading PHP as a CGI or Apache module?
It's a bit tricky to set up sometimes, but it does work.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===
Hello again,
I will check the items that Jerry mentions - there is a lot to double
check.
I will get back to the group, if successful!
Thanks
eric

Come back if you're not successful, also - we'll try some other things! :-)

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===
Hello Again,

I got the oracle stuff to show up in the phpinfo() area. Here is what
I did:
First - I double checked the items in your (Jerry's) email. Made sure
I thought I had the correct settings, etc.

Went back to this page from Oracle:
http://www.oracle.com/technology/pub...p_instant.html

Re-read (3 times) the section on windows install - me have PHP 5.2,
Apache loads it as a module (running Window XP SP2).

Made sure I had the dlls from the instant client. Then saw the note
in technote page,
add the instantclient path BEFORE ANY OTHER ORACLE PATH VAR.
I then modified my ENV vars (both PATH, and Path) with the path to the
Oracle dlls to put location before any others.

Rebooted the computer (!) - This put the PATH in the PHP info page,
and the "oci8" stuff showed up in the info page.

I have not tried to connect to the db yet....!:)

Thanks for the help,

eric
Jun 27 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
12687
by: Chad The Man | last post by:
I have been developing some applications on suse 9 / apache 1.37 / php 4.3.4 / Oracle 9i / OCI8. We recently moved servers, apache works fine, php works fine, oracle works fine... however, trying to connect to oracle from php it dies with the following error : Warning: ocilogon(): _oci_open_session: OCIHandleAlloc OCI_HTYPE_SVCCTX: OCI_INVALID_HANDLE Using SQL plus I can connect just fine. The variables are all set in apache and the...
8
19550
by: PIII450 | last post by:
Hi all, We had to switch to windows 2003 server with IIS and now i've got a problem with the OCI8 :(( Big time! I know php works. I have tested this. I know the oracle\bin is in the path. I checked. At first I just made the extension active and then PHP stopped. Pages wouldn't load and the IIS had to be restarted.
1
3383
by: watayoune | last post by:
Hi, My apache (on win) crash when i start it, after i had oci8 extensions in php.ini ! 1. i had extension phph_oci8.dll in php.ini 2. i've got a php_oci8.dll in my php extensions dir 3. my exetnsion dirs are c:\php\extensions\ in php.ini 4. i've installed oci8 client 5. i've put my oci.dll (from oracle_home) in my windows dir (tips found
3
6493
by: Ben Fitzgerald | last post by:
Hi I'm having an irritating problem. I've got php installed with the compile-time flag --oci8=$ORACLE_HOME. I can make connections to the oracle db no problem. Updating, selecting etc. is all good. However, when I use a web page that calls a stored procedure:
5
2880
by: Mladen Gogala | last post by:
The latest version of OCI8 1.2.1 doesn't work with LOB fields. There was an open bug, but Tony2001 was his usual helpful self, so he removed the bug and flatly denied its existence. I had to download 1.2.0 and reading CLOB fields started working again. Unfortunately, DBMS_METADATA.GET_DDL returns CLOB, so I was forced to discover this non-existing bug. PECL bug system is useless and maintainers are more suited for inquisitors then for...
5
8171
by: danish | last post by:
I download the oci-1.2.2.tgz file and generated the oci8.so file. After adding the extension=oci8.so in php.ini I get the error unable to load dynamic library /usr/lib/php4/oci8.so
0
3125
by: ravinder1983 | last post by:
Hi All, I am new to this world of php. I tried getting oci8 work with php but to no avail. The error i recieve is "Warning: ocilogon() : OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory". My Oracle version is 10.2.0 and php version is 5.1.6 I have set the following environment variables: ORACLE_HOME, TNS_ADMIN, NLS_LANG,LD_LIBRARY_PATH in the...
1
1982
by: SmartPHP | last post by:
Hello friends, I'm using PHP with apache...my problem is i'm not able to load OCI8.dll....when i'm trying to make connection to database i'm not able to connect and it's not showing any error...my oci8.dll is present in my extensions directory and i have uncommented that...
5
4764
by: kovidranjan | last post by:
Dear Sir, I have installed oracle 11.1.0.6 on windows 2003 sp2 and sqlplus etc everything is running fine.I have iis6 with cgi I have installed php 5.3.1 non thread safe and has done everything mentioned in the underground manual ,technote etc like copying php_oc8_11g in php /ext directory setting php.ini path to exenstion_dir extension=php_oci8_11g etc also in PATH variables but whenever I am trying to run oci_connect it gives fatal...
0
9491
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.