Can't upload anymore images - permissions changed?? Can't upload anymore images - permissions changed??
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't upload anymore images - permissions changed??

Started by gwdguy, August 30, 2004, 01:46:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gwdguy

I am setting up album and all is going good but on about image 50 I got a huge error like this >>

Warning: stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 432

Warning: stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 440

Warning: Unlink failed (Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 453

Warning: stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 432

Warning: stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 440

Warning: Unlink failed (Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 453


I did not change anything that I can see. I actually have been doing nothing but uploading images since I installed and all has been good until just now. I can see the ones I have uploaded but when I click to add new images (upload) this error comes up?? I tried to change to 777 again but now it shows that the folder edit is "owned" by apache so I can't change it.

Help please :)

Thanks!

Nibbler

Put this in a php file, upload to coppermine directory and go to it in your browser. If it returns true, recreate the edit directory yourself and set permissions to 777/755.

<?php
var_dump
(rmdir('albums/edit'));
?>

gwdguy

thanks for the reply.

Okay I think maybe I did not do something right.

I took what you did and saved it to a text file called editfix.php and uploaded it and when I go to that page in the browser I get this >>

Warning: Unable to access albums/edit in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/albums/editfix.php on line 2

Warning: RmDir failed (No such file or directory) in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/albums/editfix.php on line 2
bool(false)


Thanks for any help..

Robert

Nibbler

Put it in your coppermine directory, not in your albums directory. Remember to delete it afterwards.

gwdguy

 ??? okay i am not being very smart today.

I moved that file to the main "CM" directory which is names petpics

Warning: RmDir failed (Directory not empty) in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/editfix.php on line 2
bool(false)

>>>

I SSH'd in to me server and changed the chmod to 777 and this started working fine again but maybe I screwed up something else > see this >>

Weird thing is now I can do it because of this >>

Warning: SAFE MODE Restriction in effect. The script whose uid is 10411 is not allowed to access ./albums/edit/mHTTP_temp_8b873021.jpg owned by uid 48 in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/upload.php on line 1209

Warning: SAFE MODE Restriction in effect. The script whose uid is 10411 is not allowed to access ./albums/edit/mHTTP_temp_8b873021.jpg owned by uid 48 in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/upload.php on line 1218

Warning: getimagesize: Unable to open './albums/edit/mHTTP_temp_8b873021.jpg' for reading. in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/upload.php on line 1218


do I need to start over??


Thanks for taking the time to look.  :)

gwdguy

#5
 :P :P :P

okayokay I am a complete idiot.. I am using GD libs and all this freaking time I am trying to upload .gif's.. someone come shoot me please.


Thanks for your time and come join the Robert comedy hour next time when I have some more silly questions to ask.


Thanks

Robert

kegobeer

If you have GD v2.0.28, you have GIF create support again.  Check out the mod for GIF uploads in the Modification / Add-ons / Hacks board.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

dannybunny

hi there,

i've experienced the same issue before and following the advice/instructions on this page seems to cure the problem everytime. i've however switched server recently, and everything was going fine after the migration until today, all of a sudden, i am not able to upload files. i used the same editfix.php script, recreated the edit folder and 777 it, but i still get the following error:


Warning: is_dir(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home2/sub004/sc11465-LEOH/www/upload.php on line 432

Warning: filemtime(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home2/sub004/sc11465-LEOH/www/upload.php on line 440

Warning: unlink(./albums/edit/.): Permission denied in /home2/sub004/sc11465-LEOH/www/upload.php on line 453

Warning: is_dir(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home2/sub004/sc11465-LEOH/www/upload.php on line 432

Warning: filemtime(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home2/sub004/sc11465-LEOH/www/upload.php on line 440

Warning: unlink(./albums/edit/..): Permission denied in /home2/sub004/sc11465-LEOH/www/upload.php on line 453

i am however still able to Batch Upload my files via FTP, and then running the Batch Add Files button. but uploading the images via the "upload" button churns out the error above.

any advice evangelists?

thanks in advance!

cheers,
dan.

dannybunny

hi there,

sorry to bump this up, but there hasn't been any help rendered. =( any advice, anyone?

THANKS LOADS!

cheerios,
dan

Nibbler

You have to set the correct permissions (777/755) on the edit directory. That's all there is to it.

dannybunny

hi there Nibbler,

thanks for your reply. the Edit folder has been 777-ed everytime after i tried the editfix.php script. yet i still get the same error when i try to upload my files. =(

at my wits' end. any other ideas?

cheerios,
dan.


dannybunny

hi Nibbler,

sorry but now i feel like a clown!

i have been recreating the Edit folder in the main directory instead of the "Albums" directory!! guys, if you encounter the same problem, pls take note that after you run editfix.php, the Edit folder that you have to recreate needs to reside in the "Albums" directory.

thanks Nibbler! and sorry for the ignorance!

cheerios,
dan.