php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33678 Install.txt needs modification
Submitted: 2005-07-13 14:12 UTC Modified: 2005-09-27 11:39 UTC
From: jurgen at telebusiness dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: ALL
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jurgen at telebusiness dot net
New email:
PHP Version: OS:

 

 [2005-07-13 14:12 UTC] jurgen at telebusiness dot net
Description:
------------
Currently I disagree with this section in INSTALL.TXT:
(Recurring in seceral sections !!!)

# Add this line inside the <IfModule mod_mime.c> conditional brace
AddType application/x-httpd-php .php

# For syntax highlighted .phps files, also add
AddType application/x-httpd-php-source .phps

Because: AddType OVERWRITES mimes.types definitions.

So don't use Addtype in httpd.conf but change mimes.types
with: (append after line application/pgp-signature)

application/x-httpd-php php
application/x-httpd-php-source  phps

This works both for windows and unix.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-19 14:11 UTC] sniper@php.net
Definately not correct way to add the types.

 [2005-09-21 19:51 UTC] jurgen at telebusiness dot net
It works the way I told.  

So if it is not the right way, tell us the reason. Mime;types is the place to put Your custom related extensions to apache,
and .php is one of them.
 [2005-09-26 11:31 UTC] vrana@php.net
http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addtype: "It is recommended that new MIME types be added using the AddType directive rather than changing the TypesConfig file."

 [2005-09-27 11:39 UTC] jurgen at telebusiness dot net
This is NOT for technical reasons.  It's because PHP does not claim the extension php phps with IANA.  

Ref: The current list is maintained at http://www.iana.org/assignments/media-types/index.html. This simplifies the httpd.conf file by providing the majority of media-type definitions, and may be overridden by AddType directives as needed. You should not edit the mime.types file, because it may be replaced when you upgrade your server.

The purpose of the mime.types IS to handle special extensions with apache.  The addtype overwrites this file, so I stick to my point.  Up to the PHP Staff to register php and phps with IANA.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 17:01:37 2024 UTC