You're replying to a comment left by Kal_El that was posted on February 19, 2010

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?

You're replying to a comment left by Tom that was posted on February 09, 2010

Thank you for this detailed instruction!

You're replying to a comment left by Oliver that was posted on February 11, 2010

Perfect instruction! Thanks alot

You're replying to a comment left by Bernhard that was posted on February 11, 2010

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!

You're replying to a comment left by Michel that was posted on February 12, 2010

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

You're replying to a comment left by Kyle that was posted on February 12, 2010

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

You're replying to a comment left by Kal_El that was posted on February 19, 2010

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…

You're replying to a comment left by Kyle that was posted on February 19, 2010

Try using this line of code instead:

Mage::run('shoes');

Let me know if that works for you.

You're replying to a comment left by Kyle that was posted on February 19, 2010

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.

You're replying to a comment left by Tony Connery that was posted on February 21, 2010

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

You're replying to a comment left by Zac that was posted on February 22, 2010

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?

You're replying to a comment left by Richard E. Poulin III that was posted on February 25, 2010

Is there an update for this for Magento 1.4?

You're replying to a comment left by Tom that was posted on February 26, 2010

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

You're replying to a comment left by Kyle that was posted on February 27, 2010

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.

You're replying to a comment left by Richard E. Poulin III that was posted on February 28, 2010

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

You're replying to a comment left by Magento Developer that was posted on March 05, 2010

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.

You're replying to a comment left by Yoza that was posted on March 09, 2010

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

You're replying to a comment left by Yoza that was posted on March 09, 2010

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

You're replying to a comment left by andrew that was posted on March 17, 2010

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?

You're replying to a comment left by andrew that was posted on March 23, 2010

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.

You're replying to a comment left by Johnny that was posted on March 24, 2010

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

You're replying to a comment left by Dansksun that was posted on March 26, 2010

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

You're replying to a comment left by Dansksun that was posted on March 26, 2010

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?

You're replying to a comment left by mike that was posted on March 26, 2010

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.

You're replying to a comment left by Required that was posted on March 27, 2010

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

You're replying to a comment left by mike that was posted on March 27, 2010

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

You're replying to a comment left by Required that was posted on March 27, 2010

in what case is it not being used?

You're replying to a comment left by Mike that was posted on March 27, 2010

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.

You're replying to a comment left by Required that was posted on March 27, 2010

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.

You're replying to a comment left by jai that was posted on April 01, 2010

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.

You're replying to a comment left by Ste that was posted on April 08, 2010

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?

You're replying to a comment left by luc that was posted on May 04, 2010

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

You're replying to a comment left by luc that was posted on May 04, 2010

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

You're replying to a comment left by Daniel that was posted on May 12, 2010

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

You're replying to a comment left by vishal that was posted on May 14, 2010

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,,,

You're replying to a comment left by andrew that was posted on May 15, 2010

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.

You're replying to a comment left by Daniel that was posted on May 16, 2010

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?

You're replying to a comment left by Josh that was posted on May 19, 2010

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?

You're replying to a comment left by andrew that was posted on May 20, 2010

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

You're replying to a comment left by andrew that was posted on May 20, 2010

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.

You're replying to a comment left by Daniel that was posted on May 20, 2010

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?

You're replying to a comment left by andrew that was posted on May 20, 2010

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.

You're replying to a comment left by Daniel that was posted on May 20, 2010

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

You're replying to a comment left by andrew that was posted on May 20, 2010

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.

You're replying to a comment left by Erwin Raaphorst that was posted on May 30, 2010

..looks like it now Magento 1.4 is released wink

You're replying to a comment left by Gui that was posted on June 01, 2010

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?

You're replying to a comment left by Kyle that was posted on June 01, 2010

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/

You're replying to a comment left by Roch that was posted on June 08, 2010

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

You're replying to a comment left by WebBloomer that was posted on June 10, 2010

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!

You're replying to a comment left by Wendy that was posted on June 24, 2010

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?

You're replying to a comment left by Magento development that was posted on July 01, 2010

@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 ?

You're replying to a comment left by ProContractors that was posted on July 14, 2010

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

You're replying to a comment left by Wendy that was posted on July 15, 2010

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

You're replying to a comment left by Yaro that was posted on August 06, 2010

Nice.

You're replying to a comment left by Edwin L. that was posted on August 09, 2010

For the benefit of fellow Magento’ers, http://cwhurl.com/mmss now points to:

http://blog.baobaz.com/en/blog/setting-up-magento-with-multiple-websites-or-stores

