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?

Master uses slave's configuration.php and database
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Master uses slave's configuration.php and database
#12213
Master uses slave's configuration.php and database 9 Years, 7 Months ago Karma: 0
Joomla 3.3.3
MultiSites: Fresh updated latest version: 1.3.36

Structure:
/var/www/vhosts/master.com/httpdocs
master.com

/var/www/vhosts/master.com/httpdocs/slave
master.com/slave

Hi,

how can I change the Master site folder path, which now is /var/www/vhosts/master.com/httpdocs/slave (wrong)?


In Joomla MultiSite component - Manage Sites I somehow saved a slave site (replicMasterSubdir) filling in the "List of domains name:" master.com and www.master.com.

Now the master site uses the slave site's configuration file and database. I think now the slave is the master site.

1) In Website deploy directory the Master site directory is now /var/www/vhosts/master.com/httpdocs/slave instead of /var/www/vhosts/master.com/httpdocs.

In Settings: Home directory and Public directory are ok: /var/www/vhosts/master.com and /httpdocs

2)I get these errors when trying to save the slave site again:

Warning

JFTP: :write: Bad response
ErrorThe deployed directory can not be your root website.

3)Check patches:

a)defines.php
Not OK
File Not Found
Actions: Add the file

If I add the defines.php file in the slave directory, then this patch is ok and I can even access the slave site preview and the administrator area.

b)configuration.php
Not OK
The routing wrapper is not present in this MASTER configuration file.
Actions:
Add 16 lines containing the routing wrapper to the slave site.

I don't know what this means.
toshiko
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2014/09/22 16:05 By toshiko.Reason: message was empty
The administrator has disabled public write access.
 
#12214
Re:Master uses slave's configuration.php and database 9 Years, 7 Months ago Karma: 0
4) If I rename the multisite folder, or the config_multisite.php, or any other multisite files related to the slave, the master site preview is redirected to the installation folder.

If I rename the installation folder, I get a blank page.

5) I have tried everything I could think of when trying to solve another issue that I posted on the forum, unsolved: Slave site uses master's configuration file: www.jms2win.com/en/forum/31-bugs-errors-...-configuration]Slave

This led me to mistakenly save a slave site using the master domains list.

Any help would be appreciated, at least some pointers on how to change the master path back.
toshiko
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2014/09/22 16:09 By toshiko.Reason: message was empty
The administrator has disabled public write access.
 
#12217
Re:Master uses slave's configuration.php and database 9 Years, 7 Months ago Karma: 54
0) Based on your path, we suspect that you are using Plesk as administration tool.
If yes, you need to use the "Subscription" in plesk to configure your domain and subdomain.
This will ensure that you are using the correct owner for the files and folder that is required to share the files and folders betweeen the master and the slaves.

Perhaps that you have enable the Joomla FTP Layer to access the files and folders on the disk. This is what let me suppose your point (2).

1) If you are using the "FTP Layer", you need to put a specific path in your slave site definition to declare how to access the slave document root.
If you are using Plesk and the subscription, theorically, you should not need to use the FTP layer.
If you are using the FTP layer root directory that is the same as your master, this may overwrite files (configuration.php) that you would not want.

So verify your FTP layer settings.

2) This let suppose that you are using the Joomla FTP layer and that you didn't provided the relative path in the FTP root directory to access the slave site.

3) This might be normal if your FTP root directory is wrong or store information in a wrong directory.

4) If you remove the "/multisites" directory this is like if you have no slave site defined.

5) Your error seems located in your FTP Layer settings that provide a wrong path for the slave site and that may overwrite a "configuration.php" file of another site.
If our hypothesis is that you are using a recent Plesk as administration tool, you have to verify that your domain and subdomains are managed from the same plesk owner via a subscription. In that case, you would not need the Joomla FTP layer as all the files and folders would have the same file/folders owner.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12218
Re:Master uses slave's configuration.php and database 9 Years, 7 Months ago Karma: 0
Thank you very much for your suggestions.
toshiko
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12219
Re:Master uses slave's configuration.php and database 9 Years, 6 Months ago Karma: 0
The FTP layer was enabled, but the FTP root in Global Configuration was empty, so I added the root path: /var/www/vhosts/master.com/httpdocs, but nothing happened.

I still receive the same error when saving the slave site:

Warning

JFTP: :write: Bad response
ErrorThe deployed directory can not be your root website.


and the Master Directory in Manage Sites - slave site - is still /var/www/vhosts/master.com/httpdocs/slave instead of /var/www/vhosts/master.com/httpdocs.

I still need to change the Master Directory to /var/www/vhosts/master.com/httpdocs.

Do you have other suggestions?

Thanks
toshiko
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12220
Re:Master uses slave's configuration.php and database 9 Years, 6 Months ago Karma: 0
I want to be able to uninstall MultiSite extension without breaking the Master site, and then install it back, and to use the FTP root path correctly.

Now if I disable MultiSite the Master is redirected to the Joomla installation.
toshiko
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla