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?
Go to bottomPage: 1
TOPIC: JPATH_BASE issues
#5113
JPATH_BASE issues 13 Years, 10 Months ago Karma: 0
Hi Edwin

I have dynamic virtual hosts setup correctly and the sub domains are working perfectly without modifying the vhosts.conf every time I add a site.

The issue I am now faced with is the JPATH_BASE is different for the subdomain and actual donain. You can see an example with the following urls. They both point to the same site.

133rcnovice.isonomy.us/
www.rcnovice.com/

The very first line echos JPATH_BASE

I can easily fix this by adding a documentroot for each domain in vhosts.conf but I would rather have a more dynamic solution.

Any ideas would be appreciate.
Dave
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5118
Re: JPATH_BASE issues 13 Years, 10 Months ago Karma: 54
JPATH_BASE is computed by Joomla and is based on your document root.
This is the first time that Joomla compute.
This is conditioned by your document root.

Just have a look in joomla /index.php file. This is the second define.
define('JPATH_BASE', dirname(__FILE__) );

So provide the correct document root directory in your http server configuration.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5129
Re: JPATH_BASE issues 13 Years, 10 Months ago Karma: 0
Understood, but for whatever reason this is not being picked up correctly as per my example above.
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5133
Re: JPATH_BASE issues 13 Years, 10 Months ago Karma: 54
Perhaps you are not located in the place where you think it.
I can tell you that Joomla setup correctly the JPATH_BASE.
Perhaps your hosting has a specific think that create an alias or mount a disk with another path or something like that. I don't know.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5151
Re: JPATH_BASE issues 13 Years, 10 Months ago Karma: 0
NO, Both of those sites point to the exact same site. I know exactly the path that the sites are on. It is a dedicated server.

These site above are exactly the same. I added <?php echo JPATH_BASE; ?> to the HTML of the template.

Dave
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/30 02:24 By DaveC.
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