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?

multiple sites one virtuemart user database
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: multiple sites one virtuemart user database
#3495
multiple sites one virtuemart user database 14 Years, 9 Months ago Karma: 1
Hi Edwin,

As per your email... "YES you can have the user shared between the different slave sites into the "subdirectories" virtuemart like you mention it."

I've just purchased the jms2win download latest version.

I have a LAMP setup. My own internal server so I can do as I like.


I'm trying to setup the following structure... (you say this is possible)

www.bdomainb.com
www.bdomainb.com/one
www.bdomainb.com/two
www.bdomainb.com/three
www.bdomainb.com/nnn

where the /one and /two and /three etc are virtuemart sites with the same virtuemart user accounts.

I've got the config below but cannot get the /one slave site to be installed in...
/var/www/html/multisites/bdomainb/one.

It ALWAYS appears in...
/var/www/html/multisites/one on the same level as the domain bdomainb subdir.

Also i've noticed I get the following directory structure going on to infinity...
/var/www/html/multisites/bdomainb/multisites/bdomainb/multisites/bdomainb/multisites/etc

My current config that does not work. (I've tried many variations and watched video 16 on sharing users many times...)

root site
Database type mysql
Host name localhost
Database name db1_
Advanced/ Table Prefix/ jos_

/var/www/html/multisites/bdomainb/
site ID = bdomainb
list of domain names = www.bdomainb.com
template =
deployed directory = /var/www/html/multisites/bdomainb
Database type mysql
Host name localhost
Database name bdomainbdb_
Advanced/ Table Prefix/ bdomainbtb_

virtuemart template
ID = virtuemart
list of domain names = {site_url}/multisites/{site_id}
template site = bdomainb
New DB prefix vm{site_id}_
Deployment folder {site_dir}

var/www/html/multisites/bdomainb/one
virtuemart site ID = one
list of domain names = www.bdomainb.com/one
template = virtuemart
new site title = one
deployed directory = /var/www/html/multisites/bdomainb/one



Any help please on what config changes are needed to

1. stop the infinite multisites/bdomainb/multisites/bdomainb/multisites/bdomainb/etc?

2. what I need to put into either the template or the slave server "one" to make it work?

Thanks,
Bendo.
Bendo
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3504
Re: multiple sites one virtuemart user database 14 Years, 9 Months ago Karma: 54
First, this is normal to have the look "multsities/xxx" as there are symbolic links.
Second if you want to use the structure domain/slave, you have to deploy the slave site with this structure and not using the "multisistes" strcuture.

Your problem is the "deploy dir" that must be {root}/{site_id}
Perhaps you also need to set "create dir" = ON.

Domain = {site_url}/{site_id}
prefix = {site_id}_
Deploy dir = {root}/{site_id}
Create dir = ON
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3517
Re: multiple sites one virtuemart user database 14 Years, 9 Months ago Karma: 1
Hi Edwin,
thanks for the reply.

I did as you suggested. but I get the following error...
* JFolder::create: Could not create directory
* The deployed directory [/var/www/html/one] does not exists.

So... I started again.
One a fresh server build, whenever I install the "slave1" site (called bdomainb), it creates the "multisites" folder no matter what I do.
So I always get /var/www/html/multisites/bdomainb.
It seems to be hardcoded in there somewhere.

So what I did was MOVE the bdomainb subdir one subdir up to the same level as "multisites". Like this... /var/www/html/bdomainb.

Then I created the template and the sites called One and Two. However they both point back to bdomainb.com

Such that...

www.bdomainb.com I edit this and it changes
www.bdomainb.com/one to exactly the same and
www.bdomainb.com/two is exactly the same as bdomainb.com. The template etc are all changed at the same time no matter what I do. It seems they all just point back to www.bdomainb.com.

So no matter what I do I only seem to have one site. It should be three seperate sites.

DNS points to the sites ok.

Current config below. Any cluesticks as to what I'm doing wrong please?
Thanks,
Bendo.



root site
Database type = mysql
Host name = localhost
Database name = db1_
Advanced/ Table Prefix/ = jos_

/var/www/html/bdomainb/
site ID = bdomainb
list of domain names = www.bdomainb.com
template = Fresh slave site
master site directory = /var/www/html
deployed directory = /var/www/html/bdomainb

virtuemart template
ID = virtuemart
list of domain names = http://{site_url}/{site_id}
New DB prefix = vm{site_id}_
master site folder = /var/www/html
Deployment folder = {root}/bdomainb/{site_id}

var/www/html/bdomainb/one
site ID = one
list of domain names = www.bdomainb.com/one
template = virtuemart
new site title = One
deployed directory = /var/www/html/bdomainb/one

var/www/html/bdomainb/two
site ID = two
list of domain names = http://{site_url}/{site_id}
template = virtuemart
new site title = Two
deployed directory = /var/www/html/bdomainb/two
Bendo
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3522
Re: multiple sites one virtuemart user database 14 Years, 9 Months ago Karma: 54
Could not create the directory mean that you perhaps have a permission issue that does not allow create the directory in the root.
Create the directory manually before to request JMS create it.

So fix this point and does not try to do thing manually.
You may have plenty of Symbolic Link to change manually.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4565
Re:multiple sites one virtuemart user database 14 Years, 6 Months ago Karma: 0
Edwin,

i am having the same error so opening up this thread.

the directory is there and it exists. however may be multisites is unable to write to it???

The deployed directory [/var/www/vhosts/localizit/subdomains/lasvegas/httpsdocs] does not exists.


this is the default structure for plesk and i have double that the directory exists.

i tried CHOWN the file to root:root and root:psaserv

but no success.

Let me know

Thanks.
chetanmadaan
Senior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4568
Re:multiple sites one virtuemart user database 14 Years, 6 Months ago Karma: 54
On plesk, if you do not modify the plesk permission, you will not be able to write into another directory than the master website.
See the plesk - help - appendix A - how to modify the plesk configuration - vhost.conf.

By default, plesk only accept to work in the website directory. So if you are using other domain or event subdomain, you have to open the permission to access the master directory.

You have to change it twice.
Once in the master and another one in the subdomain or domain to accept bidirectional access.

You have to create a vhost.conf file specific for the master and subdomain to have a "open_basedir" that provide bidirectionnel permission.

Configuration of Plesk is not easy and is generally specific to each customer.
If you want that we help you configure Plesk, this is possible with our billable support that you can order at www.jms2win.com/download?page=shop.produ...35&category_id=1
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/06/22 11:43 By edwin2win.
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