Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 340391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:36:42+00:00 2026-05-12T10:36:42+00:00

I have worked within a web development company where we had our local machines,

  • 0

I have worked within a web development company where we had our local machines, a staging server and a a number of production servers. We worked on macs in perl and used svn to commit to stage, and perl scripts to load to production servers. Now I am working on my own project and would like to find good practices for web development when using shared web hosting and not working from a unix based environment (with all the magic I could do with perl / bash scripting / cron jobs etc)

So my question is given my conditions, which are:

  • I am using a single standard shared web hosting from an external provider (with ssh access)
  • I am working with at least one other person and intended to use SVN for source control
  • I am developing php/mysql under Windows (but using linux is a possibility)

What setup do you suggest for testing, deployment, migration of code/data? I have a xampp server installed on my local machine, but was unsure which methods use to migrate data etc under windows.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:36:42+00:00Added an answer on May 12, 2026 at 10:36 am

    I have some PHP personal projects on shared-hosting; here are a couple of thoughts, from what I’m doing on one of those (the one that is the most active, and needs some at least semi-automated synchronization way) :

    A few words about my setup :

    • Some time ago, I had everything on SVN ; now, I’m using Bazaar ; but the idea is exactly the same (except, with bazaar, I have local history and all that)
    • I have an ssh access to the production server, like you do
    • I work on Linux exclusively (so, what I do might not be as easy with windows)

    Now, How I work :

    • Everything that has to be on the production server (source-code, images, …) is committed to SVN/Bazaar/whatever
    • I work locally, with Apache/PHP/MySQL (I use a dump of the production DB that I import locally once in a while)
    • I am the only one working on that project ; it would probably be OK for a small team of 2/3 developers, but not more.

    What I did before :

    • I had some PHP script that checked the SVN server for modification between "last revision pushed to production" and HEAD
      • I’m guessing this home-made PHP script looks like the Perl script you are currently using ^^
    • That script built a list of directories/files to upload to production
    • And uploaded those via FTP access
    • This was not very satisfying (there were bugs in my script, I suppose ; I never took time to correct those) ; and forced me to remember the revision number of the time I last pushed to production (well, it was automatically stored in a file by the script, so not that hard ^^ )

    What I do now :

    • When switching to Bazaar, I didn’t want to rewrite that script, which didn’t work very well anyway
    • I have dropped the script totally
    • As I have ssh access to the production server, I use rsync to synchronise from my development machine to the production server, when what I have locally is considered stable/production-ready.

    A couple of notes about that way of doing things :

    • I don’t have a staging server : my local setup is close enough to the production’s one
    • Not having a staging server is OK for a simple project with one or two developers
    • If I had a staging server, I’d probably go with :
      • do an "svn update" on it when you want to stage
      • when it is OK, launch the rsync command from the staging server (which will ba at the latest "stable" revision, so OK to be pushed to production)
    • With a bigger project, with more developers, I would probably not go with that kind of setup ; but I find it quite OK for a (not too big) personal project.

    The only thing "special" here, which might be "Linux-oriented" is using rsync ; a quick search seems to indicate there is a rsync executable that can be installed on windows : http://www.itefix.no/i2/node/10650

    I’ve never tried it, though.


    As a sidenote, here’s what my rsync command looks like :

    rsync --checksum \
        --ignore-times \
        --human-readable \
        --progress \
        --itemize-changes \
        --archive \
        --recursive \
        --update \
        --verbose \
        --executability \
        --delay-updates \
        --compress --skip-compress=gz/zip/z/rpm/deb/iso/bz2/t[gb]z/7z/mp[34]/mov/avi/ogg/jpg/jpeg/png/gif \
        --exclude-from=/SOME_LOCAL_PATH/ignore-rsync.txt \
        /LOCAL_PATH/ \
        USER@HOST:/REMOTE_PATH/
    

    I’m using private/public keys mechanism, so rsync doesn’t ask for a password, incidentally.

    And, of course, I generally use the same command in "dry-run" mode first, to see what is going to be synchronised, with the option "--dry-run"

    And the ignore-rsync.txt contains a list of files that I don’t want to be pushed to production :

    .svn
    cache/cbfeed/*
    cache/cbtpl/*
    cache/dcstaticcache/*
    cache/delicious.cache.html
    cache/versions/*
    

    Here, I just prevent cache directories to be pushed to production — seems logical to not send those, as production data is not the same as development data.

    (I’m just noticing there’s still the ".svn" in this file… I could remove it, as I don’t use SVN any more for that project ^^ )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a series of svc files within a web application, they all worked
At every company I have worked at, I have found that people are still
I have a simple web service sitting on our internal network. I used SOAPUI
I'm having problems with my ASP.NET web forms system. It worked on our test
I have a small web app I wrote that has a Dijit.layout.BorderContainer nested within
I have worked for 5 years mainly in java desktop applications accessing Oracle databases
I have worked on projects for embedded systems in the past where we have
I have worked on iPhone application but not aware of the formalities to submit
I have worked a bit with Django and I quite like its project/applications model
I have worked on single threaded business logic/back-end programming for most of my career.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.