Reply to User uploading files to load balanced server cluster

Your name:

Reply:


Posted by Stephen on 02/23/06 04:00

Hi All!

This really is a file permissions problem ... although I'm not sure how
to solve it. Any assistance would be greatly appreciated.

I have a series of load balanced servers. Each of the servers is
arranged exactly the same and handles file uploads from users as
follows:

1) User submits file to www1 server
2) www1 server saves file with permissions showing user "www" is the
owner, dir owner is the group for the file ("sg" in this case).
3) cron script on www1 scp's the file to www2 server.

All of this works great up until the following happens ...

4) User resubmits the file to www2 server
5) www2 attempts to update file located on www2 server with new
version, but cannot modify file (attempting to overwrite a file owned
by sg/sg with a file to be owned by www/sg).
6) User continues to see old image, new image is not replicated

Where am I going wrong here? Any assistance would be appreciated.

Stephen

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация