How To Setup Multiple Magento Stores

by Kyle on · Posted in Howto, Magento · 65 Comments

There are numerous ways to setup multiple Magento stores that all share the same codebase and backend, but what method you use depends on your needs.

This article is written with cPanel in mind, though the methodologies listed below apply no matter what control panel you're using.

Jump To Section

  1. URL Structure
  2. Shared Hosting Caveat
  3. Adding Another Store In Magento
  4. Parked Domain Method
  5. Addon Domain Method
  6. Subdomain Method
  7. Subdirectory Method
  8. Managing Multiple Stores
  9. Secure Checkout For Each Domain

URL Structure

The actual URL structure of your stores is a matter of personal preference. You can, for example, have two entirely different stores running on the same domain that share the same instance of Magento:

  • mall.com/shoes
  • mall.com/shirts

These stores could also be setup on their own domain and still share the same instance of Magento:

  • shoes.com
  • shirts.com

Another example would be a mall type setup, where your primary domain is the portal to access various stores:

  • mall.com
  • shoes.mall.com
  • shirts.mall.com

Regardless of the URL structure, the method for setting this up will pretty much be the same, and the result is what we're really after, which is to have one codebase for all of your stores, and one backend to manage all of these stores from.

Shared Hosting Caveat

If you want each store to have it's own SSL certificate and don't want to share a single checkout, e.g. you don't want visitors leaving domainA.com to checkout on domainB.com, then you will not be able to do this in a shared hosting environment.

The reason why you cannot do this is simple. In order for a website to have an SSL certificate, it requires a dedicated IP address.

There's no way to allow an addon or parked domain in cPanel to have its own IP address. Instead, it shares the IP address of the primary domain.

You probably think you could sign up for two shared hosting accounts, so each one has its own dedicated IP address, but that won't work either.

Since it's shared hosting, there are security measures in place to prevent one user from reading the files of another user.

So for shared hosting clients, you're limited to the following scenarios:

  1. All of your stores do not have a secure checkout, which is fine if you're using PayPal, Google Checkout, or a similar third-party service that handles the processing of card data on their website. For example, visitors to any of your stores are redirected to a third-party website for card processing.
  2. All of your stores share a secure checkout point. For example, you own three domains: mall.com, shoes.com, and shirts.com You use mall.com as your primary domain and have an SSL certificate associated with it. The other two domains would be either addon or parked domains, and visitors to those sites would be redirected to mall.com to checkout.
  3. All of your stores are setup as subdomains, and you've purchased a wildcard SSL certificate, which is roughly $1000/year and is for legally registered businesses.

If you do need an SSL certificate for all of your domains, you will need to be in a dedicated hosting environment, such as our Split-Dedicated platform. In this type of environment, all domains will be able to access the same set of files.

Adding Another Store In Magento

The first thing we need to do is setup our second store in Magento.

If you don't know how to install Magento, read our tutorial or submit a ticket to the Magento department.

We're going to do a hypothetical here for the naming conventions, and assume we own shirts.com. Adjust the values accordingly for your own store.

  1. Login to the Magento admin.
  2. Go to the Catalog tab, and select Manage Categories.
  3. Click on the Add Root Category button on the left.
  4. On the right, for the Name, we'll enter Shoes.com. Set the dropdown to Yes for both Is Active and Is Anchor.
  5. Click the Save Category button.
  6. Go to the System tab and select Manage Stores.
  7. Click on the Create Website button.
  8. For the Name, we'll enter Shoes.com, and for the Code, we'll enter shoes. We'll use this value later, so don't forget this!
  9. Click the Save Website button.
  10. Click on the Create Store button.
  11. For the Website, select Shoes.com from the dropdown. For the Name, we'll enter Main Store. For the Root Category, select the Shoes.com from the dropdown.
  12. Click on the Save Store button.
  13. Click on the Create Store View button.
  14. For the Store, select Main Store from the dropdown, making sure it's for the Shoes.com website. For the Name, we'll enter English. For the Code, we'll enter shoes_en. For the Status, select Enabled from the dropdown.
  15. Click the Save Store View button.
  16. Go to the System tab and select Configuration.
  17. For the Current Configuration Scope (located on the top left), change the dropdown menu from Default Config to Shoes.com.
  18. Select Web from the sidebar on the left under the General heading.
  19. For both the Unsecure and Secure sections, uncheck the Use default box next to the Base URL item, and enter the URL for your store, e.g. http://www.shoes.com/. Don't forget the trailing slash!
  20. Click the Save Config button.

