V
V
Vic Shostak2017-07-23 12:16:15
PHP
Vic Shostak, 2017-07-23 12:16:15

How to make two different versions of PHP (5.4 and 7.0) and Python 3.5 on one VDS if Nginx is used?

Good day!
Due to the increase in appetite, some sites have to be transferred from the powerful bitrix-shared Timeweb to a third-party VDS (Debian 9 x64, by updating the distribution kit from 8.x Jessie). Please tell me how to properly organize this VDS in order to make the following structure:
- Python 3.5 (which comes out of the 9.x box, it runs two sites, Flask);
- PHP 5.4 (one very ancient and massive self-writing, it won't work on another version of PHP, checked);
– PHP 7.0 (site on Drupal 8 and Laravel 5.3);
All this economy should work through Nginx (I use MySQL / Postgres as a database).
I would like the change of PHP versions to be the most "painless" and one does not interfere with the other. Maybe it makes sense to make a separate VDS for each version with only the necessary version?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
D
Denis Michurin, 2017-07-23
@denistu10

Docker

L
laxikodeje, 2017-07-23
@laxikodeje

Discover containers.

P
pfg21, 2017-07-23
@pfg21

compile version 5.4 with different installation path
How to install 2 versions of php on CentOS 7?
there will be two versions, with two listening sockets.

S
Sanes, 2017-07-23
@Sanes

php-fpm

D
Dave, 2017-07-23
@djay

You can use a specialized PHP version manager for this task.

M
ma0mi, 2019-03-13
@ma0mi

ispmanager can do this https://www.ispsystem.ru/software/ispmanager here is documentation on php settings https://docs.ispsystem.ru/ispmanager-business/php/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question