You're replying to a comment left by glenn that was posted on August 16, 2010

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?

You're replying to a comment left by andy that was posted on August 23, 2010

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?

You're replying to a comment left by irvinelmo that was posted on August 24, 2010

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.

You're replying to a comment left by josephniva that was posted on August 24, 2010

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.

You're replying to a comment left by ProContractors that was posted on August 24, 2010

@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.

You're replying to a comment left by Wendy that was posted on August 25, 2010

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!

You're replying to a comment left by magento design that was posted on September 05, 2010

I wold suggest checking index.php from the root second store for any missing closing tags.

You're replying to a comment left by Dx3webs that was posted on September 11, 2010

Based on this excellent guide we have created a tutorial for those who use Plesk to manage their servers.

http://dx3webs.com/front/2010/08/magento-multistore-setup-under-plesk/

You're replying to a comment left by Magento Developer that was posted on September 12, 2010

Hello There,
          Thanks for this info this will really help me in my one of the current project. for Multiple stores in magento ...

Thanks,
Samir vohra

You're replying to a comment left by Avinash that was posted on November 15, 2010

Hi all
i have a problem. when i am going to add product new store. allway its reqired to select websites section is there any process to add product in new store without selecting websites becouse i am using different skin for all the store please help me.

Thanks
Avinash singh

You're replying to a comment left by Jamey that was posted on November 19, 2010

I keep getting stuck at the point of creating symbolic links.  I’ve tried everything I can think of and keep getting an invalid command returned to me.  Anybody have any suggestions?  I’m trying to get multi-site setup with domain1.com and domain2.com.  I think I’ve done everything else correctly but can’t make the symbolic links so I keep getting this:
../app/Mage.php was not found

maybe it’s not a symbolic link issue but that’s the only part I haven’t seem to have figured out right.  Any help is very much appreciated.

You're replying to a comment left by Linda that was posted on December 27, 2010

Hi..
Trying to set up multi sites and keep getting stuck.

I’m trying to set up…

Main Store: http://www.YourEcoWorld.com
Site 1: http://www.YourAloeStore.co.uk
Site 2: http://www.EcoToyStore.co.uk

I’ve completed all the set up in Admin and was now trying to get the domains to point appropriately

I’ve added the following to index.php after ....
: ‘store’;  and before… Mage::run($mageRunCode, $mageRunType);

switch ($_SERVER[‘HTTP_HOST’]) {
case “www.yourecoworld.com”:
$_SERVER[‘MAGE_RUN_CODE’] = “base”;
$_SERVER[‘MAGE_RUN_TYPE’] = “website”;
break;
case “www.youraloestore.co.uk”:
$_SERVER[‘MAGE_RUN_CODE’] = “aloe”;
$_SERVER[‘MAGE_RUN_TYPE’] = “website”;
break;
case “www.yourecotoystore.co.uk”:
$_SERVER[‘MAGE_RUN_CODE’] = “ecotoys”;
$_SERVER[‘MAGE_RUN_TYPE’] = “website”;
break;
//etc
}

But it just doesn’t seem to recognise it. I’ve also tried ‘store’ instead of website

Starting to get a little frustrated with it having tried to sort this out all day….

Can you please point out where I’m going wrong?

Thanks in advance

You're replying to a comment left by Andy that was posted on January 08, 2011

Hi used this method worked brilliantly. How do you set up custome transactional emails though ?

You're replying to a comment left by Lawrence that was posted on January 17, 2011

Thanks for the post, Kyle. It is very informative and gave me a much better understanding of setting up multi-stores in Magento.

For those having problems with the additional stores not displaying the skin, chances are that the symbolic links are not working so Magento is not able to access the linked folder. One way to check is after creating the links using Kyle’s instructions above, change directory to each of the symbolic links created using a cd command. If you get an error then the symbolic link is not working. If it works you should be able to list the files and folders in the linked folder.

Note also that with v1.4, the 404 and the report folders are no longer at the Magento root. 404 is now under the errors folder and the report is under the var folder. v1.4 also has a lib folder at the root. I’m not sure whether it’s required but I created the symlinks anyway so that the folder structure reflects that of the original Magento root.

It’s also worth using absolute paths for the symlinks as Kyle suggested above. It certainly helped in my config.

Hope the above helps.

You're replying to a comment left by Jersey Web Design that was posted on January 18, 2011

Great tutorial but for 1.4+ users, things have changed a little and you no longer need to edit the index.php.  The following describes this:

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/multiple-website-setup

You're replying to a comment left by vivian that was posted on January 27, 2011

