ID:               20138
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Apache related
 Operating System: Linux 2.4.19
 PHP Version:      4.3.0-pre1
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Looks like a user configuration problem. I've tried pre2 just now on
Apache 2.0.43 and it worked fine with both:

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

AND

AddType application/x-httpd-php .php


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

[2002-10-28 12:42:46] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=20138&edit=1

Reply via email to