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

Re: [cobalt-users] RaQ4 Using .php3 extensions



"Taki" <taki@xxxxxxxxxxxxxx> wrote:
> I would like PHP4 in a RaQ4 to use .php3 extensions as I have many php3
> files and I don't think it's necessary to change them to .php
>
> while in srm.conf the .php3 extensions appear to be handled by php4
> (backwards compatibility),
> # PHP4 (backwards compatible with php3)
> AddType application/x-httpd-php4 .php3
> AddType application/x-httpd-php4 .php4
> AddType application/x-httpd-php4 .php

I believe the lines should all begin with (notice the lack of the "4" at the
end):

AddType application/x-httpd-php

> The VirtualHost entry created by the web interface indicates (when php is
> checked)
> AddType application/x-httpd-php .php4
> AddType application/x-httpd-php .php
>
> If I add the .php3 extension there it will be probably overwritten by the
> web interface when I make changes.

I'm sure you're right.  You'd have to find the Cobalt script that writes the
above lines and modify it to include support for the .php3 extension.  If
you do find the right file it would probably benefit a lot of users if you
posted to the list.

> So the question is:
> "How to make the web interface add the .php3 and maybe the .phtml
extension
> too?"
> ...or any other workaround on this

If you don't mind having all of your sites able to run PHP, you could add
the proper lines to srm.conf, then restart Apache.

AddType application/x-httpd-php .php .php3 .php4 .phtml

And uncomment any of the other AddType lines related to PHP within srm.conf.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/