[Mediawiki-l] Discussion on MediaWiki and PHP5

Markus Fischer markus at fischer.name
Sat Jul 8 10:38:05 UTC 2006


-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEr4sN1nS0RcInK9ARAvTmAJ0TNHG/ycLdPixT6tcn1fgc2BSTRQCgvXE6
0+l23aqzWCz57q5CqfM1jG4=
=pCOB
-----END PGP SIGNATURE-----



More information about the MediaWiki-l mailing list