-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Sy Ali wrote:
[...] Can PHP4 and PHP5 live happily together, so I can still run my original PHP4 scripts without worrying too much, and run MediaWiki under a PHP5 engine
No and yes and yes.
No, you can't run two different version of PHP modules within apache.
Yes, you can run one version as apache module and the other as cgi module.
Yes, you can run two instances of apache, one public available on port 80 running e.g. php5 and the other running only on 127.0.0.1:8080 running php4 and using mod_proxy to re-direct requests to port 80 behind the scene to port 8080.
If performance is a concern, then the CGI version may not suit your needs well (but you should test with fastcgi). We're running the proxy-solution for years now without troubles. I think also Rasmus Lerdorf once on the PHP internals@ list mentioning that they're doing this that way at yahoo .. but I may be mistaken.
HTH, - - Markus