Now that we have our second store setup, you'll need to choose one of the following methods for actually setting up the store on the server-side so visitors can access it.

If the URL structure you've chosen will have different domains for each store, the parked domain method is the fastest and easiest method.

Parked Domain Method

For this method, we'll pretend we own shirts.com and shoes.com. The shirts.com domain is our primary domain, and Magento is already installed on it. Here's how we would set this up for the shoes.com domain:

  1. Login to cPanel for your domain and click on the Parked Domains icon.
  2. In the input field, enter the domain name that you'll be setting up as a second store, e.g. shoes.com.
  3. Click on the Add Domain button.
  4. Open up the index.php file for Magento and replace the last line of code:
    Mage::run();

    …with the following code:

    switch($_SERVER['HTTP_HOST']) {
    	case 'shoes.com':
    	case 'www.shoes.com':
    		Mage::run('shoes', 'website');
    	break;
    	default:
    		Mage::run();
    	break;
    }

    If you have more than two stores, you will need to add additional cases to the above code block, e.g.:

    switch($_SERVER['HTTP_HOST']) {
    	 
    	// Shoes.com
    	case 'shoes.com':
    	case 'www.shoes.com':
    		Mage::run('shoes', 'website');
    	break;
    	 
    	// Hats.com
    	case 'hats.com':
    	case 'www.hats.com':
    		Mage::run('hats', 'website');
    	break;
    	 
    	// Shirts.com (default store)
    	default:
    		Mage::run();
    	break;
    }

Addon Domain Method

This is the same scenario as above, except it takes a little longer to setup. This method might be more useful to you if, for example, you wanted to have a blog on one domain, but not on the other. You couldn't do that with a parked domain. Here's how we would set this up for the shoes.com domain:

  1. Login to cPanel for your domain, and click on the Addon Domains icon.
  2. For the New Domain Name, we'll enter shoes.com. cPanel will automatically fill in the next two fields, so remove public_html/ from the Document Root field, leaving us with just shoes.com. This step isn't required, but for organizational purposes, it makes more sense.
  3. Set a password for this domain and click on the Add Domain button.
  4. Login to your site via SSH, and go to the directory that we previously set in the Document Root field above when adding our domain. In our case, we would do the following:
    cd shoes.com/
  5. Copy the index.php and .htaccess file from the directory where Magento is installed, which would be in our root web directory:
    cp ../public_html/index.php ../public_html/.htaccess .
  6. Open up the index.php file that we just copied over and replace the following line of code:
    $mageFilename = 'app/Mage.php';

    …with the following:

    $mageFilename = '../public_html/app/Mage.php';
  7. With the index.php file still open, replace the following line of code:
    Mage::run();

    …with the following:

    Mage::run('shoes', 'website');
  8. Lastly, we need to create symbolic links to point to a few directories:
    ln -s ../public_html/404/ ./404
    ln -s ../public_html/app/ ./app
    ln -s ../public_html/includes/ ./includes
    ln -s ../public_html/js/ ./js
    ln -s ../public_html/media/ ./media
    ln -s ../public_html/report/ ./report
    ln -s ../public_html/skin/ ./skin
    ln -s ../public_html/var/ ./var

Subdomain Method

For this method, we'll pretend we own mall.com, and it's setup as a portal that links to the various shops within the mall. Magento will be installed on the mall.com domain, and all of the shops will be in subdomains, e.g.:

  • shoes.mall.com
  • shirts.mall.com

