I can't upload pictures!

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
David

I can't upload pictures!

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: I can't upload pictures!

Post 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.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: I can't upload pictures!

Post by garvinhicking »

...and please do not crosspost to more than one forum, thanks. I removed your other duplicate topics.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
David

Post by David »

Thanks for answering! How can i solve the problem? I can't understand it.

Thx,
David
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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. :)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

even more easier...delete the uploads folder from the server...create a new one with same name...chmod 777.
Guest

Re: I can't upload pictures!

Post by Guest »

mrrrrrrrr
David[/quote]
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post 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.
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Nevermind, I found this in another thread! :oops:
Post Reply