473,511 Members | 16,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

apache php and oracle

Hello all,

I am trying to get php to work with oracle and apache.

when I execute a script with ph that connects to an oracle database it
seems to work.

php without "oracle stuff" in apache seems to work.

However when I try the script that connects to the database via the web
I get messages like:
OCISessionBegin: ORA-03106: fatal two-task communication protocol error in

any ideas ? (does php not see the ORACLE_HOME and ORACLE_BIN
environment variables ?)

thanks,

Ron
Sep 11 '06 #1
2 1752
Ron Croonenberg wrote:
Hello all,

I am trying to get php to work with oracle and apache.

when I execute a script with ph that connects to an oracle database it
seems to work.

php without "oracle stuff" in apache seems to work.

However when I try the script that connects to the database via the web
I get messages like:
OCISessionBegin: ORA-03106: fatal two-task communication protocol error in

any ideas ? (does php not see the ORACLE_HOME and ORACLE_BIN
environment variables ?)

thanks,

Ron
Hi Ron,

I cannot help you with Oracle connecting, but if you want to test things
concerning environmentvariables, have a look at www.php.net and lookup
putenv() function.

Good luck.

Regards,
Erwin Moller
Sep 12 '06 #2
On Mon, 11 Sep 2006 20:00:17 -0400, Ron Croonenberg wrote:
owever when I try the script that connects to the database via the web
I get messages like:
OCISessionBegin: ORA-03106: fatal two-task communication protocol error in

any ideas ? (does php not see the ORACLE_HOME and ORACLE_BIN
environment variables ?)
Try testing it with phpinfo(). It will show you oracle home and oracle sid.
What is "ORACE_BIN" for? Here is what my environment looks like:

$ php -r "phpinfo();"|grep -i oracle
Oracle Version =>
Compile-time ORACLE_HOME =>
TNS_ADMIN =/oracle/product/10g/network/admin
ORACLE_HOME =/oracle/product/10g
PATH =/oracle/product/10g/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin:/usr/local/java/bin:/usr/lib/qt-3.3/bin:/home/mgogala/bin:.
LD_LIBRARY_PATH =/oracle/product/10g/lib
ORA_NLS10 =/oracle/product/10g/nls/data
_SERVER["TNS_ADMIN"] =/oracle/product/10g/network/admin
_SERVER["ORACLE_HOME"] =/oracle/product/10g
_SERVER["PATH"] =/oracle/product/10g/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin:/usr/local/java/bin:/usr/lib/qt-3.3/bin:/home/mgogala/bin:.
_SERVER["LD_LIBRARY_PATH"] =/oracle/product/10g/lib
_SERVER["ORA_NLS10"] =/oracle/product/10g/nls/data

Of course, to get the picture about the environment of the httpd process,
you must execute phpinfo from within the httpd process. Also, if you're
running Oracle 10.2, you need to fix protection on $ORACLE_HOME/network
and $ORACLE_HOME/nls. Problem is that $ORACLE_HOME no longer has 755
premission.

Sep 24 '06 #3

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

Similar topics

0
1408
by: Mitch | last post by:
Here is the basic scenario: - Configuration data is gathered from Oracle servers then ftp'd to my apache / mysql server. - The apache / mysql server receives the datafile from the Oracle...
1
4234
by: Ana RM | last post by:
Hi, When I try to execute the command: apache -k start in the ORACLE_HOME/apache/apache it shows an error message: Syntax error on line 6 of c:/oracle/oraias/apache/conf/mod_osso.conf: unable...
4
4359
by: Wilson | last post by:
I am currently running Oracle 8i with Apache setup in a 4-CPUs Windows 2000 Server. Users on their workstations connect to Oracle through Internet Explorer which accesses Apache's DAD object and...
1
2434
by: vishnu mahendra | last post by:
i am new to javascript. Can any one please tell me how to connect javascript to oracle in windows 98 using apache.where i could get information on connecting? thank you in advance, vishnu
3
1771
by: one2001boy | last post by:
Hello, I can build php 5.04 with apache 1.33 statically with the apache configuration option: --activate-module=src/modules/php5 How can I build php 5.04 with apache 2.0.54 statically? It...
1
1314
by: Roka | last post by:
Hi all. I'm using PHP to connect Oracle with OCI . But a serious problem ocurred. If the network error happened that I cannot connect to Oracle DB , and then I fixed the network problem, but I...
3
5134
by: madunix | last post by:
My Server is suffering bad lag (High Utlization) I am running on that server Oracle10g with apache_1.3.35/ php-4.4.2 Web visitors retrieve data from the web by php calls through oci cobnnection...
0
2403
by: spookdog | last post by:
Hi, I have apache installed on our dmz server, while applying oracle patches some file must have gotten over-ridden as now when I start apache with httpdsctl startssl apache starts but not the...
3
2289
by: Raja | last post by:
Hi, I am trying to write a cgi program which would be executed on browser with Apache server installed. The program would make a connection to a database using cx_Oracle module and display...
0
7144
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...
0
7356
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,...
0
7427
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...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5671
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,...
1
5069
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...
0
4741
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...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
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...

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.