Tue. Jul 2nd, 2024

Step 3: Store Configuration in the Server

1 min read

Step 3: Store Configuration in the Server

 

  1. In this tutorial we are going to see a second website at www.your_domain.com/magento/magento2. We are going to access the magento directory on our server and create a sub-directory folder magento2.
  2. Copy the index.php file as well as the htaccess file from the magento folder over to the magento2 folder. In case you are using a different domain – copy these files to the root folder or your other domain).
  3. Open your index.php file and look for the following line
    “$mageFilename = ‘app/Mage.php’;”
  4. Change it to
    $mageFilename = ‘../app/Mage.php’;
  5. Save the changes
  6. Open up the copied htaccess file.
  7. Add the following to the end of it
    SetEnvIf Host .*base.* MAGE_RUN_CODE=”base”;
    SetEnvIf Host .*magento_site_2.* MAGE_RUN_TYPE=”magento2″; 

    where magento2 is the website code taken from Step2 point 2 of this tutorial.

  8. Save the changes.
  9. In your Magento admin go to System -> Configuration -> General.
July 2024
M T W T F S S
« Jun    
1234567
891011121314
15161718192021
22232425262728
293031