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 8832289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:29:42+00:00 2026-06-14T08:29:42+00:00

I have 40 servers spread world-wide. All running centos lamp. I’m using git and

  • 0

I have 40 servers spread world-wide. All running centos lamp.
I’m using git and I want every change to production branch to be deployed to each of those machines. Each machine has it’s own config.php and few other machine specific files.

Currently commits to production branch trigger hudson build task with phing running phpunit tests, php-md, cpd and etc. The question is, how to deploy it to each of my machines,
preferably with running selenium tests on/for each of the updated servers, prior to making it live.

I’ve looked into capistrano, but I totally don’t want to mix ruby and add this dependencies in my team.

Your suggestions for php multi server CI deployment ?

Variant 1

As an option, run a web-hook on commit, launching phing build on each of the machines,
where in the build configuration I’ll specify which repo to clone, which files to leave at place and which to replace.
Although this would fail if I suddenly push a bugged build.xml file which will prevent me from rebuilding / reverting without 40 manual interruptions. + no reverting option.

  • 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-06-14T08:29:42+00:00Added an answer on June 14, 2026 at 8:29 am

    Ended up with a bit customized git flow, where a post-receive hook triggered build scripts via and CI server. The build result was placed in a folder that was lately synched with rsync to all those 40 servers.

    The config.php for each server had been left in the git repo itself
    and php’s auto_perpend_file directive was set in the vhost config to load the correct
    config.php file for the current server.

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

Sidebar

Related Questions

I have sixteen servers using Log4J logs, accessible by ssh. I want to see
I have two servers: Fedora running Apache/2.2.14 (old server) CentOs running Apache/2.2.3 (new server)
I have one table spread across two servers running MySql 4. I need to
I have 2 servers setup at the moment. One is a web server running
I have multiple servers across the globe, running the same web application. The user
We have a solution which is spread globally across a few Sybase DB servers
I have several servers running the same code but each handling specific messages (they
I have 3 tomcat servers where users get into all time. They are 3
We have a plethora of databases all sharing the same schema. They are spread
I have 2 servers. On Server 1 I have a WordPress website. On Server

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.