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?

Subdomains, Document Root and Templates
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Subdomains, Document Root and Templates
#5666
Subdomains, Document Root and Templates 14 Years, 1 Month ago Karma: 0
Hi: I am building a specific structure with Multisites but I am experiencing some problems with subdomains and documentroot...

I need this...
www.site-prefix.addon.domain.com
for example...
www.xxx.mydomain.com/index.php

In order to achieve this I´ve configured the server to create a new subdomain once each site is created, so I have...

site_prefix.addon-domain.com = points to… /public_html/multisites/{site_prefix}
(that is the document root)

Deploy Dir = /home/account/public_html/multisites/{site_prefix}


But there is a problem with the templates, because when I am on a slave site (for example... www.xxx.my-domain.com) the document root of the site is... public_html/multisites/xxx but in order to detect the Multisites_ID, the document root mus be the same of the master, which is installed on public_html, but this is impossible because I need individual images folder for each slave, so if document root of slave = master, they should have to share images, and could not be independent site.

Regarding template structure, I have this...

{deploy_dir}/templates

and in sharing = special copy

When I go to the slave´s template folder, it has simbolic links to the mailn template templates folder, and there the correc... params_site_id.ini files are created and correctly modified, but not read from the slave frontend with the unique document root.

To clarify this more, note that when I am on administrator of the slave editing a template, it reads and modify the params.ini file, but not on the front end of the slave site, the render function on html.php can not get the MULTISITES_ID because it thinks we are on master, due to the different document root on the domain.
What suggestion could you give us to solve this? Thanks...
dglite
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5669
Re: Subdomains, Document Root and Templates 14 Years, 1 Month ago Karma: 54
You probably make a mistake somewhere in your description or in the configuration of your server.
If you have effectivelly define in you cPanel or equivalent administration tool that the site_prefix.addon-domain.com is located in the directory public_html/multisites/{site_prefix} then you can check with any text file like "hello.txt" or whatever that your http server display correctly you file when using the domain.
If yes, the other part of your question are irrelevant as you will be in the correct directory.


The JMS Multisites deploy directory is used to deploy in the public_html/multisites/{site_prefix} all the links required to have the PHP code present.

By default, when you create a templates directory with {deploy_dir}/templates this start to create subdirectory links that you can delete and replace by a physical copy. You can go in the slave site and uninstall the template that will just result by removing the link.
This allows you installing specific templates for a given slave site.
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