coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: cpnoob on September 08, 2004, 09:44:13 AM

Title: Problems with uploading of images - Pls help
Post by: cpnoob on September 08, 2004, 09:44:13 AM
Hi all,

I'm unable to successfully to upload images to my coppermine gallery. Seems to me like i set the permissions wrongly but i followed the setup instructions. Did i missed something somewhere? Thanks!


Warning: move_uploaded_file(./albums/edit/mHTTP_temp_fcc217b4.jpg): failed to open stream: Permission denied in /home/domain/public_html/username/coppermine/upload.php on line 1197
Warning: move_uploaded_file(): Unable to move '/tmp/php7SzyYU' to './albums/edit/mHTTP_temp_fcc217b4.jpg' in /home/domain/public_html/username/coppermine/upload.php on line 1197
Warning: is_dir(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 432
Warning: filemtime(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 440
Warning: unlink(./albums/edit/.): Permission denied in /home/domain/public_html/username/coppermine/upload.php on line 453
Warning: is_dir(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 432
Warning: filemtime(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 440
Warning: unlink(./albums/edit/..): Permission denied in /home/domain/public_html/username/coppermine/upload.php on line 453
Warning: is_dir(): Stat failed for ./albums/edit/WS_FTP.LOG (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 432
Warning: filemtime(): Stat failed for ./albums/edit/WS_FTP.LOG (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 440
Warning: unlink(./albums/edit/WS_FTP.LOG): Permission denied in /home/domain/public_html/username/coppermine/upload.php on line 453
Title: Re: Problems with uploading of images - Pls help
Post by: Joachim Müller on September 08, 2004, 10:32:31 AM
yes, you failed to CHMOD the albums dir and everything within it (this means the edit folder as well), so the webserver has read/write/execute permissions. If there's no folder named "edit" within your albums folder, create it, CHMOD it and try again.

Joachim
Title: Re: Problems with uploading of images - Pls help
Post by: alan2525 on September 08, 2004, 06:08:19 PM
I was happily uploading photos to the gallery and have a registered user who was also using the uploader on the guest account. Then once the user had exceeded their disk quote 1024Kb. I incresed this for their user group and ever since I have recieved the following errors...

Any help would be appreciated!



Warning: is_dir(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/bfbf40k/public_html/cpg132/upload.php on line 432

Warning: filemtime(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/bfbf40k/public_html/cpg132/upload.php on line 440

Warning: unlink(./albums/edit/.): Permission denied in /home/bfbf40k/public_html/cpg132/upload.php on line 453

Warning: is_dir(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/bfbf40k/public_html/cpg132/upload.php on line 432

Warning: filemtime(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/bfbf40k/public_html/cpg132/upload.php on line 440

Warning: unlink(./albums/edit/..): Permission denied in /home/bfbf40k/public_html/cpg132/upload.php on line 453
Title: Re: Problems with uploading of images - Pls help
Post by: kegobeer on September 08, 2004, 06:11:33 PM
Take a look at every directory in /albums - verify edit exists and verify all directories' permissions are set at 777.
Title: Re: Problems with uploading of images - Pls help
Post by: kesm on October 16, 2004, 02:46:41 PM
hello,

i have the same problem after increase the user group capacity i hava an error.
I look my edit folder and it is at 666 when i try to change it i have this error :
QuoteRequest denied.
Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation

and it exist and i have permissions because i'm the webmaster!

could you help me?
Title: Re: Problems with uploading of images - Pls help
Post by: Casper on October 16, 2004, 07:10:51 PM
Try changing the folder name, then make a new edit folder, with the correct permissions.
Title: Re: Problems with uploading of images - Pls help
Post by: dahak on October 16, 2004, 09:51:28 PM
I started having this exact problem last night.  I was happily uploading images and all of a sudden, it gives me that error.  The edit directory is set at 666.  When I try to change it to 777, it says I don't have permission to change it even though I'm using the administrator account.
Title: Re: Problems with uploading of images - Pls help
Post by: Joachim Müller on October 17, 2004, 12:21:38 PM
do as Casper suggested only one posting above yours...

Joachim
Title: Re: Problems with uploading of images - Pls help
Post by: kesm on October 17, 2004, 03:37:16 PM
okay for the solution but there is a problem with the old folder "edit": i can't do any operations on it like open it or delete it so i can't have to folder nammed "edit"
Title: Re: Problems with uploading of images - Pls help
Post by: tabaluga on October 25, 2004, 01:16:02 PM
thanks casper.
had the same problem and renaming 'edit' and creating a new edit with 777 did the trick.
Title: Re: Problems with uploading of images - Pls help
Post by: Casper on October 25, 2004, 01:48:12 PM
To prevent this happening again, open your include/picmgmt.inc.php file, and find '0666'.

Change it to '0777'.
Title: Re: Problems with uploading of images - Pls help
Post by: nogobyhall on March 22, 2005, 05:03:30 AM
Every few weeks, this error happens to me and I have to manually change permissions on the edit folder to 0755 (from 0666) to get my gallery working again. I'm looking at Casper's suggestion of editing the picmgmt.inc.php file. Are there any other potential problems I could be running in to if I do edit it (and if that is the answer, how come the file hasn't been fixed already)?  ???
Title: Re: Problems with uploading of images - Pls help
Post by: Tranz on March 22, 2005, 05:09:37 AM
Did you look in Config? What are the settings for "Default mode for directories"?
Title: Re: Problems with uploading of images - Pls help
Post by: nogobyhall on March 22, 2005, 05:22:46 AM
Default mode for directories  0755
Default mode for files  0644
Title: Re: Problems with uploading of images - Pls help
Post by: flipped cracker on March 29, 2005, 07:34:25 PM
Quote from: Casper on October 25, 2004, 01:48:12 PM
To prevent this happening again, open your include/picmgmt.inc.php file, and find '0666'.

Change it to '0777'.
finally a decent answer. i searched and searched the forums and the only answer i kept seeing was "Search". i realize how much it sucks to answer the same question more than once, but it would help to have a decent faq with this specific question in it since
Quote from: GauGauthis has been asked a million times over


anyway, thanks Casper.
Title: Re: Problems with uploading of images - Pls help
Post by: shiv_379 on April 01, 2005, 03:00:54 PM
I too have had this problem unexpectedly. I have a number of users on my gallery and everyone has been able to upload images quite happily until suddenly this has happened.

What exactly causes this?

I will try the solutions suggested above.
~Shiv
Title: Re: Problems with uploading of images - Pls help
Post by: nogobyhall on April 02, 2005, 06:30:34 AM
Let us know how you get on after editing that file - I've held off because I'm puzzled as to why that file needs changing and concerned that editing it could open up other problems. There must be a reason it is set to 0666...