Magento Addon Domain Script Addon scripts can be found in the below link: https://gitlab-free.devops.ukfast.co.uk/ans/linux-team/magento-stack/-/tree/master/Ubuntu?ref_type=heads pick the appropriate script for the use case. MAIN DOMAIN cd /tmp vi addon.sh Paste in script edit: domain (don't include www.) wp & wp databases multistore? php version ie 8.1 varnish docroot leave blank for main domain, for multistore put existing main domain doc root UAT = staging yes or no bash addon.sh MULTISTORE multistore = yes docroot = main domain docroot phpfpmuser = main domain user phpfpmgroup = main domain group     Magento Installation Magento2 ------------------------------------------------------------------------------------------------------------------------------------------------ Magento is an ecommerce stack typically made up of the following components: nginx/apache mysql/mariadb php Elasticsearch - Used in Magento as the store search engine and product cataloguing system. Composer dependency tool for PHP - essentially it will automatically install/configure PHP dependancies ie extensions. Varnish - HTTP caching service Redis - memory database caching service ------------------------------------------------------------------------------------------------------------------------------------------------ Installation Process https://www.mgt-commerce.com/tutorial/how-to-install-magento-2-4-4-on-ubuntu-20-04/ Useful Commands