Forum: Ruby on Rails FileUtils copy not working when invoked by webserver

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
David R. (Guest)
on 2006-01-27 21:28
(Received via mailing list)
I have image manipulation routines in one of my controllers, and in an
attempt to "undo" bad image edits, I want to copy the original image
over the "working" image file.

FileUtils::Verbose.cp(@registrant.image('original'), @registrant.image)

Works great when invoked with a valid @registrant object in
but it does not work when invoked on Lighttpd.

My Lighttpd process is running under the same user as script/console, eg

Any insight would of course be appreciated.

This topic is locked and can not be replied to.