Currently my company has a 3 server set-up. I have two web boxes and load-balancers behind load load The second box behind (used for admin, CMS and data). Due to the position of the fund at the moment, we are trying to name our single box which is not behind the load-balancer. In the box there are our CMS and media / home / media / media subdomain numbers on that box. The problem is that if we remove all the code (pHP) from the box and port for the load-balanced web box, then when a file is uploaded to CMS, it will be uploaded only to that user's hit box's Media Directory . Therefore, if a user hits the web 1 and uploads the file in which the file can only be accessed in the directory of / home / web / media1, so if we file / upload in any way, both Web 1 and Web 2 On / media directories must be reciprocated. Or do something else
What would you suggest the best way to accomplish this?
Any help would be greatly appreciated
For information purposes only, we are running PHP 5.2, Red Hat Enterprise Linux and Apache 2.0.52
Regards,
Owen
You have some options (some are already mentioned ):
- Store uploaded files (not recommended for files which you will need to have fast access to).
- Use a network file system such as NFS or SMB, and store uploaded files there
- Use a cluster file system such as GFS or OCFS.
Comments
Post a Comment