Answer the question
In order to leave comments, you need to log in
How to attach different versions of php to different hosts?
by default I have php 7.2
enabled
In the folders /etc/apache2/sites-enabled/
I have several hosts host1.conf and host2.conf
and in host1.conf there is something like this code
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName site.ru
DocumentRoot /var/www/html/
<Directory /var/www/html/>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Take ready-made dockers with typical settings.
If you don’t feel like it, then look at how to configure different fpm in one Apache and configure each host for the desired fpm.
ON nginx it can be done like two fingers, but in Apache I have never done this, so I can’t say exactly how to do it, but they wrote where to dig above.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question