I’ve searched for this topic but can’t find anything that exactly matches / solves my problem.
I have a Magneto installation working and taking orders on http://www.store1.co.uk
I am trying to add another Magento installation on http://www.store2.co.uk on the same server.
The steps I have taken so far:
1. Created the root catalogue for the store2 website and added some products (and made sure the products are active on both
websites)
2. Created new website, store and store view in Magento
3. In Configuration for the store2 website configuration scope I have changed the WEB settings as follows:
Unsecure:
Base URL: http://www.store2.co.uk/
Base Link URL: {{unsecure_base_url}}
Base Skin URL: {{unsecure_base_url}}skin/
Base Media URL: {{unsecure_base_url}}media/
Base JavaScript URL: {{unsecure_base_url}}js/
Secure: Same as above for now
4. On the server (as root) I have created symbolic links to the app, includes, media, js, report, skin and var directories for the
main installation.
e.g. in /home/store2/public_html there is a symbolic link for app that points to /home/store1/public_html/app
5. Copied the index.php from store1 installation to the store2 directory /home/store2/public_html
I believe the $mageFilename in index.php should point to the main installation due to the symbolic links above.
6. Copied the .htaccess from the main installation to the store2 directory /home/store2/public_html
In this file I have added the following lines at the top:
SetEnvIf Host .*store2.* MAGE_RUN_CODE="store2";
SetEnvIf Host .*store2.* MAGE_RUN_TYPE="website";
From all the posts and guides I have read about setting multiple websites up, I believe this should do the trick.
This 404 page does contain an attempt to display a logo.gif
<a href="http://www.store2.co.uk/" title="Magento Commerce” class="logo"><img src="images/logo.gif" alt="Magento Commerce” /></a>,
and also a Varien copyright notice, so I assume this means it is running Mage.php rather than just unable to get to it.
There is a similar post I have found where someone says he had it working fine but got 404 error on the second domain when he
turned on URL rewrites. Can anyone confirm if this might be the problem and whether it is possible to have 2 sites on 2 domains
but still have URL rewrites active?
Thanks in advance to anyone who can provide assistance on this.
Is there anyone who knows the answer to this question? Please, if anyone has set this up I’d love to know. Even if you aren’t able to help me to sort mine out, at least I would know whether I’m bashing my head against a brick wall and stop.
Thanks. I got there eventually and it was frustratingly simple.
Point 5 from my original post was the problem. In the index.php the path to the Mage.php file needed to be an absolute path /home/user/public_html/app/Mage.php rather than just ./app/Mage.php
It now seems to be working - hope that helps anyone else with the same problem.
Hi,
Thanks for your post, and your follow up solution - I have been researching for weeks now how to do this...and have been getting conflictign info...and honestly didn’t feel right any method - I am going to use your info for the main guidlines...I have read some info similar to what you did, but an never confirm if I need to copy the index.php and htaccess etc…
I too want to different set ups, one domain in one server account (different IP) , than the current install
with url-rewrites on.
shared default category/catalog (although I already have products and have to manually go into every product and change it so they show in the other website)
I have created new website, new store, new store view
I have also changed by base urls, and seccure urls
I was just about to try creating symbolic links via ssh…
Is there any particular things or posts you may want to bring to my attention?
I can\’t seem to get the new store to work...and I have a bunch of questions
I have read many, many blogs , comments, and official magento wiki guides, however,
------------WOULD LIKE-------------
1) i still dont have an uptodate (v1.4) guide to set up two stores, with two different domains, different root folders and different IPs, that will have two SSL certs,
so one install, to run two different domains, and the customer never shares the doamin names - meaning if he checksout at one domain he stays there
--------MY INFO & CHANGES SO FAR---------------------
the two doamins are:
clixwear.ca
clixwear.com
clixwear.ca has the original install
I have VPS server Servint
(would this be called the Add on Domian Method with different document root ?)
I have added the new website, store, and storeview in my admin,
I have changed the secure and unsecure base URL for the second website to http://www.clixwear.com/
I currently do have URL rewrites on (in admin)
--------------IN QUESTION------------------
Here are the parts I\’m not sure of (one guide doesn\’t even mention it, the other does!?!)
A) I have created symbolic links, but some giudes have pre v1.4 folders, but I think I got the right ones - can anyone verify which folders need to have symbolic links
B) DO I copy the index.php from the original install to the new websites root directory AND CHANGE/EDIT the the lines:
$mageFilename = ‘/home/myuser/public_html/app/Mage.php’; (full paht) and should the full path be
I ca get a second store to load just fine when it is located in a folder or sub folder of the main install (website1.com) but when i try to get it to work on website2.com all i get is /app/Mage.php was not found
Whats the general verdict on this? Is it just better to setup multiple installs than try to get this to work? Ideally I\’m looking to run 4-5 stores off one install on my Host Gator VPS.
My store setups will be a combination of Stand Alone Domains & sub domains of our main domain. Some products will be shared across all of them, some will be specific to certain stores.
I\’m trying to setup this on 1.6.1.0 on a Host Gator VPS.
If it\’s still doable which guide should I follow? I keep finding a bunch of conflicting info and nothing that\’s quite up to date.
I linked ledworld.nl, yourledstore.co.uk, ledtown.nl, ledproduct.nl and led-profielen.nl to this main domain.
If you have yourmaindomain.com you should do the following:
- First you make a new website, which you will name accordingly to your preferences. Furthermore create a store and a storeview as well. Remember your newly created website code as you need it further on.
- Then you will make your 2nd (or third, fourth etc.) domain a domain alias of your main domain, so make http://yourseconddomain.com a domain alias of http://yourmaindomain.com, this can easily be done in Plesk or cPanel.
- Then you configure your unsecure url and secure url in system >configuration > web. Just select the just created storeview and replace the default secure url and unsecure url by: http://yourseconddomain.com
- Then you open your magento root directory via ftp and open the .htacces file and add this to your file:
############################################
##This will set the right website if visitors visit http://www.yourseconddomain.com
I have been searching about this topic for a while now, but all the info I find it seems not be useful to direct me to a proper setup or I might missing something, that’s the reason I’m posting this entry.
What I want to achieve:
I want to setup magento in order manage it from one single domain (main-installation) and have multiples independent domains (websites: store1, store2, store3, store4 ) working back and forth with the database and installation of magento. All of this websites should contain a separate blog for each one, the might share some product data but not the customer data; the Frontend and Backend on the main-installation website should be only visible to the developers.
Current Setup:
Hosting in : HOSTGATOR
Server Type: VPS
OS: Linux CentOS
Magento Version: 1.6.2.0
This VPS is Using cPanel and WHM
I have also set up my second store in magento. Which was successfully established
But i am having images issues on my second website. I hope anybody can help me in this
I have one main server, and under it two domains a and b
Everything is working fine on a but i am not able to see images on b
There are some extensions i have created which are working fine on both the domains. They have been able to fetch the product images completely but core magento does not. Please help