You are here: Re: User uploading files to load balanced server cluster « PHP Programming Language « IT news, forums, messages
Re: User uploading files to load balanced server cluster

Posted by Andy Jeffries on 02/23/06 13:03

On Wed, 22 Feb 2006 18:07:24 -0800, Stephen wrote:
> Forgot to point out how the cron job (actually a PHP script) runs ...
>
> 3a) cron executes scp -p origfile sg@www2:destfile 3b) destfile appears on
> www2 with ownership sg/sg, same permissions as origfile

So can't you chown the origfile to nobody/www (i.e. nobody:sg or
www:sg, depending on which you use) after scping with cron? That way it
will be owned by nobody/www and the web server will be able to overwrite
it.

Cheers,


Andy

--
Andy Jeffries | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

Navigation:

[Reply to this 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

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