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 4WLADZA that was posted on February 12, 2010…
It would be a long day with Magento
Thank You.
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 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 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/jsI 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/test1ln -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/ ./varAny 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 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 vtiger that was posted on March 05, 2010…
a really good manual, many thanks
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.phpso 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.comI 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/ ./varAny 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
![]()
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:
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 hostrightnow that was posted on June 09, 2010…
Thanks for this post. Because to find these instructions at one place is not easy
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 News > Tech, Business, Careers India that was posted on June 23, 2010…
Thank you for this detail. I have helped this.
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 Tom that was posted on February 26, 2010…