Server speed: sharing one script.php or using many copies the same script.php
- by Marco Demaio
Let's assume:
I have thousands of domains on same Apache server.
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"
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?