RE: [PHP4BETA] Re: PHP/Oracle Silent Apache Crash
[email protected] (Michael Nino) Tue, 20 Jun 2000 09:02:36 -0700
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <48845550BDD0D211B7580008C7A42DD3131B3A3C@HQEXCH1> |
------_=_NextPart_001_01BFDAD0.DB60F822 Content-Type: text/plain; charset="iso-8859-1" Martin, Kevin (someone who reads this newgroup) responded was the first person to respond. He recommended that I build using Oracle 8.0.5 client libs-- he says he is running using them on RH6.2. We should receive the CD from Oracle today. When you build PHP as DSO do you get the error below? Syntax error on line 243 of /usr/local/apache/conf/httpd.conf: API module structure `php4_module' in file /usr/local/apache/libexec/libphp4.so is garbled - perhaps this is not an Apache module DSO? ./apachectl start: httpd could not be started Have you successfully built statically and connected to Oracle? I have it's just DSO that silently dumps without -lpthread and generateds the error message above when I include it in the ways described below: [1] Export -lpthread in LDFLAGS before configuring Apache. [2] Add -lpthread to LIBS1 line in src/Makefile for Apache. [3] Export -lpthread in LIBS before configuring Apache. Below is the reply from Kevin and his configure line used to build using 8.0.5: > Hey. This is the configure command that I used to compile PHP as a DSO... > > ./configure \ > --disable-debug \ > --with-apxs \ > --with-config-file-path=/etc/httpd \ > --enable-sysvsem \ > --enable-sysvshm \ > --with-gd \ > --with-ttf \ > --with-pdflib \ > --with-jpeg-dir=/usr \ > --with-tiff-dir=/usr \ > --with-png-dir=/usr \ > --with-zlib-dir=/usr \ > --with-mm \ > --with-mysql \ > --with-oracle=/usr/oracle/product/8.0.5 \ > --with-oci8=/usr/oracle/product/8.0.5 \ > > Again, this uses the 8.0.5 libs ... although it should work for 8.1.6 if > your apache is linked with pthreads already. > > I seem to remember running into a problem similar to what you are > describing, but I can't remember how I dealt with it in the past. > > kevin > -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Tuesday, June 20, 2000 4:26 AM To: Martin Horak Cc: [email protected] Subject: Re: [PHP4BETA] Re: PHP/Oracle Silent Apache Crash On Tue, Jun 20, 2000 at 01:18:23PM +0002, Martin Horak wrote: > > On Mon, Jun 19, 2000 at 03:21:16PM +0002, Martin Horak wrote: > > > Hi, > > > I have exactly the same problem. Did you solved it yet? > > > I've tried to compile with this LDFLAGS="-lpthread", but this does'n > > > work for me. > > > > than you're not doing it correct! > > > > in apache-1.3.12/src/Makefile add -lpthread to LIBS1 > > than recompile your httpd: > > > > cd apache-1.3.12 > > rm src/httpd > > make > > > > this *will* solve your problem! > > > > tc > > > > Unfortunately it didn't. I've tried to do exactly this, but it still > doesn't work. > My configuration is: any chance to give me a login to that box? > > Apache: > SSL_BASE=../openssl \ > EAPI_MM=../mm \ > ./configure \ > --with-layout=Martas \ > --enable-module=expires \ > --enable-shared=expires \ > --disable-module=negotiation \ > --disable-module=env \ > --disable-module=imap \ > --enable-module=status \ > --enable-shared=status \ > --enable-module=info \ > --enable-shared=info \ > --enable-module=ssl \ > --enable-shared=ssl > > PHP4: > ORACLE_HOME=/usr/local/oraclient/8.0.5 \ > ./configure \ > --with-apxs=/usr/local/apache/bin/apxs \ > --with-dbase \ > --enable-sysvshm --enable-sysvsem \ > --with-config-file-path=/etc/httpd/conf \ > --with-mysql=/usr/local \ > --with-gdbm \ > --enable-sigchild \ > --with-oci8=/usr/local/oraclient/8.0.5 > > > > -- > Ing. Martin Horak > SCE a.s. Decin > [email protected] > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > To contact the list administrators, e-mail: [email protected] -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] To contact the list administrators, e-mail: [email protected] ------_=_NextPart_001_01BFDAD0.DB60F822 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2650.12"> <TITLE>RE: [PHP4BETA] Re: PHP/Oracle Silent Apache Crash</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>Martin,</FONT> </P> <P><FONT SIZE=3D2>Kevin (someone who reads this newgroup) responded was = the first person to respond. He recommended that I build using Oracle = 8.0.5 client libs-- he says he is running using them on RH6.2. We = should receive the CD from Oracle today.</FONT></P> <P><FONT SIZE=3D2>When you build PHP as DSO do you get the error = below?</FONT> </P> <P> <FONT SIZE=3D2>Syntax = error on line 243 of /usr/local/apache/conf/httpd.conf:</FONT> <BR> <FONT SIZE=3D2>API = module structure `php4_module' in file = /usr/local/apache/libexec/libphp4.so</FONT> <BR> <FONT SIZE=3D2>is = garbled - perhaps this is not an Apache module DSO?</FONT> <BR> <FONT = SIZE=3D2>./apachectl start: httpd could not be started</FONT> </P> <P><FONT SIZE=3D2>Have you successfully built statically and connected = to Oracle? I have it's just DSO that silently dumps without -lpthread = and generateds the error message above when I include it in the ways = described below:</FONT></P> <P> <FONT SIZE=3D2>[1] Export = -lpthread in LDFLAGS before configuring Apache.</FONT> <BR> <FONT SIZE=3D2>[2] Add = -lpthread to LIBS1 line in src/Makefile for Apache.</FONT> <BR> <FONT SIZE=3D2>[3] = Export -lpthread in LIBS before configuring Apache.</FONT> </P> <P><FONT SIZE=3D2>Below is the reply from Kevin and his configure line = used to build using 8.0.5:</FONT> </P> <P><FONT SIZE=3D2>> Hey. This is the configure command that I = used to compile PHP as a DSO...</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> = ./configure = = = \</FONT> <BR><FONT SIZE=3D2>> = --disable-debug &nb= sp; &nb= sp; = \</FONT> <BR><FONT SIZE=3D2>> = --with-apxs &= nbsp; &= nbsp; &= nbsp; \</FONT> <BR><FONT SIZE=3D2>> = --with-config-file-path=3D/etc/httpd = \</FONT> <BR><FONT SIZE=3D2>> = --enable-sysvsem &n= bsp; &n= bsp; \</FONT> <BR><FONT SIZE=3D2>> = --enable-sysvshm &n= bsp; &n= bsp; \</FONT> <BR><FONT SIZE=3D2>> = --with-gd &nb= sp; &nb= sp; &nb= sp; \</FONT> <BR><FONT SIZE=3D2>> = --with-ttf &n= bsp; &n= bsp; &n= bsp; \</FONT> <BR><FONT SIZE=3D2>> = --with-pdflib  = ;  = ;  = ; \</FONT> <BR><FONT SIZE=3D2>> = --with-jpeg-dir=3D/usr &n= bsp; &n= bsp; \</FONT> <BR><FONT SIZE=3D2>> = --with-tiff-dir=3D/usr &n= bsp; &n= bsp; \</FONT> <BR><FONT SIZE=3D2>> = --with-png-dir=3D/usr &nb= sp; &nb= sp; \</FONT> <BR><FONT SIZE=3D2>> = --with-zlib-dir=3D/usr &n= bsp; &n= bsp; \</FONT> <BR><FONT SIZE=3D2>> = --with-mm &nb= sp; &nb= sp; &nb= sp; \</FONT> <BR><FONT SIZE=3D2>> = --with-mysql = = = \</FONT> <BR><FONT SIZE=3D2>> = --with-oracle=3D/usr/oracle/product/8.0.5 &= nbsp; \</FONT> <BR><FONT SIZE=3D2>> = --with-oci8=3D/usr/oracle/product/8.0.5 &nb= sp; \</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Again, this uses the 8.0.5 libs ... although it = should work for 8.1.6 if</FONT> <BR><FONT SIZE=3D2>> your apache is linked with pthreads = already.</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> I seem to remember running into a problem = similar to what you are</FONT> <BR><FONT SIZE=3D2>> describing, but I can't remember how I dealt = with it in the past.</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> kevin</FONT> <BR><FONT SIZE=3D2>> </FONT> </P> <P><FONT SIZE=3D2>-----Original Message-----</FONT> <BR><FONT SIZE=3D2>From: [email protected] [<A = HREF=3D"mailto:[email protected]">mailto:[email protected]</A>]</FONT> <BR><FONT SIZE=3D2>Sent: Tuesday, June 20, 2000 4:26 AM</FONT> <BR><FONT SIZE=3D2>To: Martin Horak</FONT> <BR><FONT SIZE=3D2>Cc: [email protected]</FONT> <BR><FONT SIZE=3D2>Subject: Re: [PHP4BETA] Re: PHP/Oracle Silent Apache = Crash</FONT> </P> <BR> <P><FONT SIZE=3D2>On Tue, Jun 20, 2000 at 01:18:23PM +0002, Martin = Horak wrote:</FONT> <BR><FONT SIZE=3D2>> > On Mon, Jun 19, 2000 at 03:21:16PM +0002, = Martin Horak wrote:</FONT> <BR><FONT SIZE=3D2>> > > Hi,</FONT> <BR><FONT SIZE=3D2>> > > I have exactly the same problem. Did = you solved it yet?</FONT> <BR><FONT SIZE=3D2>> > > I've tried to compile with this = LDFLAGS=3D"-lpthread", but this does'n</FONT> <BR><FONT SIZE=3D2>> > > work for me.</FONT> <BR><FONT SIZE=3D2>> > </FONT> <BR><FONT SIZE=3D2>> > than you're not = doing it correct!</FONT> <BR><FONT SIZE=3D2>> > </FONT> <BR><FONT SIZE=3D2>> > in = apache-1.3.12/src/Makefile add -lpthread to LIBS1</FONT> <BR><FONT SIZE=3D2>> > than recompile = your httpd:</FONT> <BR><FONT SIZE=3D2>> > </FONT> <BR><FONT SIZE=3D2>> > cd = apache-1.3.12</FONT> <BR><FONT SIZE=3D2>> > rm = src/httpd</FONT> <BR><FONT SIZE=3D2>> > make</FONT> <BR><FONT SIZE=3D2>> > </FONT> <BR><FONT SIZE=3D2>> > this *will* solve = your problem!</FONT> <BR><FONT SIZE=3D2>> > </FONT> <BR><FONT SIZE=3D2>> > tc</FONT> <BR><FONT SIZE=3D2>> > </FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Unfortunately it didn't. I've tried to do = exactly this, but it still </FONT> <BR><FONT SIZE=3D2>> doesn't work.</FONT> <BR><FONT SIZE=3D2>> My configuration is:</FONT> </P> <P><FONT SIZE=3D2> any chance to give me a login to = that box?</FONT> </P> <P><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Apache:</FONT> <BR><FONT SIZE=3D2>> SSL_BASE=3D../openssl \</FONT> <BR><FONT SIZE=3D2>> EAPI_MM=3D../mm \</FONT> <BR><FONT SIZE=3D2>> ./configure \</FONT> <BR><FONT SIZE=3D2>> --with-layout=3DMartas \</FONT> <BR><FONT SIZE=3D2>> --enable-module=3Dexpires \</FONT> <BR><FONT SIZE=3D2>> --enable-shared=3Dexpires \</FONT> <BR><FONT SIZE=3D2>> --disable-module=3Dnegotiation \</FONT> <BR><FONT SIZE=3D2>> --disable-module=3Denv \</FONT> <BR><FONT SIZE=3D2>> --disable-module=3Dimap \</FONT> <BR><FONT SIZE=3D2>> --enable-module=3Dstatus \</FONT> <BR><FONT SIZE=3D2>> --enable-shared=3Dstatus \</FONT> <BR><FONT SIZE=3D2>> --enable-module=3Dinfo \</FONT> <BR><FONT SIZE=3D2>> --enable-shared=3Dinfo \</FONT> <BR><FONT SIZE=3D2>> --enable-module=3Dssl \</FONT> <BR><FONT SIZE=3D2>> --enable-shared=3Dssl</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> PHP4:</FONT> <BR><FONT SIZE=3D2>> ORACLE_HOME=3D/usr/local/oraclient/8.0.5 = \</FONT> <BR><FONT SIZE=3D2>> ./configure \</FONT> <BR><FONT SIZE=3D2>> --with-apxs=3D/usr/local/apache/bin/apxs = \</FONT> <BR><FONT SIZE=3D2>> --with-dbase \</FONT> <BR><FONT SIZE=3D2>> --enable-sysvshm --enable-sysvsem \</FONT> <BR><FONT SIZE=3D2>> --with-config-file-path=3D/etc/httpd/conf = \</FONT> <BR><FONT SIZE=3D2>> --with-mysql=3D/usr/local \</FONT> <BR><FONT SIZE=3D2>> --with-gdbm \</FONT> <BR><FONT SIZE=3D2>> --enable-sigchild \</FONT> <BR><FONT SIZE=3D2>> --with-oci8=3D/usr/local/oraclient/8.0.5</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> --</FONT> <BR><FONT SIZE=3D2>> Ing. Martin Horak</FONT> <BR><FONT SIZE=3D2>> SCE a.s. Decin</FONT> <BR><FONT SIZE=3D2>> [email protected]</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> -- </FONT> <BR><FONT SIZE=3D2>> PHP 4.0 Beta Mailing List <<A = HREF=3D"http://www.php.net/version4/" = TARGET=3D"_blank">http://www.php.net/version4/</A>></FONT> <BR><FONT SIZE=3D2>> To unsubscribe, e-mail: = [email protected]</FONT> <BR><FONT SIZE=3D2>> For additional commands, e-mail: = [email protected]</FONT> <BR><FONT SIZE=3D2>> To contact the list administrators, e-mail: = [email protected]</FONT> </P> <P><FONT SIZE=3D2>-- </FONT> </P> <P><FONT SIZE=3D2>Thies C. = Arntzen  = ; "One Big-Mac, Small Fries and a = Coke!"</FONT> <BR><FONT SIZE=3D2>Digital = Collections &= nbsp; Phone +49 40 235350 Fax +49 40 23535180</FONT> <BR><FONT SIZE=3D2>Hammerbrookstr. = 93 &nbs= p; &nbs= p; 20097 Hamburg / Germany</FONT> </P> <P><FONT SIZE=3D2>-- </FONT> <BR><FONT SIZE=3D2>PHP 4.0 Beta Mailing List <<A = HREF=3D"http://www.php.net/version4/" = TARGET=3D"_blank">http://www.php.net/version4/</A>></FONT> <BR><FONT SIZE=3D2>To unsubscribe, e-mail: = [email protected]</FONT> <BR><FONT SIZE=3D2>For additional commands, e-mail: = [email protected]</FONT> <BR><FONT SIZE=3D2>To contact the list administrators, e-mail: = [email protected]</FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01BFDAD0.DB60F822--