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

  • Home
  • SEARCH
  • 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 538037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:59:23+00:00 2026-05-13T09:59:23+00:00

I’ve just started working for a new firm as an in-house web developer. Up

  • 0

I’ve just started working for a new firm as an in-house web developer. Up until now they have been outsourcing development work of their websites and decided to bring them in-house, hence my employment.

I’ve only every worked on projects on my own and have never used version control.

We’ve just hired another web developer to work alongside me and I’ve been asked to look into version control as there will be up to 4 people who need access to the website files.

I’m completely out of my depth in relation to getting a good setup of Apache sites when running under version control.

We currently have a local development web server running Ubuntu and Apache2 and a live web server at a datacenter. The local server hosts multiple websites each having a sub folder in the web root i.e. /home/htdocs/sitename_com and /home/htdocs/sitename2_com. We currently edit a websites files on PC’s using samba shares or FTP. What I want to do is install SVN so that users can checkout a working copy of the code of a single site, make any changes and then commit the changes back to the repository. We would then need to be able to test the sites and then when happy would FTP the files to our live server.

Now I realised early on when thinking about setting up SVN that when a user checks-out a working copy on their machine they can’t actually test the changes until they commit them back into the repository. This is because the files are PHP and need to be executed via a web server. Now I could just put XAMP on each machine but then this would have a different configuration to the Apache2 install on the development server. This for me is not an option.

I guess the working copies would have to be created not on the users machine but inside the web root of the development server, that’s the same server as the repository itself. I could create a samba share to the users working copy folder so that they can make changes from their windows machine.

I’ve got a few questions:

  1. Can you view a website stored in a repository in the browser without having to check it out first?
  2. If no then the site would have to be checked out to a location within the web root of the same server?
  3. Should I use a repository for each site or one repository with sub folders for each site?
  4. When a user commits the changes they have made to a working copy back to the repository we need to test those changes and everyone else’s changes that may have been committed. Is it possible to get SVN to copy the committed changes to a staging area within the web root for testing?

Or is there a better way of doing this?

I can’t seem to find any clear information on the Internet regarding best practises when setting up SVN for websites. It’s clear how SVN relates to source code of a C++ app where you would just compile your working copy on your machine for testing but websites have to run on a web sever and each working copy would need to be tested on the web server before checking back into the repository.

The are multiple sites on the server with multiple users working on each site. We need to be able to work on the sites at the same time, test all the changes in a staging area and would also like a live area where we will have an exact mirror of the live site where we can merge any changes and test before uploading to the live server.

All the examples I have found on the Internet use examples of a single server hosting a single site. In my case our live server hosts about 10 sites.

If anyone could give me advice on how to set this up, Apache directory structure, repository structure etc. I would really appreciate it.

Thanks in advance!

  • 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-13T09:59:24+00:00Added an answer on May 13, 2026 at 9:59 am

    We had some similar needs and did the following:

    • Set up an SVN server (Git was an option, but too complex in this case as there were no very good GUIs available back then) – we are using the svn-daemon that comes with SVN.
    • Set up testing web server, running the software you need (Apache, etc.).
    • Have users update and commit their changes to and from the SVN repository.
    • Set up a simple script that does something like the following script. Basically pulling all changes from the SVN server every hour (or whenever needed).

      cd /var/www/testdata/

      svn update -f

    Previously you have to checkout the repository, of course.

    You don’t have to worry about users overwriting each other’s changes. SVN detects that and forces the user who commits colliding changes to merge them).

    This would allow for quick testing of changes made. Optionally you can also install Redmine, which integrates tightly with SVN, allowing you to tightly integrate the SVN repository with tickets and bug reports.


    It almost sounds like what you need is Git though. Git allows for separate branches (for instance, for each user, or feature that is implemented) that are merged when they are ready.

    If you want to review every single commit made, you could alternatively check out each commit/revision into its own web sub-directly, which would allow you to access the source code state of each commit using your web browser.

    But a script on the server-side is needed in any case.

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

Sidebar

Ask A Question

Stats

  • Questions 340k
  • Answers 340k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use svn info May 14, 2026 at 4:47 am
  • Editorial Team
    Editorial Team added an answer This isn't an issue with VC++ or anything like that… May 14, 2026 at 4:47 am
  • Editorial Team
    Editorial Team added an answer These articles seem to suggest that checking for 1.5 or… May 14, 2026 at 4:47 am

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.