Configuring “Apache Virtual Hosts”, you’ll find tons of tutorials on Google. This will allow you to configure different URLs to access different web directories. For example:
example_one.com >> /var/www/example_one
example_two.com >> /var/www/example_two
It’s super-simple to setup. I even touched on the concept slighty during the Multi-Domain tutorial.
Magento
Install it like you normally would. Obviously, replace references of /var/www/html/ with the appropriate directory that you’ve created for your own instance.
Everything else
As for Elasticsearch, Redis, Varnish and stuff like that I’ve no idea how to configure those for multiple instances on the same server. They’ll all need extra configuration that I’ve never even tried before.
Excellent. It helped.
On my old production server when I had 2 site I had Cpannel installed and from what I remember I could have 2 different versions of php.
I’m fighting with installing Mag2.4.
There are issues as always. I think it is due to the composer v2 which was installed automatically.
I don’t think that it will be a big one. Can you tell me how to bike it?
Problem 1
- Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0].
- magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not matc h the constraint.
Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-comp oser-installer[v0.5.0].
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it d oes not match the constraint.
Problem 3
- laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it doe s not match the constraint.
- magento/product-community-edition 2.4.1 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency -plugin[1.0.0, ..., 1.0.4].
- Root composer.json requires magento/product-community-edition 2.4.1 -> satisfiable by magento/product-community-edition[2.4.1].
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-is sue to ask them to support Composer 2.