Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Setting Up a "Test" Server

Setting Up a "Test" Server
Thread Tools
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jul 18, 2005, 10:30 AM
 
I'm thinking of assembling a cheap LAMP (Linux/Apache/MySQL/PHP) box on my network with my Macs against which to test my websites. My question is: How do you run your tests? In the past, I've simply had a "local" version that I write my code on, and use an FTP client to sync with the "remote" version that the world sees.

How do you also sync with the test server? Is there some kind of 3-way FTP setup you use?
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jul 18, 2005, 07:03 PM
 
I've set up a cheap PC under Fedore Core 4 that's a beaut little workhorse. It's running NetAtalk 2.0.2 which means a reliable and quick Fileserver for the macs to connect to.

What I've done is to create a share called 'Websites' on that Linux box, and inside that are a whole heap of client folders. E.g.:-

client 1 -> www.client1.dev -> httpdocs
client 2 -> www.client2.dev -> httpdocs

...etc...


So it means that any user can log in and work on those sites simply by mounting the 'Websites' share. Because those files are being worked on directly, there's no need for synching. Of course, the only thing to watch out for is multiple people working on the same site, but a little old fashioned talking can resolve that one.

Then I've set up BIND on that box and created a whole heap of '.dev' domains that all point back to the same box. All the virtual hosts I have on this box perfectly replicate my live server except for the '.dev' domain so I can be pretty sure that things will run smoothly once I upload.

I used to simply SFTP from my Linux box to my live box when I was ready to go live but there were occassional wrinkles that meant 0 byte files were overwriting my files (extremely rare, but it did happen nonetheless). So I set up all my sites using Subversion, and then all I do is SSH into my live box, and perform a SVN export from the test box - it works a whole heap more reliably, and I can also have it tunnel through SSL for safety.
Computer thez nohhh...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:22 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2