[wp-testers] Another Issue with the upload mechanism

Robert Deaton false.hopes at gmail.com
Mon Jan 2 20:19:12 GMT 2006


On 1/2/06, Aaron Brazell <aaron at technosailor.com> wrote:
> As if we need more problems with the image uploading feature, it seems that images uploaded to the new directory structure cannot be copied (by default) in a backup routine. Unless a user has permissions on a server to change ownership of the image upload paths, then backup routines such as this won't work.
>
> tar cvf ~/path/to/backup.tar ~/docroot
>
> Of course, it won't work for users using basic FTP to download entire copies of their sites either.  I realize this is a limitation of PHP but it might be worth it to be aware of these problems going forward (when our first batch of users start trying to do WP 2 backups).

This is entirely a server configuration issue. PHP will write the
files as whatever user it is running as. The recommended setup for
servers is to use suexec or fast-cgi or some other method to run the
webserver as the same user whose files will be hosted. Although this
is not always the case, there is nothing that WP can and will do about
it.

--
--Robert Deaton
http://somethingunpredictable.com


More information about the wp-testers mailing list