Hey guys,
Currently my company has a 3 server set-up. 2 web boxes behind a load-balancer and another box not behind the load-balancer (used for Admin, CMS and stats). Due to the state of funds at the moment we are looking to decommission our single box which is not behind the load-balancer. The box has our CMS on it and a media subdomain points to /home/web/media on that box. The problem is if we remove the box and port all the code (PHP) over to the load-balanced web boxes, then when a file is uploaded in the CMS it will only upload it to the media directory of the box the user hits. So if a user hits web1 and uploads a file that file will only be accessible in the /home/web/media directory of web1. So we need to somehow rsync the /media directories on both web1 and web2 when a file is uploaded. Or do something else.
What would you recommend to be the best way to accomplish this?
Any help would be much appreciated.
Just for information purposes we are running PHP 5.2, Red Hat Enterprise Linux and Apache 2.0.52
Regards,
Owen