V
V
Viktor Yanyshev2017-08-10 18:04:54
PHP
Viktor Yanyshev, 2017-08-10 18:04:54

Is it possible to somehow indicate the use of php from the docker container for a specific project?

An ancient project has appeared that works on php5.3 (also in cp1251), the local machine is running php7 (I don’t want to install a bunch of versions), respectively, mysql_connect, etc. does not start. If you use docker and image only with php5.3, is it possible to somehow tell Apache to use php from the docker container and what needs to be done for this? Although, this is probably a perversion?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fortop, 2017-08-10
@Fortop

You can run a web server directly in this docker container with the required php version.
As an alternative, this is to fight with the fast-cgi settings.
I don’t remember Apache anymore, but in nginx you can specify a variant other than sockets.
But it's easier to actually raise the docker along with the web server and the required PHP version
. And, yes, this is not a perversion.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question