Page 1 of 1

I can't upload pictures!

Posted: Sun Nov 07, 2004 1:48 pm
by David
Hello!

When I what to upload pictures, an error appears:

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 781 is not allowed to access /srv/www/htdocs/web122/html/davidshp/uploads owned by uid 30 in /srv/www/htdocs/web122/html/davidshp/serendipity_admin_images.inc.php on line 141
ERROR_UNKNOWN_NOUPLOAD

What's wrong?
David

Re: I can't upload pictures!

Posted: Mon Nov 08, 2004 10:33 am
by garvinhicking
Your webserver is running in SafeMode - and your provider setup your SafeMode in a bad way, because your FTP user is not the same as the webserver runs in your directory.

Safe mode does not allow files to be modified/created by a user which is differing. There are two solutions:

1. Tell your provider to turn off SafeMode, or better yet to configure it properly. This is advised. :-)

2. chown the uploads directory to user id 781, if you have sufficient privileges.

Regards,
Garvin.

Re: I can't upload pictures!

Posted: Mon Nov 08, 2004 10:41 am
by garvinhicking
...and please do not crosspost to more than one forum, thanks. I removed your other duplicate topics.

Posted: Thu Nov 11, 2004 7:08 pm
by David
Thanks for answering! How can i solve the problem? I can't understand it.

Thx,
David

Posted: Thu Nov 11, 2004 7:14 pm
by garvinhicking
I told you to ask your provider to correctly configure safemode.

Or use your FTP client to use the "chown" function (something like "permissions" in most clients) to adjust the user id of the file/directory. :)

Posted: Tue Feb 15, 2005 8:05 pm
by Guest
even more easier...delete the uploads folder from the server...create a new one with same name...chmod 777.

Re: I can't upload pictures!

Posted: Sat Aug 06, 2005 8:21 pm
by Guest
mrrrrrrrr
David[/quote]

Posted: Mon Aug 15, 2005 10:47 pm
by davecjr
What about this error while uploading a jpg?

Unable to execute: "/usr/bin/ -antialias -scale '110x110' '/hsphere/local/home/dcockrel/thecockrells.com/blog/uploads/lizlov.jpg' '/hsphere/local/home/dcockrel/thecockrells.com/blog/uploads/lizlov.serendipityThumb.jpg'", error: , return var: 126

The original size file uploads and I assume the error is associated with resizing but as far as I know Imagemagick works with my Coppermine install.

Posted: Tue Aug 16, 2005 6:52 am
by davecjr
Nevermind, I found this in another thread! :oops: