[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#334575: apache2-mpm-prefork: mod_rewrite and PHP5.1CVS display a blank page



Package: apache2-mpm-prefork
Version: 2.0.54-5
Severity: important



I have a blank page with PHP5.1 (snapshot from october 13, 2005) and
mod_rewrite. The rewrite engine is working cause even when I give a
wrong URL I get a code 200 in my logs but the size of the returned page
still 0.

Using a .htaccess file or putting the rewrite rules inside the
httpd.conf does the same.

If I rewrite everything to a .php file I get a blank page.
If I rewrite everything to a .html file it works as expected.
If I have the rewrite engine off, the PHP page displays.

First I thought it was a PHP bug, so I filled a bug report on the PHP
website :
http://bugs.php.net/bug.php?id=34846

I worked with a Zend developper and we find out that using the source
solves the issue.


.htaccess file :

RewriteEngine On
RewriteRule ^.*$ index.php [L]

index.php file :

jon<?php echo "jon"; ?>


my apache configuration is very simple, I use a vhost :

<VirtualHost *>
        ServerName karibou
        DocumentRoot /home/jon/karibou/public_html
        <Directory /home/jon/karibou/public_html>
                AllowOverride all
                order allow,deny
                allow from all
        </Directory>
</VirtualHost>


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.26-grsec
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages apache2-mpm-prefork depends on:
ii  apache2-common         2.0.54-5          next generation, scalable, extenda
ii  libapr0                2.0.54-5          the Apache Portable Runtime
ii  libc6                  2.3.2.ds1-22      GNU C Library: Shared libraries an
ii  libdb4.2               4.2.52-18         Berkeley v4.2 Database Libraries [
ii  libexpat1              1.95.8-3          XML parsing C library - runtime li
ii  libldap2               2.1.30-8          OpenLDAP libraries
ii  libpcre3               4.5-1.2sarge1     Perl 5 Compatible Regular Expressi
ii  libssl0.9.7            0.9.7e-3          SSL shared libraries
ii  zlib1g                 1:1.2.2-4.sarge.2 compression library - runtime

-- no debconf information



Reply to: