ISP modified PHP tmp directory - now can't upload images

Having trouble installing serendipity?
Post Reply
digitalfilm
Regular
Posts: 40
Joined: Wed Feb 07, 2007 8:04 pm
Location: New York City
Contact:

ISP modified PHP tmp directory - now can't upload images

Post by digitalfilm »

This is WAY over my head, but my ISP (who does a great job by the way) moved the php tmp file somehow and now I'm getting these errors. Can anyone interpret them for me? Is this something I can fix or does it require root access?

------
Warning: move_uploaded_file(/usr/www/users/mh8020/uploads/ActivityOwner.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in /usr/www/users/mh8020/include/admin/images.inc.php on line 299

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/usr/tmp/phpi2ePUc' to '/usr/www/users/mh8020/uploads/ActivityOwner.gif' in /usr/www/users/mh8020/include/admin/images.inc.php on line 299
Unknown error occurred, file not uploaded. Maybe your filesize is larger than the maximum size allowed by your server installation. Check with your ISP or edit your php.ini file to allow larger file size uploads.

---

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

Re: ISP modified PHP tmp directory - now can't upload images

Post by garvinhicking »

Hi!

Only your ISP can fix that by adjusting thepermission setup of the TMP dir and your user direcctory.

The error says, that your PHP account has no write (and maybe even no read) privilege to /usr/tmp/.

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/
digitalfilm
Regular
Posts: 40
Joined: Wed Feb 07, 2007 8:04 pm
Location: New York City
Contact:

Thanx - opened trouble ticket with ISP

Post by digitalfilm »

we'll see what they say and I'll post the solution here once resolved.
digitalfilm
Regular
Posts: 40
Joined: Wed Feb 07, 2007 8:04 pm
Location: New York City
Contact:

Trailing // error

Post by digitalfilm »

For some reason media upload and plugin maintenance both put a trailing "/" on the path. For example:
/usr/www/users/mh8020//serendipity_config_local.inc.php

where is this extra // coming from?
digitalfilm
Regular
Posts: 40
Joined: Wed Feb 07, 2007 8:04 pm
Location: New York City
Contact:

Line 27 of config?

Post by digitalfilm »

the trailing slash is throwing errors like this one:

Warning: fopen(/usr/www/users/mh8020/uploads/acc_image.jpg) [function.fopen]: failed to open stream: Permission denied in /usr/www/users/mh8020/include/admin/images.inc.php on line 226

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/www/users/mh8020/include/admin/images.inc.php on line 227

Warning: fclose(): supplied argument is not a valid stream resource in /usr/www/users/mh8020/include/admin/images.inc.php on line 228
https://my.pair.com/i/acc_image.jpg fetched as acc_image.jpg
Thumbnail created.
Done.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Line 27 of config?

Post by garvinhicking »

Hi!

That's not a problem!

//////////// is the same like /

You don't need to pay attention to this. Your problem is really only be caused by permissions.

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/
Post Reply