English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

about the document root of the subsite
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: about the document root of the subsite
#4110
about the document root of the subsite 14 Years, 7 Months ago Karma: 0
I am using the way that the subsite is sharing the same directory with the master site.
After I config a subsite in JMS, it says,
The site 'subsite1' is deployed.
- You can now map your new domain (subsite.xxxx.net) to the directory
'/home/yyyy/public_html/mastersite/multisites/subsite1'.

I got the subdomain configured in the cpanel as well. (use '/home/yyyy/public_html/mastersite/multisites/subsite1' as the documentroot of the subsite)

But when I go to subsite.xxxx.net to try to install a fresh subsite, the following error message is shown.

Forbidden

You don't have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I then added .htacess to the document root with the content of the following.
Code:


Options +Indexes



Now I could go to subsite.xxxx.net without an error. But instead of a fresh joomla installation of the subsite, it lists the file and directory, which is the following.

Index of /
cache/
config_multisites.php

Finally, I use '/home/yyyy/public_html/mastersite/' (the document root of the master site) as the document root of the subsite (instead of '/home/yyyy/public_html/mastersite/multisites/subsite1'), I could go to the installation page!

So we are supposed to use the document root of the master site as the document root of the slave site under this situation, is it right?
Thanks!
Shawn
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/06 23:03 By Shawn.
The administrator has disabled public write access.
 
#4116
Re: about the document root of the subsite 14 Years, 7 Months ago Karma: 54
Yes and no.
When you map (assign) the slave site "document root" directory = the master directory than you are using the "antical" method available in JMS 1.0.x.

With JMS 1.1.x or higher, when you are using the Symbolic Link your are simulating this case where you have the same directory that the master/ The difference is that you can not have different "root" slave site and therefore have specific images and templates folder.

So you right to share the same PHP code than the master.
But you wrong if you want to be able customize some direcrtories like the images and templates folders.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla