Why do we have to install Magento 2 in Magento2 folder. Cannot we install Magento on root. How should i work on the ownership of Magento, if i install Magento 2 on root directory.
PS: If i install my Magento2 (127.0.0.1/Magento2) inside a folder, is it possible to run Magento on 127.0.0.1 instead of 127.0.0.1/magento2
Best Answer
You can install magento anywhere you want on the server. The only thing you need to do is to define root folder in apache or nginx configuration so the server would search index.php file in the correct folder. So in order for you to use only 127.0.0.1 without /magento is to change vhost configuration. For nginx you need to set something like
For apache something like