Hello,

is it possible run two versions of PHP (e.g. 4.1.1 and 4.4.x) on one apache server?

E.g. php files in "localhost/aaa" would be interpreted by PHP 4.1.1 and php files in "localhost/bbb" would be interpreted by PHP 4.4.x.

I heard that it can be done using aliases ...

thanks

    Not sure about what you are wanting to do but there is an alternative. XAMPP installs both PHP4 and PHP5 and useing a sofware script can switch between the two, but you can not use them both at the same time. I once had WAMP running PHP5 and XAMPP running PHP4, when I wanted to use PHP4 I used the XAMPP install and when wanting to use PHP5 I turned of the XAMPP running PHP4 and started PHP5. Both systems use the apache server. So while you can have two installs you can only use one at a time on a single server as far as I know.

      You can only have two (or more) versions of PHP on the same Apache server if all except one of them runs as CGI.

      This is because you can't simultaneously load two versions of the PHP Apache module.

      An alternative would be to run two instances of Apache- this is what I do on my dev box. But of course you can't share IP Addresses / port numbers then, you must either run them on different IPs or different ports.

      Consult the manual for how to install it as CGI.

      Mark

        Write a Reply...