1

Please tell me I am working Magento 2 on ubuntu now 1 Magento 2.3 is install and running condition so how to download 2 second magento2.3 on localhost this one server?

3
  • Can you please explain a bit more in the question? Mar 6, 2019 at 6:08
  • What are you using? nginx or apache? Mar 6, 2019 at 6:10
  • apache ubuntu 18.04 @ShoaibMunir & already one magento is now running so how to setup new another fresh magento2.3 this server?@Mohit Mar 6, 2019 at 6:20

1 Answer 1

0

Create new magento directory beside your current magento directory

Like if you have currently using magento in /var/www/magento2-1

Then create new directory /var/www/magento2-2

If you are using nginx then add your new magento entry in config, probably with the name default in /etc/nginx/sites-available/ file name could be anything else. Code would be like this:

server {
     listen 8080;
     server_name www.magento2-1.com;
     set $MAGE_ROOT /var/www/magento2-1;
}

server {
     listen 8080;
     server_name www.magento2-2.com;
     set $MAGE_ROOT /var/www/magento2-2;
}

Copy your first magento configuration to create another, do not rely on my configuration it's just a sample

If you are using apache then add your new magento entry in config, probably with the name default.conf in /etc/apache2/default.conf file name could be anything else. Code would be like this:

<VirtualHost *:80>
        ServerName www.magento2-1.com
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/magento2-1
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/magento2-1>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

<VirtualHost *:80>
        ServerName www.magento2-2.com
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/magento2-2
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/magento2-2>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

Copy your first magento configuration to create another, do not rely on my configuration it's just a sample

In case of nginx restart nginx

service nginx restart

In case of apache restart apache

service apache2 restart
1
  • Did it work for you? Mar 6, 2019 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.