S
S
Stanislav Pochepko2016-03-02 18:38:06
PHP
Stanislav Pochepko, 2016-03-02 18:38:06

How to set up php version switching for different virtual hosts on Ubuntu?

Hello. I was puzzled by setting up a fast switching of PHP versions on a development machine under Ubuntu. I just installed PHP 7. I set everything up. But not all projects took off on it at once. And there are a lot of them locally. And he started googling. Found PHPBrew and an article for it. It seems like everything is clear. But I did not like that it must be switched manually all the time.
Is it possible to load different versions of interpreters in apache2 by specifying them in .htaccess?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Pechersky, 2016-03-03
@DJZT

Install on the machine for example Virtualmin. This hosting panel helps you quickly and easily switch php versions for different virtual hosts.
There are other hosting panels, but I have not worked with them. Most likely there is also the same functionality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question