Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
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
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):
- Enable Personal Web Sharing in System Preferences
- Open up Terminal:
sudo pico /etc/httpd/httpd.conf
- Uncomment LoadModule php4_module (hit control (^)+W to search)
- Uncomment AddModule mod_php4.c
- ^O, enter, ^X
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
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
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.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
Re: Looking for a way to set up a twin copy of TextPattern for testing
jm wrote:
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)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline