-
- Coop1979

-
Total Posts: 8
Joined: 2008-06-25
|
So I’ve been working on trying to test Magento’s Multistore (Multi-store) functionality so that I could make sure it is what I am looking for before I start migrating my ZenCart shop over to Magento, but so far I have not been able to get MultiStore working with another domain on the same server as mine.
I have copied over the index.php and htaccess file, and have edited the index.php file with the proper information, but I get the following error:
“myservertreestructure/app/Mage.php was not found”
I have tried swapping around permissions on the Mage.php file but it still doesn’t seem to work.
Is there anyone out there who has been able to get a magento installation running on site1.com to work on site2.com? If so, can you post your index.php file so that I can learn from you?
Thanks!
|
| |
-
- Posted: August 14 2008
-
| top
-
|
 |
 |
 |
|
|
-
- kramusica

-
Total Posts: 53
Joined: 2008-07-16
|
I got it working just now:
On site1.com I have a folder with the .htaccess and index.php files. I have added the following on the index.php file:
/home/kramusica/public_html/magento/app/Mage.php
This goes to site2.com where Magento is installed. In the backend you then fill in the Web details for your second store.
|
| |
-
- Posted: August 14 2008
-
| top
| # 1
-
|
 |
 |
 |
|
|
-
- Coop1979

-
Total Posts: 8
Joined: 2008-06-25
|
Hmmm… that’s how mine is setup, but it still is giving me the “not found” error.
Out of curiosity, what are your permissions on Mage.php? Are you using PHP 5.2? Do you have allow_url_include enabled in php.ini?
|
| |
-
- Posted: August 14 2008
-
| top
| # 2
-
|
 |
 |
 |
|
|
-
- kramusica

-
Total Posts: 53
Joined: 2008-07-16
|
I’m using php version 5.2.6, allow_url_include is off and Mage.php is set to 644.
|
| |
-
- Posted: August 14 2008
-
| top
| # 3
-
|
 |
 |
 |
|
|
-
- nafnaf1000

-
Total Posts: 175
Joined: 2008-02-21
|
app/Mage.php was not found
??
not sure what to change in the index.php
any help
|
| |
-
- Posted: September 2 2008
-
| top
| # 4
-
|
 |
 |
 |
|
|
-
- setanta

-
Total Posts: 33
Joined: 2007-11-01
|
I’m having the same problem on MediaTemple DV, in my second site I have the index.php pointing:
$mageFilename = '/var/www/vhosts/store1.com/httpdocs/app/Mage.php';
and i still get “Mage.php was not found”
Ive check the phpinfo and the path is correct, and I’ve tried multiple permissions settings.
It worked with a previous install where the index.php pointed to
$mageFilename = '../../store1.com/html/app/Mage.php';
However that was on mediatemple gridserver where the configuration is different.
Any suggestions?
Thanks
|
| |
-
- Posted: September 8 2008
-
| top
| # 5
-
|
 |
 |
 |
|
|
-
- WhoIsGregg

-
Total Posts: 64
Joined: 2008-09-02
Tampa, Florida
|
I’m experiencing a similar issue… except in my case the http://www.domain2.com/ shop works as expected, but the https://www.domain2.com/ shop only show the one line:
> /var/www/vhosts/domain1.com/httpdocs/shop/app/Mage.php was not found
Rather stumped here. :/
|
| |
-
- Posted: September 12 2008
-
| top
| # 6
-
|
 |
 |
 |
|
|
-
- redwagon

-
Total Posts: 17
Joined: 2008-07-02
MN, USA
|
Do you guys have the 2nd domain files in just a folder on the same host? If so how are you doing that? Do you not have dedicated IP’s?
Because how do you get domain2.com to point to the folder in the domain1.com server?
|
| |
-
- Posted: September 12 2008
-
| top
| # 7
-
|
 |
 |
 |
|
|
-
- WhoIsGregg

-
Total Posts: 64
Joined: 2008-09-02
Tampa, Florida
|
I have a dedicated server running Plesk. For both the main domain and for the secondary domains, I have checked the “Use a single directory for housing SSL and non-SSL content” to be on.
Main Site:
/var/www/vhosts/domain1.com/httpdocs/magento/
Other sites:
/var/www/vhosts/domain2.com/conf/vhost.conf /var/www/vhosts/domain2.com/httpdocs/.htaccess /var/www/vhosts/domain2.com/httpdocs/index.php /var/www/vhosts/domain2.com/httpdocs/magento <- symlink to /var/www/vhosts/domain1.com/httpdocs/magento/ (for js/css files)
The index.php file in the other domains uses an absolute path for $mageFilename and references the specific site it’s meant to be running:
$mageFilename = '/var/www/vhosts/domain1.com/httpdocs/shop/app/Mage.php'; ... Mage::run('site2','website');
The vhost.conf file modifies the open_basedir restrictions to allow this cross-domain PHP include:
<Directory /var/www/vhosts/domain2.com/httpdocs> php_admin_value open_basedir "/var/www/vhosts/domain1.com/httpdocs:/var/www/vhosts/domain2.com/httpdocs:/tmp" </Directory>
All of this is working quite well, these urls load the correct websites:
http://www.domain1.com/ https://www.domain1.com/ http://www.domain2.com/
But this url loads the error message:
https://www.domain2.com/
|
| |
-
- Posted: September 12 2008
-
| top
| # 8
-
|
 |
 |
 |