Here's how we would set this up for the shoes subdomain:

  1. Login to cPanel for your domain, and click on the Subdomains icon.
  2. For the Subdomain, we'll enter shoes. cPanel will automatically fill in the next field, so remove public_html/ from the Document Root field, leaving us with just shoes. This step isn't required, but for organizational purposes, it makes more sense.
  3. Click the Create button.
  4. Login to your site via SSH, and go to the directory that we previously set in the Document Root field above when creating our subdomain. In our case, we would do the following:
    cd shoes/
  5. Copy the index.php and .htaccess file from the directory where Magento is installed, which would be in our root web directory:
    cp ../public_html/index.php ../public_html/.htaccess .
  6. Open up the index.php file that we just copied over and replace the following line of code:
    $mageFilename = 'app/Mage.php';

    …with the following:

    $mageFilename = '../public_html/app/Mage.php';
  7. With the index.php file still open, replace the following line of code:
    Mage::run();

    …with the following:

    Mage::run('shoes', 'website');
  8. Lastly, we need to create symbolic links to point to a few directories:
    ln -s ../public_html/404/ ./404
    ln -s ../public_html/app/ ./app
    ln -s ../public_html/includes/ ./includes
    ln -s ../public_html/js/ ./js
    ln -s ../public_html/media/ ./media
    ln -s ../public_html/report/ ./report
    ln -s ../public_html/skin/ ./skin
    ln -s ../public_html/var/ ./var

Subdirectory Method

This is the same scenario as above, except all of the shops will be in subdirectories, e.g.:

  • mall.com/shoes
  • mall.com/shirts

Here's how we would set this up for the shoes subdirectory:

  1. Login to your site via SSH, and create a subdirectory where your second store will be:
    cd public_html
    mkdir shoes/
    cd shoes/
  2. Copy the index.php and .htaccess file from the directory where Magento is installed, which would be in our root web directory:
    cp ../public_html/index.php ../public_html/.htaccess .
  3. Open up the index.php file that we just copied over and replace the following line of code:
    $mageFilename = 'app/Mage.php';

    …with the following:

    $mageFilename = '../public_html/app/Mage.php';
  4. With the index.php file still open, replace the following line of code:
    Mage::run();

    …with the following:

    Mage::run('shoes', 'website');

Managing Multiple Stores

It's very important to remember that now that you have multiple stores to manage from one admin panel, that you make sure you're changing the configuration for the appropriate store.

In the SystemConfiguration section, if you leave the dropdown menu for Current Configuration Scope set to Default Config, it will globally change the values for all of your stores, assuming you haven't removed the checkmark next to Use default throughout the configuration sections.

You can change the configuration values globally, for each website, and for individual store views.

Secure Checkout For Each Store

For those of you in dedicated hosting environments, you can follow either the addon or parked domain method from above, and edit the httpd.conf file to give the addon or parked domain a dedicated IP address.

However, this is not advised. Your changes will most likely be overwritten with a control panel upgrade, Apache or PHP rebuild, or even simple maintenance.

Your best bet would be to setup each store as a separate account, which can be done in WHM if you have access to it, or in the case of our Split-Dedicated product, something we will be able to set up for you.

Once you have all of your domains setup as individual accounts, you would follow steps 5-8 for the addon domain method, except you're going to use absolute paths instead of relative paths, e.g.:

$mageFilename = '/home/username/public_html/app/Mage.php';

…and for symbolic links:

ln -s /home/username/public_html/404/ ./404
ln -s /home/username/public_html/app/ ./app
ln -s /home/username/public_html/includes/ ./includes
ln -s /home/username/public_html/js/ ./js
ln -s /home/username/public_html/media/ ./media
ln -s /home/username/public_html/report/ ./report
ln -s /home/username/public_html/skin/ ./skin
ln -s /home/username/public_html/var/ ./var

Lastly, in order for the above to work, you will need suEXEC disabled. This won't be a problem in a dedicated hosting environment, since you don't have to worry about other people being able to access your files.

This is just one of the many advantages of running your online business in a more secure and flexible hosting environment like this. If you're on our Split-Dedicated product, this is something we'll have to disable for you.

Once you've done the above, all of your stores will have their own secure checkout and IP address, but will still share the same codebase and backend for management purposes.

Updates

Multi-Store Setup For 1.4.x

Please refer to the following blog post for changes on setting this up on the 1.4.x version of Magento:

http://cwhurl.com/mmss

Wildcard SSL Certificate

If you're having trouble installing a wildcard SSL certificate with cPanel and setting it up on all your subdomains, please refer to knowledge base article for help.

Save. Share. Submit.

Comments

Don't Be Shy…

You can leave a new comment or reply to one of the comments below.

Tom

Thank you for this detailed instruction!

Oliver

Perfect instruction! Thanks alot

