On Thu, Feb 10, 2000 at 06:32:02AM +0100, Magnus Stenman wrote:
> 
> I just downloaded the php-3.0.14-3.src.rpm from the
> redhat rawhide SRPM dir, and built (APXS) php RPMs from that.
> 
> Works fine with apache-mod_ssl and MySQL.
> 
> (it included a patch for removing pthreads)

Hi All,

I am closer to the solve of my php and apache-mod_ssl problems.
Including enabling oracle access which does have pthreads.

Build the redhat rpm (I used php-3.0.14-2.src.rpm) then do a

gcc -shared -fPIC -DCOMPILE_DL=1
    -I. -I/usr/include/apache \
    -I/u01/app/oracle/product/8.1.5/rdbms/demo \
    -I/u01/app/oracle/product/8.1.5/network/public \
    -I/u01/app/oracle/product/8.1.5/plsql/public \
        -o oci8.so \ ./functions/oci8.c \
    -L/u01/app/oracle/product/8.1.5/lib/ -lclntsh

And add this to the extensions in the php3.ini.

I am now trying to work out why I get random
 Warning: oci8_open_server: ORA-12154: TNS:could not resolve service
 name in db_oci8.inc on line 35 Database error: Link-ID == false
 (), OCILogon failed ORACLE Error: Session halted.
Every second or third reload of the page. But this is not a question
for here.

Rudi

