Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-04 09:35:38

azw
Member
Registered: 2007-01-29
Posts: 279

Looking for a way to set up a twin copy of TextPattern for testing

How do I set up a testing version of TextPattern (probably on a subdomain) so I can try out changes before taking them live? I want to have the same templates and preferences, and at least some of the data n the test platform.

What would you do?

Offline

#2 2007-04-04 10:30:06

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Looking for a way to set up a twin copy of TextPattern for testing

Export the production site’s database with phpMyAdmin, re-import it on the empty staging site, adjust this site’s URL in the preferences.

Offline

#3 2007-04-04 15:10:00

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Looking for a way to set up a twin copy of TextPattern for testing

…and copy your “images” and “files” directories to the new location…

Offline

#4 2007-04-04 15:18:40

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Looking for a way to set up a twin copy of TextPattern for testing

Run a local test environment:

  • XAMPP for Windows, XAMPP Lite is all you need to run Textpattern.
  • MAMP for Mac OS X, cause Apple can’t set up a BAMP stack?
  • Debian Etch for Linux, help test RC2 of the GUI installer.

Offline

#5 2007-04-04 19:05:40

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

Re: Looking for a way to set up a twin copy of TextPattern for testing

I make use of Rob’s plugin, so once it’s installed I don’t have to work with external proggies like phpMyAdmin.

Offline

#6 2007-04-05 01:30:44

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Looking for a way to set up a twin copy of TextPattern for testing

hcgtv wrote:

  • MAMP for Mac OS X, cause Apple can’t set up a BAMP stack?

Actually, it’s fairly easy to setup a local environment with a Mac – Apache and PHP are already installed, just PHP has to be enabled in the httpd.conf and MySQL needs to be installed. For PHP, it’s simple (if you need XSLT extensions, download PHP5 from entropy.ch):

  1. Enable Personal Web Sharing in System Preferences
  2. Open up Terminal: sudo pico /etc/httpd/httpd.conf
  3. Uncomment LoadModule php4_module (hit control (^)+W to search)
  4. Uncomment AddModule mod_php4.c
  5. ^O, enter, ^X
  6. sudo apachectl graceful

For MySQL, just download and install it. After you get MySQL installed, you can install CocoaMySQL to manage your databases.

Personally, I don’t like MAMP, since you have to run an application to start and stop your server. I prefer to keep PHP and MySQL (auto-start option) always running.

Offline

#7 2007-04-05 02:51:34

azw
Member
Registered: 2007-01-29
Posts: 279

Re: Looking for a way to set up a twin copy of TextPattern for testing

Wow, thanks for all the very helpful responses!

Does running XAMPP take a lot of memory or other resources if I install it on my desktop?

Offline

#8 2007-04-05 04:41:07

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Looking for a way to set up a twin copy of TextPattern for testing

Uniform Server is actually lighter than XAMPP and uses very few resources – I run it from my jump drive on my school’s ancient PC’s. It comes with phpMyAdmin, PHP, MySQL, and Apache, so it’s all set for Textpattern. You do need to make a simple edit to the .htaccess file though.

Last edited by jm (2007-04-05 04:42:44)

Offline

#9 2007-04-05 17:19:38

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

Re: Looking for a way to set up a twin copy of TextPattern for testing

Each proggy would take a certain amount of memory to run, but it isn’t an issue if you make sure to only run them when they are needed, rather than all the time (such as: if you install any of these as Windows Services, make sure they are set to run “Manual” and not “Automatic”, so that they don’t start up every time you start Windows).

Offline

#10 2007-04-06 03:45:34

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Looking for a way to set up a twin copy of TextPattern for testing

jm wrote:

Actually, it’s fairly easy to setup a local environment with a Mac…

Thanks so much for clearing this up, I was doubting Steve and his men.

Actually, the procedure is very similar to what I do in Debian. What I guess then, is that Linux users enter it’s world via the command line and Mac users enter on their GUI end. So with MAMP, it’s a point and click affair with no need to open up a terminal window.

Offline

#11 2007-04-06 04:28:00

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Looking for a way to set up a twin copy of TextPattern for testing

Yep, MAMP has two GUI versions (widget and app). The non-MAMP route is just an always-on server, like Linux (at least on my messed up Xubuntu box), but you don’t need to be in the command line once it’s working.

BTW, a cool thing about Q and Parallels is that the virtual-XP acts like another computer on your network, so it can access your localhost setup and parse PHP and MySQL files. I was doing the same thing with MS Remote Desktop and another networked PC, but with emulation/virtualization you save time and power with only one machine on.

Last edited by jm (2007-04-06 04:35:36)

Offline

#12 2007-04-06 14:45:57

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Looking for a way to set up a twin copy of TextPattern for testing

jm wrote:

Yep, MAMP has two GUI versions (widget and app).

That’s similar to xampp-control.exe, a couple of clicks and you’re running.

Virtualization is pretty cool, once Etch becomes stable, I plan on running a XEN based virtualized web server platform on my home server. This way I can serve pages to the outside world while keeping script kiddies away from my main system files.

Last edited by hcgtv (2007-04-06 14:46:46)

Offline

Board footer

Powered by FluxBB