Bernhard

the site with all the describtions was very, very usefull and after 3 hours trying around and searching on the magento forum your info was the one which gave me the understanding!

Michel

isn’t there an other way after more than a year?

Kyle

Not that I’m aware of, this is still the only way to do a multi-store setup.

Erwin Raaphorst

..looks like it now Magento 1.4 is released wink

4WLADZA

It would be a long day with Magento smile Thank You.

Kal_El

I have followed instructions to a ‘T’, yet no matter what I do the index file can not see Mage.php

basically i have set it up using the ‘Subdirectory Method’ which is “../public_html/store/euro/”

the mage file is located “../public_html/store/app/Mage.php yet when i redirect the index.php file (within the euro subdirectory) it says “../public_html/store/app/Mage.php was not found”

the address is definately correct….

basically im trying to build a new store for each currency - using the same products, the currency is the only change.

I have tried editing the .HTaccess file with no luck…

Kyle

Try using this line of code instead:

Mage::run('shoes');

Let me know if that works for you.

Kal_El

I updated that as per your suggestion but still not accessible. is it a problem with my server set up?

Have recently upgraded to V1.4.0.0 - could this affect the instructions above?

Kyle

These instructions will still work for the latest version, I would suggest trying absolute paths instead of relative ones, and making sure in the index.php file that you adjust all the locations where it’s calling for a script accordingly.

Tony Connery

This is the best guide i have found on how to get this up and running. And i am nearly there

Just struggling a bit with the last part

I followed the instructions to the letter, the only change i had to make was

$mageFilename = '../public_html/app/Mage.php';

When i set up the add-on domain i put it in public_html/secondwebsite.com so i changed it to:

$mageFilename = '../app/Mage.php';

And it pointed accross ok.

The functionality worked fine, but the website was unstyled, the only final part i need to do is the symlinks which i am struggling with

Is there anyway to do these symlinks with htaccess.

The server blocks the php symlink function so i cannot use that,

I am struggling with setting up SSH and connecting in to run the right functions,

I found on the internet to try doing it through cron. so i tried this

I have tried every combination i can think of (replacing the home/username with the right settings)

1) ln -s /home/username/public_html/js/ ./js
2) ln -s /home/username/js/ ./js
ln -s /home/username/public_html/js/ /home/username/public_html/secondwebsite.com/js

I am also not sure whether i should have been randomly trying one option after the other… hope that will have no bad effects .....

Because of the deviation from the tutorial, i am not sure i am on the right track anymore. Some help to get me back on track would be very appreciated

Thanks

Zac

I may be having a similar issue to Tony. It seems that no matter what combination I use for paths in the symlinks, it consistently tells me that there was an unexpected ‘.’

I always change the first couple when i make a change, and yet the error always happens on the same line, which is the first line of the symlinks.

My parent site is the magento directory, and the child is test1.
public_html/magento/test1

ln -s ../../magento/404/ ./404
ln -s ../../magento/app/ ./app
ln -s ../public_html/magento/includes/ ./includes
ln -s ../public_html/magento/js/ ./js
ln -s ../public_html/magento/media/ ./media
ln -s ../public_html/magento/report/ ./report
ln -s ../public_html/magento/skin/ ./skin
ln -s ../public_html/magento/var/ ./var

Any Help?

Richard E. Poulin III

Is there an update for this for Magento 1.4?

Tom

Hi,
Does this still work for Magento ver 1.4.01?
Thank You,

Kyle

While I haven’t tested this yet, I see no reason why it would not. Please let me know if it doesn’t and I will make a new blog article on how to do this.

jai

version 1.4.0.1
It did not work.  Can some one guide me how to add multiple sites. If you can send steps then I will really indebted.

hardly urgent.

Richard E. Poulin III

No. 1.4 you do not have to do all of these steps. This link describes the new steps how to do it for the newer version of Magento: http://blog.baobaz.com/en/blog/setting-up-magento-with-multiple-websites-or-stores

vtiger

a really good manual, many thanks

Magento Developer

Thank you for providing detail information on how to setup multiple store in magento. Your instruction work for me and save my lots of time and efforts. Nice post.

irvinelmo

Hi,