|
|
-
- WhoIsGregg

-
Total Posts: 64
Joined: 2008-09-02
Tampa, Florida
|
Ahh, I’ve got my problem sorted out…
The vhost.conf file I had to create to ease Plesk’s default open_basedir restrictions is not used for https/ssl connections (even if “use a single directory” is on).
I had to duplicate my vhost.conf file to vhost_ssl.conf:
/var/www/vhosts/domain2.com/conf/vhost_ssl.conf
With the same open_basedir settings listed above, and it’s now working just fine. I hope this helps others working on magento multisite issues.
|
| |
-
- Posted: September 12 2008
-
| top
| # 9
-
|
 |
 |
 |
|
|
-
- eric t

-
Total Posts: 18
Joined: 2008-03-17
|
Hey WhoIsGregg,
Did you have to create the vhost.conf files or were they already there and you added the new info? I only have an include.conf file in the /var/www/vhosts/domain1.com/conf/ directory.
Your illustration demonstrates how to add one other store. I plan on having multiple stores. Would I just need to add another line to my vhost.conf file to reference the next site?
If you could let me know that would be quite nice. Thanks,
e.
|
| |
-
- Posted: September 15 2008
-
| top
| # 10
-
|
 |
 |
 |
|
|
-
- WhoIsGregg

-
Total Posts: 64
Joined: 2008-09-02
Tampa, Florida
|
Hi eric t! Sorry for the delay, I must not have checked the “email me” box for this thread.
Anyhow, the answer is yes, I had to create the vhost.conf files. If you edit the existing file there, Plesk will overwrite your changes the next time it’s restarted.
After you create a vhost.conf or vhost_ssl.conf file, you should run the following command for the changes to take effect:
/usr/local/psa/admin/sbin/websrvmng -v -a
And yes, you can just keep creating more domains in Plesk, editing them using these instructions, then managing them via your base magento install.
|
| |
-
- Posted: September 19 2008
-
| top
| # 11
-
|
 |
 |
 |
|
|
-
- Thejosh13

-
Total Posts: 240
Joined: 2008-06-23
|
I have a virtual dedicated Plesk, will it not work for this?
|
| |
-
- Posted: December 4 2008
-
| top
| # 12
-
|
 |
 |
 |
|
|
-
- Thejosh13

-
Total Posts: 240
Joined: 2008-06-23
|
I cant get this to work in a VD Plesk, I contacted GoDaddy Support and they had this response:
“Thank you for contacting Server Support.
The way that Plesk is configured on your server does not allow root access to scripts running on any of your sites. As such, scripts only have access to files/folders within their own document root. There is no way to change this within Plesk.
It may be possible to change this by editing your server’s configuration files via SSH, but that is not something that we can provide directions, technical support, or troubleshooting assistance for. You may be able to find directions or other relevant information by searching the internet with your favorite search engine, or searching through the Parallels forums at http://forum.parallels.com (Parallels is the company who makes Plesk). “
Is there information on this anywhere, I don’t want to give up on using this feature but I am getting close?
|
| |
-
- Posted: December 4 2008
-
| top
| # 13
-
|
 |
 |
 |
|
|
|
|
-
- saloob

-
Total Posts: 9
Joined: 2008-11-04
|
I also tried this in a Virtuozzo Container with Plesk - it doesn’t seem to work.
My php version required the extra cgi implementation as below;
http://www.magentocommerce.com/knowledge-base/entry/installing-magento-on-a-php4-server
Is it possible that some setting related to this and the .htaccess file is not allowing this to work?
I have tried;
* Making a symbolic link to the whole directory, like /store and get this: No input file specified.
* Putting the index.php file at /httpdocs/index.php - I thought it might require the following set at the top of the .htaccess file;
Options -MultiViews
But it didn’t work. I got this same problem as WhoIsGreg got BEFORE he did the vhost.conf file;
> /var/www/vhosts/domain1.com/httpdocs/shop/app/Mage.php was not found
But my vhost.conf file was set OK.
I then tried to do symbolic links of /app /js /skin /media etc - but got the same issue as above.
If anyone has any ideas on what to tweak, I got this real close.
Cheers!
|
| |
-
- Posted: January 7 2009
-
| top
| # 15
-
|
 |
 |
 |
|
|