ID:               15703
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: Red Hat Linux 7.1
 PHP Version:      4.1.1
 New Comment:

I did read the README file in sapi/apache2filter directory. But I think
it wasn't mentioned there that we should use Apache 2_0_31.

Anyway, I started from scratch again and tried each step one by one. I
forgot to generate back trace but I will generate it next time. But
this time I tried various configurations which are given below. In some
cases php 4.1.1 and apache 2_0_28 did work.

FIRST CONFIGURATION
----------

---------------------Apache 2.0--------------
./configure --prefix=/wwwroot --enable-so

---------------------PHP 4.1.1-----------------
./configure --prefix=/wwwroot/php --with-mysql
--with-java=/usr/java/j2sdk1.4.0

php did work and phpinfo() displayed information java library was
loaded.
But when jver.php was accessed  lynx exited with following error:

Looking up localhost
Making HTTP connection to localhost
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access `http://localhost/jver.php'
Alert!: Unable to access document.

nothing was added to logs/error_log or to php error log file (php error

logging was enabled and a file name was specified)
no segmentation fault etc was entered in error log.

Then I did this:
export 
LD_LIBRARY_PATH=/usr/java/j2sdk1.4.0/jre/lib/i386/native_threads:/usr/java/j2sdk1.4.0/jre/lib/i386/client:/usr/java/j2sdk1.4.0/jre/lib/i386;


Every thing worked and when jver.php (sample file provided with java
ext) was 
accessed java version etc. was displayed.

extension directory created was:
/wwwroot/php/lib/php/extensions/no-debug-zts-20010901/


Second Time
-----------

---------------Apache 2.0 Configure Options-------------------

./configure --prefix=/wwwroot --enable-auth-anon --enable-auth-db 
--enable-auth-dbm --enable-auth-digest --enable-file-cache
--enable-echo 
--enable-cache --enable-mem-cache --enable-example --enable-ext-filter

--enable-case-filter --enable-case-filter-in --enable-mime-magic 
--enable-cern-meta --enable-expires --enable-usertrack
--enable-unique-id 
--enable-ssl --enable-optional-hook-export
--enable-optional-hook-import 
--enable-optional-fn-import --enable-optional-fn-export --enable-http 
--enable-dav --enable-cgi --enable-info --enable-cgid --enable-dav-fs 
--enable-vhost-alias --enable-speling --enable-actions --enable-rewrite

--enable-so

------------------------------PHP 4.1.1 ------------------------------
./configure --prefix=/wwwroot/php --with-mysql 
--with-java=/usr/java/j2sdk1.4.0 --with-apxs2=/wwwroot/bin/apxs 
--with-config-file-path=/wwwroot/php

phpinfo() worked and java library was loaded.
Java (jver.php) worked after exporting this:

export
LD_LIBRARY_PATH=/usr/java/j2sdk1.4.0/jre/lib/i386/native_threads:/usr/java/j2sdk1.4.0/jre/lib/i386/client:/usr/java/j2sdk1.4.0/jre/lib/i386;


and displayed this:

Java version=1.4.0-beta
Java vendor=Sun Microsystems Inc.

OS=Linux 2.4.3-12 on i386
Wednesday, February 27, 2002 at 3:29:02 AM India Standard Time

But following was added to apache 2.0 error_log:

[Wed Feb 27 03:28:22 2002] [notice] Apache/2.0.28 (Unix) mod_ssl/3.0a0

OpenSSL/0.9.6 DAV/2 configured -- resuming normal operations
[Wed Feb 27 03:29:03 2002] [error] Optional hook test said: GET
/jver.php 
HTTP/1.0
[Wed Feb 27 03:29:03 2002] [error] Optional function test said: GET 
/jver.php HTTP/1.0
[Wed Feb 27 03:31:00 2002] [error] Optional hook test said: GET
/jver.php 
HTTP/1.0
[Wed Feb 27 03:31:00 2002] [error] Optional function test said: GET 
/jver.php HTTP/1.0

------------
THIRD TIME
------------

Then I made a distclean in php-4.1.1 directory. stopped apache 2.0. 
Removed directory /wwwroot/php. And configured and installed php with 
following options..

------------------------------PHP 4.1.1 Configure---------------------
./configure --prefix=/wwwroot/php --with-apxs2=/wwwroot/bin/apxs 
--with-mod_charset --with-config-file-path=/wwwroot/php/ --with-openssl

--with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-cpdflib

--with-png-dir --with-jpeg-dir --with-tiff-dir --enable-ctype
--with-curl 
--with-db3 --with-dom --enable-exif --enable-filepro --enable-ftp 
--with-gd --enable-gd-native-ttf --with-xpm-dir
--with-freetype-dir=/usr --with-ttf 
--with-t1lib --with-gettext --with-gmp --with-hyperwave --with-iconv 
--with-imap --with-kerberos --with-imap-ssl --with-ircg --with-ldap 
--enable-mbstring --enable-mbstr-enc-trans --with-mcal=/usr/src/libmcal

--with-mhash --with-mnogosearch=/usr/local/mnogosearch --with-mysql 
--with-pgsql --with-pspell --with-qtdom --enable-trans-sid
--enable-shmop 
--with-snmp -enable-ucd-snmp-hack --enable-sockets --with-regex=php 
--with-swf --enable-wddx --with-expat-dir=/usr/local --enable-xslt 
--with-xslt-sablot --with-yaz=/usr/local/lib --enable-yp --with-zip 
--with-pdflib --enable-versioning --with-tsrm-st --with-tsrm-pthreads 
--enable-track-vars --enable-overload --with-mcrypt 
--with-java=/usr/java/j2sdk1.4.0 --enable-sysvsem --enable-sysvshm


This time when I restarted apache 2.0 php didn't work and lynx exited
with 
same Unknown network error message. Following was added to apache
logs/error_log


[Wed Feb 27 19:44:25 2002] [notice] Digest: done
[Wed Feb 27 19:44:26 2002] [notice] Apache/2.0.28 (Unix) mod_ssl/3.0a0

OpenSSL/0.9.6 DAV/2 configured -- resuming normal operations
[Wed Feb 27 19:44:39 2002] [notice] child pid 645 exit signal
Segmentation 
fault (11)
[Wed Feb 27 19:45:31 2002] [notice] child pid 646 exit signal
Segmentation 
fault (11)


Previous Comments:
------------------------------------------------------------------------

[2002-02-25 06:25:48] [EMAIL PROTECTED]

BTW, use apahce 2.0.31... That's the version you are suppose to use.
Read README file always _especially_ when you are using EXPERIMENTAL
one.

------------------------------------------------------------------------

[2002-02-24 22:22:43] [EMAIL PROTECTED]

To properly diagnose this bug, we need a backtrace to see what is
happening behind the scenes. To find out how to generate a backtrace,
please read http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open".

------------------------------------------------------------------------

[2002-02-24 17:45:31] [EMAIL PROTECTED]

I tried to compile php 4.1.1 on RedHat Linux 7.1 with jdk 1.4 beta 2
and apache2 (2_0_28 beta) (because java was not working with apache
1.3.23) with these options:

****************************PHP**************************
./configure --with-apache=/usr/src/httpd-2_0_28 --with-mod_charset
--with-config-file-path=/usr/local/lib/php/ --with-openssl --with-zlib
--enable-bcmath --with-bz2 --enable-calendar --with-cpdflib
--with-png-dir --with-jpeg-dir --with-tiff-dir --enable-ctype
--with-curl --with-db3 --with-dom --enable-exif --enable-filepro
--enable-ftp --with-gd --enable-gd-native-ttf --with-xpm-dir
--with-freetype-dir=/usr --with-ttf --with-t1lib --with-gettext
--with-gmp --with-hyperwave --with-iconv --with-imap --with-kerberos
--with-imap-ssl --with-ircg --with-ldap --enable-mbstring
--enable-mbstr-enc-trans --with-mcal=/usr/src/libmcal --with-mhash
--with-mnogosearch=/usr/local/mnogosearch --with-mysql --with-pgsql
--with-pspell --with-qtdom --enable-trans-sid --enable-shmop
--with-snmp -enable-ucd-snmp-hack --enable-sockets --with-regex=php
--with-swf --enable-wddx --with-expat-dir=/usr/local --enable-xslt
--with-xslt-sablot --with-yaz --enable-yp --with-zip --with-pdflib
--enable-versioning --with-tsrm-st --with-tsrm-pthreads
--enable-track-vars --enable-overload --with-mcrypt --with-java
--enable-sysvsem --enable-sysvshm --with-xmlrpc

but php didn't compile because I think source structure of apache 2.0
is different from apache 1.3.

So to try compiling php as apache shared module (libphp4.so) I compiled
Apache 2.0 beta with these options:

***********************************APACHE 2*************
./configure  --enable-auth-anon --enable-auth-db --enable-auth-dbm
--enable-auth-digest --enable-file-cache --enable-echo --enable-cache
--enable-mem-cache --enable-example --enable-ext-filter
--enable-case-filter --enable-case-filter-in --enable-mime-magic
--enable-cern-meta --enable-expires --enable-usertrck
--enable-unique-id --enable-ssl --enable-optional-hook-export
--enable-optional-hook-import --enable-optional-fn-import
--enable-optional-fn-export --enable-http --enable-dav --enable-cgi
--enable-info --enable-dgid --enable-dav-fs --enable-vhost-alias
--enable-speling --enable-actions --enable-rewrite

and then compiled php 4.1.1 with these options:

*******************************PHP************************ 
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mod_charset
--with-config-file-path=/usr/local/lib/php/ --with-openssl --with-zlib
--enable-bcmath --with-bz2 --enable-calendar --with-cpdflib
--with-png-dir --with-jpeg-dir --with-tiff-dir --enable-ctype
--with-curl --with-db3 --with-dom --enable-exif --enable-filepro
--enable-ftp --with-gd --enable-gd-native-ttf --with-xpm-dir
--with-freetype-dir=/usr --with-ttf --with-t1lib --with-gettext
--with-gmp --with-hyperwave --with-iconv --with-imap --with-kerberos
--with-imap-ssl --with-ircg --with-ldap --enable-mbstring
--enable-mbstr-enc-trans --with-mcal=/usr/src/libmcal --with-mhash
--with-mnogosearch=/usr/local/mnogosearch --with-mysql --with-pgsql
--with-pspell --with-qtdom --enable-trans-sid --enable-shmop
--with-snmp -enable-ucd-snmp-hack --enable-sockets --with-regex=php
--with-swf --enable-wddx --with-expat-dir=/usr/local --enable-xslt
--with-xslt-sablot --with-yaz --enable-yp --with-zip --with-pdflib
--enable-versioning --with-tsrm-st --with-tsrm-pthreads
--enable-track-vars --enable-overload --with-mcrypt --with-java
--enable-sysvsem --enable-sysvshm --with-xmlrpc

and this time --with-xmlrpc option produced some errors so I removed
--with-xmlrpc.

Finally, it compiled and a shared module was produced under apache
modules directory. LoadModule php4_module entry was automatically made
by php install in httpd.conf. I tried AddType application/x-httpd-php
but It didn't work then after removing AddType I added this option to
httpd.conf

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

and then restarted apache but php didn't work and segmentation fault
message was added to logs/error_log.
I tried to compile it again next day after removing old sources and
installed files. But it didn't work and browser waited and waited and
then some error like network error was produced by lynx browser. When I
examined logs/error_log then same segmentation fault entries like these
were added because of php failure..

**************************error_log******************
[Sat Feb 23 20:52:55 2002] [notice] child pid 703 exit 
signal Segmentation fault (11)
[Sat Feb 23 20:53:22 2002] [notice] child pid 706 exit 
signal Segmentation fault (11)

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15703&edit=1

Reply via email to