I have a Magento site and its traffic is high. http://www.accounts-merchant.com/Lately, the site has been becoming slow approximately once a day. About a month ago, it used to become slow about one time every 3 weeks.

As soon as I restart the Apache web server, the site becomes fast again.

Do you think that this is a bandwidth issue? If I increase the bandwidth on my server, will I solve this problem?

Thanks in advance.

josephniva

I am in need of Magento Developers for my site.
http://www.accounts-merchant.com/
Where can I find experienced Magento Developers?Can anyone please help me.Thanks.

ProContractors

@irvinelmo
Looks like a memory issue. - When your memory is filled up. The starts to swap memory in/out to disk. Hence a bad performance.

When you restart your Apache. The memory is cleaned. And no more need to swap memory to and from disk.

just my 50 cent.

Yoza

Hello,

I tried the subdirectory method and I get a 404 error when I am trying the new store (the first store is still working).

Any ideas ?

By the way the doc say :

replace in index.php $mageFilename = ‘app/Mage.php’; by
$mageFilename = ‘../public_html/app/Mage.php’;

Shouldn’t it be $mageFilename = ‘../app/Mage.php’;
since index.php is already in public_html directory ?

Thanks

Dansksun

I had some issues hosting my solution in Media Temple Grid service,
and after plying with it it turned out that the way to write this line was ../../maindomain.com/html/app/Mage.php

so for you it may be ../../maindomain.com/public_html/app/Mage.php

Yoza

Hello again, it’s ok I found my error.
Thanks for this doc.

andrew

Hello. I am using Magento version 1.4.0.1. I am able to access a second Website in a subdirectory after changing the following code in the copied over index.php:

$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : 'my_code';
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'website';

but none of my js or css files are loading. How can I set the paths for those? The instruction for adding the symbolic links is vague above for someone who has never done so before. Where do I add the symbolic link code?

andrew

Really quick follow up. My js and css load fine now but I had to update the paths in System > Configuration > Web for each subdirectory store. I had to type out the full paths to my skin, media, and js folders rather than use the variables, e.g. {{unsecure_base_url}}. Though I would like to use the variables.

Everything works fine now. I did not add anything to my .htaccess to achieve this.

Johnny

I’m using magento 1.4 on Kinderkleding, but is working properly, didn’t need to change the code at all?

Dansksun

I am also using I am using Magento version 1.4.0.1.
All is working fine but like andrew none of my js or css files are loading.
Have tried to specify the exact path for those (like Andrew in this post) but it did not work.
Again, the instruction for adding the symbolic links is vague. Can you better explain where do I add the symbolic link code?

Required

You create those links via SSH. Ask your hosting provider if your package has access to that.

mike

What is the point of symbolic links for all the folders if they are not being used?

Required

in what case is it not being used?

Mike

Sorry, that is my question.  I thought that all the folder structure was using the Root folder.  I guess I don’t understand what a symbolic link is doing in Magento. 

Beginner here… wasn’t questioning your knowledge.  Just didn’t want to create extra work.

Required

np.

Just try to create the symbolic links and see what it can do. I could describe it, but you learn a lot more by doing it yourself and see the results. Also check out the folder structure after creating those links. Use “rm [linkname]” to remove the links afterwards.

mike

Version 1.4- I’m using 1 SSL on my main website.  I set my other 3 websites to use the main domain as the SSL for my cart.  I created the 3 url’s as add on domains in my Cpanel with folders outside my root. 

I believe I have everything set up right because I can go to the 3 websites and the domain names stays in the browser.  I’m able to add items to my cart fine. 

My PROBLEM…. if I click ‘Proceed to Checkout’ it takes me to the main website with my SSL on it but the url doesn’t change to the https.  The other issue is that it tells me that my cart is empty.  I then go back to my website that I had a item in my cart and the item is in the cart.  I confirm with the 3 websites, under the web section of config, that my secure website was set to my main site. 

I believe this is a simple fix (setting) so can someone please help me out.  I’m thinking this is a 1.4 issue but I can’t find any other articles.

Ste

I wonder if anyone can help. I have a second site set up using the above method which works fine, but I it doesn’t seem to work with url rewrites turned on in magento. Does anyone know how to fix this?

luc

