Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-08 14:41:40

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Copy existing TxP sites to localhost in XAMPP?

Yesterday I asked about setting up multiple development folders for multiple TxP sites.

Now it occurs to me that what I really want to do is to copy existing TxP sites from a host to my local PC for future revisions, development and experiments. Is that as simple as 1) build the “dev” folder within the XAMPP htdocs and then, 2) ftp the existing site from the host into the “dev” folder?

Obviously, TxP is already installed at the host. Can that installation be ftp’d back to “dev” folder?


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#2 2007-06-08 15:15:57

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Copy existing TxP sites to localhost in XAMPP?

Sure, you can move it back and forth as much as you want. All you need to do is update config.php and your site url and away you go.

Offline

#3 2007-06-08 17:55:44

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Copy existing TxP sites to localhost in XAMPP?

Don’t forget to copy your database as well (just saying, because you only mentioned ftp).

On your local dev-setup you can use virtual-hosts in apache and use a domain like local.rodentregatta.com and simply add the domain-ip mapping to your hosts-file (which is used by the OS before the URL is resolved via DNS).

Of course you should still use the txp-supplied tags for all image/css/…-paths that later appear in the html, so as to make the move as painles as possible.

Also: Mr. President, we must not allow a mineshaft gap!

Offline

#4 2007-06-08 18:34:30

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Copy existing TxP sites to localhost in XAMPP?

Sencer, nice catch. I would have missed it.

I’m elated with the Textpattern Solutions book. Thus far, I have only wish—and it is a wish, not a gripe. Near the end of Chapter 2, after learning how to set up a localhosting arrangement with XAMPP and installing Txp to work locally, I wish there had been a section that began…“Say you are a web developer who needs to keep six or eight Txp sites on your local machine for development and testing and those sites are already uploaded to your host…”

Were a section like that written with the same clarity and precision that the instructions for XAMPP installation had…well, perfect wouldn’t begin to cover my impression of the book. I’ve been following the steps of Chapter 2 in exactly the order they were presented and everything worked exactly as advertised. With that bit of hindsight, I now need to go get several live Txp sites that I need to keep locally for development and changes. If I’m successful at get a set of folders built that allows me to log into Txp locally for each site, I’ll take a shot at writing an addendum to Chapter 2.

Many, many thanks to the authors of Textpattern Solutions as well as those answering my questions here!


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#5 2007-06-10 00:35:31

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Copy existing TxP sites to localhost in XAMPP?

6sigma wrote:

If I’m successful at getting a set of folders built that allows me to log into Txp locally for each site, I’ll take a shot at writing an addendum to Chapter 2.

Destry Wion beat me to it: http://wion.com/journal/moving-a-live-textpattern-site-to-a-local-server

It’s well-written and it works!


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

Board footer

Powered by FluxBB