From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.19
PHP version:      4.3.0-pre1
PHP Bug Type:     Apache related
Bug description:  PHP 4.3.0-pre2 fails to parse .php files with Apache 2.0.43

This is actually about 4.3.0-pre2 ( I haven't tried pre1 ).

PHP was configured with:

--with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php
--without-mysql
--with-pgsql --with-gd --with-openssl --with-zlib --with-jpeg-dir=/usr
--with-png-dir=/usr --with-bz2 -enable-ftp --enable-bcmath

(It failed to find libjpeg and libpng in /usr/lib without the relevant
options above. )

I manually added:

LoadModule php4_module modules/libphp4.so

and:

AddType application/x-httpd-php .php

to httpd.conf, APXS getting the fromer wrong, though I note that 'make
install' with PHP 4.2.3 and Apache 2 does do the right thing.

'make test' resulted in two failures:

FAIL OpenSSL private key functions [ext/openssl/tests/001.phpt]
FAIL Testing randomization of shuffle() and str_shuffle().
[ext/standard/tests/strings/004.phpt]

I wouldn't have thought, but don't know, that these are not relevant to my
problem.

Anyway, the main problem is that .php files are not being parsed when
served, my browser prompting me to save the file instead. The browser
informs me that it is a file of type application/x-httpd-php, so it seems
the AddType directive is working.

It looks as if Apache is loading the PHP module:

HTTP/1.1 200 OK
Date: Mon, 28 Oct 2002 18:22:51 GMT
Server: Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6e PHP/4.3.0-pre2

and fuser reports that libphp4.so is held open by each of the Apache
processes.

The Apache configuration is almost as the supplied default, but with two
virtual servers enabled. I've tested without virtual servers and the same
problem occurs.

PHP 4.2.3 with the same Apache configuration does work, other than the
known problem of the segmentation faults on trying to make the server
re-read its configuration.


-- 
Edit bug report at http://bugs.php.net/?id=20138&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20138&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20138&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20138&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20138&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20138&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20138&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20138&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20138&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20138&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20138&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20138&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20138&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20138&r=isapi

Reply via email to