I would set up a multiple shop in the Parked Domain Method with following scenario:
Main website: firstdomain.ext
second website : seconddomain.com (alias of the first domain on the plesk panel)
I have the main website installed in the firstdomain.ext root.
The question is:
Have I to install another magento? if yes, where ?
——
My target is having two different shop with different articles, different checkout, different company info, different template and same users database.

Thanks for help

luc

I just follow the instruction of the Parked Domain Method setup, but I get an error 404 on the secondary store.

Daniel

I was hoping to find out how to use this method, but be able to use one cart for all stores.
I have set up the multi-store environment and have it working, however the cart is not being shared.
Can someone tell me how this is accomplished or an article?
Thanks
Daniel

andrew

Have you set up multiple stores under one website or multiple websites? I was able to achieve this by specifying ‘store’ in the below code instead of ‘website’ for $mageRunType and placing the store view code instead of website code for $mageRunCode:

$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ‘my_code’;
$mageRunType = isset($_SERVER[‘MAGE_RUN_TYPE’]) ? $_SERVER[‘MAGE_RUN_TYPE’] : ‘store’;

I was still able to set each of my stores in separate sub-directories. All are using same cart. Hope this is helpful. I apologize if this is info you already know.

Daniel

andrew, I have separate Url’s for each site, however all the sites are using the main websites ‘root documents’.
I wonder if this would still work in my case? Also, you have in your first line, ‘my_code’;  Is that really what you have listed there? And what does the my_code refer to? New to this so please forgive my ignorance.
Maybe I should set them up under one website, then have separate stores, but use different url’s?

andrew

Sorry for late reply, you have probably figured out your issue. ‘my_code’ refers to the code I entered for my Store View. Since I labeled my Store name as Boats and my Store View name as ‘English’ the actual code I placed for Store View is ‘en_boats’. I simply placed my_code in for an example.

vishal

Hello ,

I need to access a module from subdomain
i.e. http://www.domain.com/remarks/  - need to access from remarks.domain.com

I tried much , but cant find any solution…...

Thanks,,,

Josh

Hi:

I am trying to use the subdomain method, but I keep getting the following error msg:

Parse error: syntax error, unexpected ‘.’ in /home/homeofbe/ibm/index.php on line 70

Line 70 relates to the 1st line of the symbolic links of which mine looks like:

ln -s ../public_html/store/404/ ./404
ln -s ../public_html/store/app/ ./app
ln -s ../public_html/store/includes/ ./includes
ln -s ../public_html/store/js/ ./js
ln -s ../public_html/store/media/ ./media
ln -s ../public_html/store/report/ ./report
ln -s ../public_html/store/skin/ ./skin
ln -s ../public_html/store/var/ ./var

Any ideas?

andrew

The symbolic links are set via SSH. This code is not to be placed in the index.php file.

Daniel

I am still stuck on trying to share the cart between stores.
I have a main site and parked domains. I am able to set up the multi-store just fine, but the websites are not sharing the cart.
I have tried every setup possible in the config>stores> area.
Can someone please tell me what I am doing wrong?

andrew

You are probably setting up multiple ‘Websites’ and not multiple ‘Stores’ in magento. From above example: Instead of Mage::run(‘hats’, ‘website’) you would have Mage::run(‘hats’, ‘store’).

‘store’ being the code type and ‘hats’ (in this examples case) being the ‘Store View’ code.

And in magento setup you would create one main website that has different stores under it.

Not sure if this helps. I was unable to have multiple Websites that shared the same cart. There may be a way but this worked for me.

Daniel

Andrew
But this will work with parked domains as well? Do you have an IM that I can talk to you? Thanks for your help

andrew

I cannot really advise regarding parked domains. I have not set stores up using that method. I would suppose that you can use the same code as provided here but change your code type from ‘website’ to ‘store’ and use corresponding Store View code instead of website code created in Magento admin. Making sure that all stores are under same Website. I think you will just have to try it and see. Sorry if I lead you astray. But this seems logical to me.

Gui

This is a real ignoramus question…
I know how to access my Cpanel, but have no idea what SSH is, nor the “cd….cp…” bits.  I trying to do the subdirectory method.  I want to have subdirectory for each country, but they will be different “stores” under the 1 website (sharing root catalogue, but unique articles, currencies, etc.)
Can anyone please enlighten me?

Kyle