I have 30 stores with the same products for example.
will have a price adjustment
changing only one time for each product without changing the 30 stores?

You're replying to a comment left by Phil de Gruchy that was posted on February 01, 2011

Hi Mike,

Did you manage to sort this issue out as I have the same problem as you.

Thanks,
Phil

You're replying to a comment left by Gui that was posted on February 08, 2011

PHYSICAL subdirectories???  Sorry to be dense, but can someone explain this for me please?.......

I’m wanting to set up multiple stores on subdirectories, and I think I understand the method.  However, In Kyle’s blog post above it details creating actual physical subdirectories, which was what I was going to do.

But then, this seems to to conflict with Crucial Hosting’s other comment (no.13) at:
http://www.magentocommerce.com/blog/comments/multi-store-retailing-magento-demo/
Here, it is suggested that NO physical subdirectories are actually created but that they are “mimicked” by “setting Add Store Code to Urls to Yes in the Url Options section [and] Set the Secure and Unsecure URLs back to default.”

What is the difference?  Can anyone give any guidance here please?
Many thanks

You're replying to a comment left by Luc that was posted on March 17, 2011

Tested it today on 1.5.0.1 and this methodology is still valid.

You're replying to a comment left by Archie that was posted on April 04, 2011

Andrew, you dont have to replace paths for all sub directory store, you can just place the absolute url in the main store and for subs, just check Use Website and only the Base URL should be updated.

Just make sure your cookie path for Main store also points to your main store URL

You're replying to a comment left by jiu jitsu gear that was posted on April 04, 2011

hi…
this is very interesting blog and very informative too….thanks for the information…..and keep posting….

You're replying to a comment left by Sudipta that was posted on April 07, 2011

I had tried it with my website and It works.Thanks

You're replying to a comment left by blumenversand that was posted on April 21, 2011

Thanks for the clarification and the structure. We are currently thinking about setting up multiple Magento stores for our 2 web projects and will test the subdomain method for it. I think the tutorial will help us with some clarifications.

You're replying to a comment left by Peter that was posted on April 27, 2011

Its the same as this -> Mage::run($mageRunCode, $mageRunType);

$mageRunCode is a variable
$mageRunType is a variable

In the line above, $mageRunCode is assigned.
Place your store code inbetween ’  ‘.

then assign $mageRunType to ‘store’ or ‘website’

You're replying to a comment left by Peter that was posted on April 27, 2011

Issue 1: double check your system>>configuration, secure url has HTTPS

Issue 2: Not So Simple
Cart content sharing only works at the store level.
Website1: Store1, Store2, Store3, will all share cart contents.

Cart content sharing does not work across websites.
Website1: separate checkout
Website2: separate checkout

Look at Gap.com closely. All the TLD stores are redirected to subdomains of gap.com.

The stores are able to share the cart content because its all under the Gap.com domain. It has a few other things going on so that each store can have its branded checkout (separate IP).

You're replying to a comment left by Biggest Loser that was posted on May 29, 2011

Thanks, this worked just perfectly smile

You're replying to a comment left by Jerome Nicholas that was posted on June 04, 2011

Magento 1.5.1

i dont have terminal access to the web server is there another way to do the linking part (ln -s ../public_html/404/ ./404)

You're replying to a comment left by PSD to Magento that was posted on July 14, 2011

@Jerome Nicholas

Yes, I am having the same problem, don’t have SSH access, so I have used symlink() of php which works perfectly.

You're replying to a comment left by Imran that was posted on July 18, 2011

Hi! can someone tel me how can i setup a multiple store in windows????

You're replying to a comment left by Robin that was posted on July 22, 2011

Hi, I have manage it to work with magento 1.6
Edit index.php:
/* Store or website code */
$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ‘shoes’;

/* Run store or run website */
$mageRunType = isset($_SERVER[‘MAGE_RUN_TYPE’]) ? $_SERVER[‘MAGE_RUN_TYPE’] : ‘website’;

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

Run the SSH command with: ls -alh

You're replying to a comment left by ultraspeed that was posted on August 10, 2011

Ultraspeed provides managed hosting, Virtual Server Hosting and Cloud Hosting solutions to a broad range of clients from SMEs to FTSE companies. They deliver affordable performance using a unique blend of cutting-edge technology that is supported 24 hours a day with the ability to change a server within 15 minutes, They focus is on providing businesses with unrivalled scalability and reliability for the most demanding applications that need continuous uptime. Their Diskless Simple product brings the benefits to small businesses too, offering shared hosting and domain registration with low-end prices and high-end service guarantees. With Ultraspeed, everyone’s ready for the future.