Re: PHP4 & Apache
On Wed, Oct 11, 2000 at 03:52:43PM +0000, Steve Simons wrote:
> I'm now using PHP.net's own example:
> echo "Hi, I'm a PHP script!";
Yes, that ought to work.
> > Do you have a mime-type or an application type set of PHP4? Is it
> > the same extension?
> No - I'm not convinced it _should_ be .PHP4, just .PHP.
Sorry, I wasn't clear. What you need is something that will tell
apache what files qualify as PHP files, and what processor to use.
You can have PHP3 and PHP4 running on the same Debian system, as far
as I can tell (I haven't tried it), so the extensions may have been
set up by default that way.
My mime.types file has this in it:
application/x-httpd-php phtml pht php
It isn't clear to me that this will cause a file with just the 'php'
extension to be parsed proplerly, because the apache module is called
php3_module. Similarly, it isn't obvious to me that php4 would be
called, either. I think you'd need to convince apache that php=php4,
by adding a line
(and, I guess, adjusting the other line that includes "php" not to
include that extension). I might be completely wrong about this,
because I haven't played with the config too much (PHP4 was not ready
when I started the project I'm using PHP3 for, and I'm in no hurry to
go back and re-test everything with PHP4).
Hope this is useful, anyway.
Andrew Sullivan Computer Services
<email@example.com> Burlington Public Library
+1 905 639 3611 x158 2331 New Street
Burlington, Ontario, Canada L7R 1J4