> 
> /magnus
> 
> 
> On Thu, Feb 10, 2000 at 12:52:35AM +1100, Rudi Heitbaum wrote:
> > On Tue, Feb 08, 2000 at 02:46:09PM +0100, GOMEZ Henri wrote:
> > > apache-ssl is not apache-mod_ssl.
> > > 
> > > This problem is related to pthread inclusion somewhere
> > > in one of the modules. ie mod_php3 with mysql could
> > > add libpthread and sus make apache core.
> > 
> > Hi Henri,
> > 
> > Yes libphp.so here is pthreaded, but so is my mod_oracle_auth
> > which works fine.
> > 
> > ** 
> > ...
> > /u01/app/oracle/product/8.1.5/lib/libclntsh.so.8.0:
> >             libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
> >             libm.so.6 (GLIBC_2.1) => /lib/libm.so.6
> >             libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
> >             libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
> >             libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
> >             libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
> >             libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
> >             libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
> > ...
> > ** 
> > 
> > I will have a go at compiling with statics and let you know 
> > once I have tested this with Oracle 8.1.5.
> > 
> > 
> > > Check your libs via ldd -v of each module in apache list.
> > > Again i suspect mod_php3 with mysql. mod_php3 could use
> > > static mysql libs (and must) in this case...
> > > 
> > > -
> > > Henri Gomez                 ___[_]____
> > > EMAIL : [EMAIL PROTECTED]         (. .)                     
> > > PGP KEY : 4912D659    ...oOOo..(_)..oOOo...
> > > PGP Fingerprint : 8CAD0D50356DA7E45C540B010FFE39E8
> > > 
> > > 
> > > 
> > > >-----Original Message-----
> > > >From: Rudi Heitbaum [mailto:[EMAIL PROTECTED]]
> > > >Sent: Tuesday, February 08, 2000 1:46 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: RH 6.1 and apache-ssl RPM from ftp.zedz.net: Doesn't work?
> > > >
> > > >
> > > >On Tue, Feb 08, 2000 at 03:55:18PM +0900, Steve Frampton wrote:
> > > >
> > > >HI Steve,
> > > >
> > > >Just to let you know, I'm in the same boat at the moment but with
> > > >Oracle. It works without a database, or with postgres compiled as
> > > >a seperate php module.
> > > >
> > > >I suggest you do the following to see if your problem is similar:
> > > >
> > > >start httpd with:
> > > >
> > > ># /usr/sbin/httpd -X
> > > >
> > > >It should core dump,
> > > >
> > > >then do:
> > > >
> > > >gdb /usr/sbin/httpd core
> > > >(gdb) backtrace
> > > >... My output is ...
> > > >#0  0x4092d6a8 in pthread_reap_children () at manager.c:474
> > > >#1  0x400f43fa in _IO_new_file_close_it (fp=0x80c3198) at fileops.c:136
> > > >#2  0x400f027d in _IO_new_fclose (fp=0x80c3198) at iofclose.c:50
> > > >#3  0x4034a46f in php3_init_config () from /usr/lib/apache/libphp3.so
> > > >#4  0x4033fe77 in php3_config_ini_startup () from 
> > > >/usr/lib/apache/libphp3.so
> > > >#5  0x40340992 in php3_module_startup () from 
> > > >/usr/lib/apache/libphp3.so
> > > >#6  0x4033e4da in php3_create_dir () from /usr/lib/apache/libphp3.so
> > > >#7  0x80555b4 in ap_single_module_configure ()
> > > >#8  0x80502ed in ap_get_server_built ()
> > > >#9  0x80544f4 in ap_clear_module_list ()
> > > >.... ..... .....
> > > >
> > > >Thus it looks like a php problem or a problem introduced with the
> > > >apxs configuration:
> > > >
> > > >(-O2 -m486 -fno-strength-reduce -DLINUX=2 -DMOD_SSL=205100 -DEAPI
> > > >-DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite `../apaci`)
> > > >
> > > >....
> > > >> After starting the server, connections on both ports 80 and 443 are
> > > >> refused, and there are no "httpd" processes in memory.  There *are*,
> > > >> however, a couple of gcache processes.  There are no error 
> > > >messages in any
> > > >> of the httpd logs, the only thing that appears after 
> > > >starting the server
> > > >> is the following in ssl_engine_log:
> > > >> 
> > > >> [info]  Server: Apache/1.3.9, Interface: mod_ssl/2.4.9, 
> > > >Library: OpenSSL/0.9.4
> > > >> [info]  Init: 1st startup round (still not detached)
> > > >> [info]  Init: Initializing OpenSSL library
> > > >> [info]  Init: Loading certificate & private key of SSL-aware 
> > > >server localhost:443
> > > >> [info]  Init: Generating temporary RSA private keys (512/1024 bits)
> > > >> [info]  Init: Configuring temporary DH parameters (512/1024 bits)
> > > >> 
> > > >> Those look normal enough.  But I can *not* interact with the 
> > > >server unless
> > > >> I comment out the LoadModule and AddModule lines.  :-(
> > > >> 
> > > >> Any ideas?
> > > >> 
> > > >> --------------< LINUX: The choice of a GNU generation. 
> > > >>--------------
> > > >> Steve Frampton    <[EMAIL PROTECTED]>    Japan 
> > > >Communications, Inc.
> > > >> Software Developer/Systems Administrator    http://www.j-com.co.jp/
> > > >> GNU Privacy Guard ID: D055EBC5  (see http://www.gnupg.org 
> > > >for details)
> > > >> GNU-PG Fingerprint: EEFB F03D 29B6 07E8 AF73  EF6A 9A72 F1F5 
> > > >D055 EBC5
> > > >> 
> > > >> 
> > > >> 
> > > >______________________________________________________________________
> > > >> Apache Interface to OpenSSL (mod_ssl)                   
> > > >www.modssl.org
> > > >> User Support Mailing List                     
> > > > [EMAIL PROTECTED]
> > > >> Automated List Manager                            
> > > >[EMAIL PROTECTED]
> > > >Regards
> > > >
> > > >Rudi
> > > >
> > > >--
> > > >Rudi Heitbaum                Ph:  +61-3-9822 1216
> > > >Managing Director            Fax: +61-3-9822 1728 
> > > >DARX Consulting Pty Ltd      Mobile: 04-1122 6244
> > > >mailto:[EMAIL PROTECTED]         http://www.darx.com/
> > > >
> > > >PGP public key: http://www.darx.com/pgp/
> > > >______________________________________________________________________
> > > >Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> > > >User Support Mailing List                      [EMAIL PROTECTED]
> > > >Automated List Manager                            [EMAIL PROTECTED]
> > > >
> > > ______________________________________________________________________
> > > Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> > > User Support Mailing List                      [EMAIL PROTECTED]
> > > Automated List Manager                            [EMAIL PROTECTED]
> > Regards
> > 
> > Rudi
> > 
> > --
> > Rudi Heitbaum                Ph:  +61-3-9822 1216
> > Managing Director            Fax: +61-3-9822 1728 
> > DARX Consulting Pty Ltd      Mobile: 04-1122 6244
> > mailto:[EMAIL PROTECTED]         http://www.darx.com/
> > 
> > PGP public key: http://www.darx.com/pgp/
> > ______________________________________________________________________
> > Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> > User Support Mailing List                      [EMAIL PROTECTED]
> > Automated List Manager                            [EMAIL PROTECTED]
> 
> -- 
>  Magnus Stenman   mailto:[EMAIL PROTECTED]   http://www.hkust.se
> 
>  Get it up, keep it up.  Linux -- Viagra for your PC
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> User Support Mailing List                      [EMAIL PROTECTED]
> Automated List Manager                            [EMAIL PROTECTED]
Regards

Rudi

--
Rudi Heitbaum                Ph:  +61-3-9822 1216
Managing Director            Fax: +61-3-9822 1728 
DARX Consulting Pty Ltd      Mobile: 04-1122 6244
mailto:[EMAIL PROTECTED]         http://www.darx.com/

PGP public key: http://www.darx.com/pgp/
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to