Re: Different PHP Version for a VirtualHost

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

 





Stefan DÃrrenberger wrote:
Am Freitag, den 15.10.2010, 15:06 -0600 schrieb Brian Hirt:
Maybe you can run a different apache process with the version of PHP you need on a different port and use mod_rewrite/mod_proxy from the public apache?

It would work, but it seems complicated. There should really be a way to
configure this in one apache instance. I'm confused why it does work
for .php4-extensions, but not .php. But thanks, if I can't resolve this,
it's a workaround to try.

I don't know the code - but it seems that using AddType will not necessarily *override* the existing MIME association at some higher precedence. Have you tried ForceType in an appropriate context with your php4-specific scripts? Something like:

<FilesMatch "\.php$|\.php4$">
  ForceType php4-cgi
</FilesMatch>

-- D Mansfield

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux