|
On your non-linode host, you're probably running suexec/suphp, and "your FTP login", ie the files' owner, is what PHP runs at.
At a standard out of the box Debian setup, PHP runs as the webserver user/group, "www-data".
I recommend keeping the files' ownership as "you" (whatever your login is, non-root), but make the writable areas owned by group www-data, and group-writable.
Do not make the actual PHP files writable by PHP - just the attachments directory and other stuff that needs to be writeable by day-to-day operations. Also secure those writeable directories in your webserver's config file so PHP code put in them can't execute.
_________________ rsk, providing useless advice on the Internet since 2005.
|