SSH is a protocol, like FTP. You’ll need an SSH client to connect to your site (just like you would need an FTP client to connect via FTP). You can download one here:

https://support.crucialwebhost.com/download/1/

Roch

Do you know of anyway with htaccess to disable someone from using your domain to point to their own website on the same server? Ex: they use YOURDOMAIN.com to promote their PHISHING WEBSITE.COM by using this simple URL to send users : YOURDOMAIN.COM/~phishing/file.html

Any help would be greatly appreciated. Thanks

hostrightnow

Thanks for this post. Because to find these instructions at one place is not easy

WebBloomer

I don’t see the the Mage::run(); in my index.php? 

The closest code I see is:
$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ‘’;
$mageRunType = isset($_SERVER[‘MAGE_RUN_TYPE’]) ? $_SERVER[‘MAGE_RUN_TYPE’] : ‘store’;

Mage::run($mageRunCode, $mageRunType);

I’m trying to use the addon method for multiple domain names.  Any advice would be amazing!  Thanks!

News > Tech, Business, Careers India

Thank you for this detail. I have helped this.

Wendy

I have a 3 store set up and used the great directions above to set up the first two.  I recently added the third ier-sse.com and have ran into a snag that I can not figure out.

As far as I can see everything is set up the same as the other site but when you try to use any of the links in the third site you get an Internal Server Error… ???

The template change is correct and and the info change for the most part is correct but I don’t know what is causing the error. any insight on what I may have done wrong?

Magento development

@WebBloomer
I presume you are using Magento 1.4, the index.php code should look like this:
$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ‘->ENTER_THE_CODE_HERE<-’;
$mageRunType = isset($_SERVER[‘MAGE_RUN_TYPE’]) ? $_SERVER[‘MAGE_RUN_TYPE’] : ‘store’;
@Wendy,
I wanted to check the store ier-sse.com to see if I can help you but I see you fixed the issue, can you let us know what was wrong ?

Wendy

I worked through several small issues.. the main one being I just needed to restructure the file system.  I am currently running 4 stores off one database. This site was VERY helpful.  Thank you so much

ProContractors

This is without any doubt one of the best blog posts regarding magento on the internet.

Yaro

Nice.

glenn

hi i am just setting up an instance of say Mall.com and i want to “sublet” a store style to another business that i do not own is there a way of giving that business access to the admin panel for just their sublet store and not the rest of my store sections?

andy

Hi So I have added the 2nd store per your tutorial, but when i am going to the page i get this error:


There has been an error processing your request.

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 88: parser error : Opening and ending tag mismatch: block line 46 and reference in /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Model/Layout/Update.php on line 296
Trace:
#0 [internal function]: mageCoreErrorHandler(2, ‘simplexml_load_…’, ‘/home/wedding/p…’, 296, Array)
#1 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Model/Layout/Update.php(296): simplexml_load_string(‘fetchFileLayoutUpdates()
#3 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Model/Layout/Update.php(246): Mage_Core_Model_Layout_Update->fetchPackageLayoutUpdates(‘default’)
#4 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Model/Layout/Update.php(224): Mage_Core_Model_Layout_Update->merge(‘default’)
#5 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Action.php(265): Mage_Core_Model_Layout_Update->load()
#6 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Action.php(221): Mage_Core_Controller_Varien_Action->loadLayoutUpdates()
#7 /home/wedding/public_html/shoppe/app/code/core/Mage/Cms/controllers/IndexController.php(60): Mage_Core_Controller_Varien_Action->loadLayout()
#8 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Cms_IndexController->defaultIndexAction()
#9 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch(‘defaultIndex’)
#10 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /home/wedding/public_html/shoppe/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/wedding/public_html/shop/digital-downloads/index.php(65): Mage::run(‘ddownsite’, ‘website’)
#13 {main}         

Mage :: run is set to:

Mage::run(‘ddownsite’, ‘website’);

where ddownsite is the code for Website Name

would you know what the issue is?

Wendy

17.  For the Current Configuration Scope (located on the top left), change the dropdown menu from Default Config to Shoes.com…..

OK, so I thought I had done this and hit “save”...but as it was saving I looked up and saw that it was on default.  So now I can’t get into my admin panel or anything and main website doesn’t work.  Know where I can get in to change this back???  Help!