Re: [PHP-DB] Oracel 9i connection problems.

2002-04-16 Thread Paul Edmondson


OK just tested against Apache-1.3.23 with the same result apache seg
faults.

Apache configured as before. PHP configured as before except with
--with-apxs=

Extra information:

ldd /usr/local/apache-1.3.23/bin/httpd 
libpthread.so.0 = /lib/libpthread.so.0 (0x40016000)
libm.so.6 = /lib/libm.so.6 (0x4002c000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x4004e000)
libexpat.so.0 = /usr/lib/libexpat.so.0 (0x4009)
libdl.so.2 = /lib/libdl.so.2 (0x400b2000)
libc.so.6 = /lib/libc.so.6 (0x400b6000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)


On Tue, 2002-04-16 at 16:49, Thies C. Arntzen wrote:
 On Tue, Apr 16, 2002 at 04:48:19PM +0100, Paul Edmondson wrote:
  Hello there,
  
  I have a problem with getting php-4.2.0 RC4 connecting to an Oracle 9i
  (9.0.1) database running locally. 
  
  I am running Apache 2.0.35 on SuSE 7.3.
 
 does it work with apache 1.3.x?
  
  The problem that I have is when trying to initiate a connection to the
  database apache seg faults.
  
  An example of the code that causes the segmentation fault:
  
  ?php
  echo Trying to connect;
  $conn =   ocilogon(scott, tiger, );
  echo Connected; // this is never reached
  ?
  
  Other things that may help track down the problem.
  
  Apache has been configured with:
  ./configure --prefix=/usr/local/httpd-2.0.35 --enable-module=so
  
  PHP configured with:
  ./configure --with-oci8 --with-apxs2=/usr/local/httpd-2.0.35
  
  Also tried with:
  ./configure --with-oci8 --with-apxs2=/usr/local/httpd-2.0.35 \
  --enable-sigchild
  
  ${ORACLE_HOME}/lib appears in ld.so.conf
  
  Thanks in advance for any help.
  
  
  
  -- 
  
  Paul Edmondson, Software Engineer
  Yospace: Creating Value for Wireless
  7 The Courtyard, High Street, Staines, UK, TW18 4DR
  Tel: +44 1784 466388
  Fax: +44 1784 466387
  http://www.yospace.com
  
  
  
  
  
  -- 
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 

Paul Edmondson, Software Engineer
Yospace: Creating Value for Wireless
7 The Courtyard, High Street, Staines, UK, TW18 4DR
Tel: +44 1784 466388
Fax: +44 1784 466387
http://www.yospace.com

This email and any files transmitted with it are confidential and
intended
solely for the use of the individual or entity to whom they are
addressed.
Any unauthorised dissemination or copying of this email or its
attachments,
and any use or disclosure of any information contained in them, is
strictly
prohibited and may be illegal. If you have received the email in error
please notify [EMAIL PROTECTED] and delete it from your system.



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Oracel 9i connection problems.

2002-04-16 Thread Pedro . Sere

Put this on your php page


Putenv(ORACLE_HOME=/home/oracle/8.0.5);
Putenv(LD_LIBRARY_PATH=/home/oracle/8.0.5/lib);
Putenv(TWO_TASK=WAGNER_PC);


and test  it work with version 8

Pedro SERE


P.SERE
   EU  - COMMISSION  -  SG
  Internal Information
---
BREY 10/77TEL: (0229)66227FAX:(0229) 59728 



-Original Message-
From: Paul Edmondson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 6:19 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Oracel 9i connection problems.



OK just tested against Apache-1.3.23 with the same result apache seg
faults.

Apache configured as before. PHP configured as before except with
--with-apxs=

Extra information:

ldd /usr/local/apache-1.3.23/bin/httpd 
libpthread.so.0 = /lib/libpthread.so.0 (0x40016000)
libm.so.6 = /lib/libm.so.6 (0x4002c000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x4004e000)
libexpat.so.0 = /usr/lib/libexpat.so.0 (0x4009)
libdl.so.2 = /lib/libdl.so.2 (0x400b2000)
libc.so.6 = /lib/libc.so.6 (0x400b6000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)


On Tue, 2002-04-16 at 16:49, Thies C. Arntzen wrote:
 On Tue, Apr 16, 2002 at 04:48:19PM +0100, Paul Edmondson wrote:
  Hello there,
  
  I have a problem with getting php-4.2.0 RC4 connecting to an Oracle 9i
  (9.0.1) database running locally. 
  
  I am running Apache 2.0.35 on SuSE 7.3.
 
 does it work with apache 1.3.x?
  
  The problem that I have is when trying to initiate a connection to the
  database apache seg faults.
  
  An example of the code that causes the segmentation fault:
  
  ?php
  echo Trying to connect;
  $conn =   ocilogon(scott, tiger, );
  echo Connected; // this is never reached
  ?
  
  Other things that may help track down the problem.
  
  Apache has been configured with:
  ./configure --prefix=/usr/local/httpd-2.0.35 --enable-module=so
  
  PHP configured with:
  ./configure --with-oci8 --with-apxs2=/usr/local/httpd-2.0.35
  
  Also tried with:
  ./configure --with-oci8 --with-apxs2=/usr/local/httpd-2.0.35 \
  --enable-sigchild
  
  ${ORACLE_HOME}/lib appears in ld.so.conf
  
  Thanks in advance for any help.
  
  
  
  -- 
  
  Paul Edmondson, Software Engineer
  Yospace: Creating Value for Wireless
  7 The Courtyard, High Street, Staines, UK, TW18 4DR
  Tel: +44 1784 466388
  Fax: +44 1784 466387
  http://www.yospace.com
  
  
  
  
  
  -- 
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 

Paul Edmondson, Software Engineer
Yospace: Creating Value for Wireless
7 The Courtyard, High Street, Staines, UK, TW18 4DR
Tel: +44 1784 466388
Fax: +44 1784 466387
http://www.yospace.com

This email and any files transmitted with it are confidential and
intended
solely for the use of the individual or entity to whom they are
addressed.
Any unauthorised dissemination or copying of this email or its
attachments,
and any use or disclosure of any information contained in them, is
strictly
prohibited and may be illegal. If you have received the email in error
please notify [EMAIL PROTECTED] and delete it from your system.



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Oracel 9i connection problems.

2002-04-16 Thread Thies C. Arntzen

On Tue, Apr 16, 2002 at 06:28:19PM +0200, [EMAIL PROTECTED] wrote:
 Put this on your php page
 
 
 Putenv(ORACLE_HOME=/home/oracle/8.0.5);
 Putenv(LD_LIBRARY_PATH=/home/oracle/8.0.5/lib);
 Putenv(TWO_TASK=WAGNER_PC);

no. do not use PutEnv or SetEnv in httpd.conf!

please set _ALL_ needed oracle env-vars in /etc/init.d/http

using PutEnv won't work!

re,
tc

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php