[php-maint] Bug#670945: Re: About the media types text/x-php and text/x-php-source

Stefan Fritsch sf at sfritsch.de
Sun Aug 26 18:18:40 UTC 2012

> > * The fix for second bug #670945 (e.g. http://localhost/file not
> > caught by mod_negotiation) was fixed in mime-support 3.52-1.1.
> The two bug reporters, the apache maintainer and me are all saying
> that this bug should be fixed in apache or PHP, not in
> mime-support.

As pointed out elsewhere, that was a different bug. And I was not 
aware of this bug at that time.

> It does not matter which other unregistered types are currently
> distributed in /etc/mime.types.  If you want all the Debian
> systems to have this media type by default, it is better to
> justify it by the needs of more than one package.

It's completely sensible for webservers that do not interpret php 
scripts themselves, to serve *.php files as application/x-php or 
text/x-php. At least it is more consistent with the handling of 
python, perl, etc.

But if you don't want to do that, e.g. because you intend to remove 
the perl/java/... types, too, adding them to Apache's config is IMHO 
completely acceptable, too. The mod_negotiation problem is after all 
an Apache only problem.

More information about the pkg-php-maint mailing list