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:
1) copy all folder wiki from
domain.com to
test.domain.com;
2) copy the db_domain and creat a second db_test_domain;
3) 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(a)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(a)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(a)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(a)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(a)Wikimedia.org
|>
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
|>
|
|
|--
|Kasimir Gabert
|_______________________________________________
|MediaWiki-l mailing list
|MediaWiki-l(a)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