[GLLUG] PHP: Process Non-Standard Extentions

Mark Szidik/mlc SzidikM@mlcnet.org
Tue, 11 Jun 2002 08:26:43 -0400


Hi Stephen,

Glad to read that you are using PHP (and Linux).  The extensions are
defined in the Apache server configuration file "httpd.conf".  The location
of the file varies, but you should be able to do a 'locate httpd.conf'  to
find it.  Once you open the file look for this line:

     AddType application/x-httpd-php .php

Simply add as many space separated extenstions as you want such as below.

     AddType application/x-httpd-php .php3 .php .php4 .htm .html


-Mark Szidik



                                                                                                                         
                    "Stephen Baker"                                                                                      
                    <bcp@dooley3d.com>        To:     <linux-user@egr.msu.edu>                                           
                    Sent by:                  cc:     <bcp@dooley3d.com>                                                 
                    linux-user-admin@e        Subject:     [GLLUG] PHP: Process Non-Standard Extentions                  
                    gr.msu.edu                                                                                           
                                                                                                                         
                                                                                                                         
                    06/10/02 09:41 PM                                                                                    
                                                                                                                         
                                                                                                                         





Hello All!





I am running a server with RedHat 7.3 and PHP 4.?.? ?





I need to be set the server to process more extentions than just *.php and
*.php3 ?


Does anyone know which file I need to change and what I need to change to
accomplish this?





I would ideally like to change it to send all files through the PHP
processor, but just a few extra


Extentions would be nice for now.





TY -- Steve