Hello Mauro do Carmo,
Do you want this wiki to have the same information, and have it work so that if one user edits something on wiki A then the edit will appear on wiki B? If you do, then all that you need to do is create a symlink (using ln -s) to the wiki A folder.
If you want to create a copy of the wiki and use the same database (same edits, maybe different skins or settings), then you should keep the same database, and just copy the files from one folder to another.
If you want to create two completely independent wikis but have one based on the other (a copy right now, changes will be made to each and they will soon become different), then you need to download the entire database to a file (use the command mysqldump) and upload all of the tables into a new database (if you have only one database available then just change all of the table names). You will then need to go into LocalSettings.php for your new wiki and change all of the database information so it is correct for either your new database or different table names.
I hope that this helps, Kasimir Gabert
On 10/20/06, Mauro do Carmo mauro@carmo.info wrote:
Thanks Kasimir,
That is great, but I looking for something simpler.
Basically, I want two different wikis. One completely copy. Since my host is a linux account I have no problem in creating two folders like:
domain.com; and, test.domain.com;
There are three I have to do:
- copy all folder wiki from domain.com to test.domain.com;
- copy the db_domain and creat a second db_test_domain;
- make sure the new address www.test.domain.com is going to work with the new copied information from www.domain.com;
The first step is easy, but for the other two I need some help.
Thanks again, mauro.
|-----Original Message----- |From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of |Kasimir Gabert |Sent: Thursday, October 19, 2006 4:05 PM |To: MediaWiki announcements and site admin list |Subject: Re: [Mediawiki-l] Site mirror or copy | |Hello Mauro do Carmo, | |I am doing the same thing on my wiki, and here is how I have it set up. | |In Apache I have both of the websites configured to use the same |document root. Because I have different settings on the different |wikis, I have | |========== |$wiki1 = strpos($_SERVER['HTTP_HOST'],"wiki1.domain.com"); |if ($wiki1 === false) |{ |// Wiki 1 stuff here |} |else |{ |// Wiki 2 stuff here |} |========== | |in my LocalSettings.php file. | |I hope that this helps, |Kasimir Gabert | |On 10/19/06, Mauro do Carmo mauro@carmo.info wrote: |> Let me tray in another way: |> |> I have a site located at www.domain.com. |> |> I want a real copy of all content of my site accessible in a different address like |www.test.domain.com. |> |> That is very important to me, |> so if someone could give some hints, |> I will really appreciate that, |> thanks again, |> mauro. |> |> |> |> |-----Original Message----- |> |From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of |Mauro |> |do Carmo |> |Sent: Wednesday, October 18, 2006 3:27 PM |> |To: 'MediaWiki announcements and site admin list' |> |Subject: [Mediawiki-l] Site mirror or copy |> | |> |Hello, |> | |> |I would like to create a copy of my wiki in a diferent address. Today this is my situation: |> | |> |Http://www.mydomain.com (problem 1) |> |DB_mydomain ___________(problem 2) |> |Files of mydomain in my host (easy to download and upload in my new folder) |> | |> |_______Problem 1 |> |It is going to be a different domain, so how can I adjust this change in my wiki? It is automatic? |> | |> |_______Problem 2 |> |All the time I try to upload my DB_mydomain, I get a massage telling me that there is already a |> |Databank with this name. I just |> |don't know what to do... |> | |> |Thanks a lot, |> |mauro. |> | |> |-- |> |No virus found in this outgoing message. |> |Checked by AVG Free Edition. |> |Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date: 10/17/2006 |> | |> |_______________________________________________ |> |MediaWiki-l mailing list |> |MediaWiki-l@Wikimedia.org |> |http://mail.wikipedia.org/mailman/listinfo/mediawiki-l |> | |> |-- |> |No virus found in this incoming message. |> |Checked by AVG Free Edition. |> |Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date: 10/17/2006 |> | |> |> -- |> No virus found in this outgoing message. |> Checked by AVG Free Edition. |> Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date: 10/17/2006 |> |> _______________________________________________ |> MediaWiki-l mailing list |> MediaWiki-l@Wikimedia.org |> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l |> | | |-- |Kasimir Gabert |_______________________________________________ |MediaWiki-l mailing list |MediaWiki-l@Wikimedia.org |http://mail.wikipedia.org/mailman/listinfo/mediawiki-l | |-- |No virus found in this incoming message. |Checked by AVG Free Edition. |Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date: 10/17/2006 |
-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date: 10/17/2006
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l