Hi,
previously we worked with Evolution, where the teacher would prepare a "student-site" and I would script copying that site for different students. Hereby I replaced some values in the SQL-export and config files so that all the installations have their own identifiers and logins.
Now the teacher wants to upgrade to Revolution and I'm trying to do the same.
I thought coping the "template"-site, change values of MySQL-configuration, paths/url's and site_id, site_sessionname in the different config.inc.php (root, core, manager, connectors) and creating a specific database for that site would be enough. I was wrong ;-)
So my question is, how do I make a copy of a MODX Rev site to another site, which files and what in the database should I change?
Using contexts in one site isn't a solution.
Thanks in advance and best regards,
Peter
-
☆ A M B ☆
- 24,524 Posts
The easiest way is to use Vapor to make a package of the basic site, then every time you make a new installation immediately install the Vapor package. I'm working on building up a library of various basic sites, such as a bare-bones site with my preferred extras and configuration settings already done, one with Login, one with multi-language, one with a gallery, etc.
yes pls do give us more info on what the problem is.
You have 50-100 existing sites which need to be ported over?
Or you need a Revo template which is suitable to be used to make like 50-100 different sites with different name and so on?
Sorry for my confusion, I will get out of the way now ;-)
I understood what you are doing from your first post. And indeed you need to check your logs. What you are doing is still considered a migration which can be done by the steps provided in the link above. You just need to script it.
-
☆ A M B ☆
- 24,524 Posts
After the MODX Weekend - I don't want to spoil my presentation
-
☆ A M B ☆
- 24,524 Posts
As far as your exact needs goes, it depends on how "individual" each site is. Do they use the same database? Does each site have its own database?
You
can copy the files from one site to another, but then you have to edit four configuration files, and probably run setup again in upgrade mode, so you might just as well use something like
install.php to download and give you the setup installer to install each one new, then you don't have to worry about paths and database stuff.
If you use Vapor on the basic site, you can then immediately install the Vapor's whatever.transport.zip file to have a clone of your basic site. The only thing to keep in mind is that the database is replaced, so your Manager login will not be valid, and you'll need to log out and log in again the the same login as the original basic site.