PHP 5.2 and PHP 5.3 side by side in vHosts on the same Apache (Debian)?

Possible duplicate

How to run multiple versions of php5.x on a development lamp server

Is it possible to have different versions of PHP (now I want to have 5.2 and 5.3 side by side) running on the same machine only in different vHosts? I am running a Debian server, and PHP packages - from dotdeb.org - is there an easy way to achieve this setup? Thanks!

+3
source share
1 answer

Set to different module names, e.g.

mod_php52
mod_php53

Remember to specify different configuration directories if you create with. / configure

In vhost 1

LoadModule mod_php52 modules/mod_php52.so

In vhost 2

LoadModule mod_php53 modules/mod_php53.so

, , , , , . . !

+1

Source: https://habr.com/ru/post/1709717/


All Articles