Server speed: sharing one script.php or using many copies the same script.php

Posted by Marco Demaio on Server Fault See other posts from Server Fault or by Marco Demaio
Published on 2010-05-17T19:54:13Z Indexed on 2010/05/17 20:01 UTC
Read the original article Hit count: 249

Filed under:
|
|
|
|

Let's assume:

  1. I have thousands of domains on same Apache server.

  2. Each domain is in a folder under server public_html document folder, so it can be accessed by calling "www.somedomain.com" or by calling "www.serverdomain.com/somedomain_folder"

  3. In each domain there is a website who needs a certain script.php (identical for each domain).

From a coding point view, its obvious that it's better to use a unique script.php, so when i update it with new features/bug fixes etc, I need to update on server only one file and it will work for all domains.

But from a server point of view? If i use a unique script all domains will access it at the same time, will the server run slower compared to the situation where each domain called its own script?

© Server Fault or respective owner

Related posts about apache

Related posts about server