I have a 'master' dolphin site that Ive setup as a template, with all the layout just as I want it.
I need to have several copies of this site on different domains, each with its own database and unrelated to the others.
Instead of re-installing each site and doing all the custom work over and over again which would take a loooong time, is there a quick way to 'copy' the site across, but then link it to its own unique db and so on?
I tried copying it via cpanel then linking to a new db but it gave me errors when I went to view browse.php
Must be something carrying across within members profile content?
Any suggestions would be really appreciated!
|
You would need to copy the entire site.
You also need to export the database so it can be imported to the new database.
The you need to verify all permissions that were set when dolphin and modules were installed to make sure the new copy has the proper file and folder permissions.
Then you modify inc/header.inc.php with the new path, url and database information.
It will not work properly of ALL data is not copied including the database.
https://www.deanbassett.com |
I did this exactly but it shows errors on db when trying to view browse.php on new site.
There also doesnt seem to be a way to transfer the admin setup such as page blocks setup, members menu setup (join/edit etc), and so on. Any modules you transfer do not transfer as installed, it transfers the data but not installed.
Is there a way to transfer it all exactly as the first site, admin setup n all!?
You would need to copy the entire site.
You also need to export the database so it can be imported to the new database.
The you need to verify all permissions that were set when dolphin and modules were installed to make sure the new copy has the proper file and folder permissions.
Then you modify inc/header.inc.php with the new path, url and database information.
It will not work properly of ALL data is not copied including the database.
|
You had to have missed something. Primarily all of the database tables. That is where all that stuff is. If all database tables are properly exported from the original database and imported into the new database then the layout should be exactly the same. Database exports must include the drop table command. Because the tables being replaced in the new database must be dropped and recreated so the import will be exactly the same as the original.
I suspect you are not doing your database copy correctly.
Also, do not copy the cache, cache_public or tmp folders over. Skip those.
https://www.deanbassett.com |
I used cpanel to export the database, then renamed it, and linked to the new site so as not to have 2 sites using the one db. |
I used cpanel to export the database, then renamed it, and linked to the new site so as not to have 2 sites using the one db.
should be able to do just as deano states. i have copied many sites and reimplemented them on subdomains or alternative domains.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
What about the admin setup, such as modules installed, navigation menu, page blocks etc...
Do these things copy across or do they need to be re-set manually for each site?
I used cpanel to export the database, then renamed it, and linked to the new site so as not to have 2 sites using the one db.
should be able to do just as deano states. i have copied many sites and reimplemented them on subdomains or alternative domains.
|
if you backup your database using export from phpmyadmin, then you have captured the entire database.
dolphin in its dynamic state relies on the database, so you have to make sure you export the entire database. everything you mention here is controlled by the database.
then your file structure, zip and move to where you want a new instance. when you unpack, clear the two cache directories, and edit header.inc.php file
create your new database, and import the exported original
set your database parameters on header.inc.php and it should be good to go. if you need help let me know, i will help you get one going so you know how to get it done. then you can create thousands of the same sites if you desire.
What about the admin setup, such as modules installed, navigation menu, page blocks etc...
Do these things copy across or do they need to be re-set manually for each site?
I used cpanel to export the database, then renamed it, and linked to the new site so as not to have 2 sites using the one db.
should be able to do just as deano states. i have copied many sites and reimplemented them on subdomains or alternative domains.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
Also from what I remember when you export the database from Cpanel you need to open the exported SQL and perform a search on it for your old Domain name and whereever it apeares in the SQL you need to replace it with the new domain.
For exapmle your old domain is old.com and your new domain is new.com you would open the saved SQL and do a serch through the file for old.com and replace this wherever it aperes with new.com.
I remember this from when I moved mine from a subdomain to a proper domain
|