Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


I've found myself hosting a bunch of sites running on the same web framework (symfony 1.4). Would it be helpful if I moved all of the shared library code into the same directory and shared it across the sites?


I see some advantages to this:

  • Each site takes up less disk space
  • Library updates (an unlikely scenario) can take place across all sites

I also see some disadvantages, mostly in terms of a single point of failure and the inability to have sites using different versions of the framework.

My real concern, though, is performance. I hypothesize that I will see a performance increase, since the PHP code will already be cached for all sites when they call the framework. Is this a correct hypothesis?

share|improve this question

My guess is that the loss in flexibility could exceed the benefit of performance increase, if any. The need of a sudden upgrade or downgrade of some components can happen at any time and with common libraries you'd be greatly limited in this sense. Moreover, any site has its own life and should then be kept completely separate from others (through chroots, virtual machines, jails) for security reasons.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.