Image permissions problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
reidjazz

Image permissions problem

Post by reidjazz »

I just, for about the 3rd time this morning, did a new CMSMS 1.1.3.1  install (new database as well) to an Apache 2.0 server running PHP 4.4.7 and mysql 4. The problem is that any images I upload to the uploads/images folder have a permission of 600 (instead of 644), making them not accessible by the browser (I get a 404 error). The permissions on the Uploads folder AND the Images folder inside of it are 777. If I change the permissions on the images on the server to 644, all is good. But I shouldn't have to do that (and my client won't have the ability or knowledge to do that).

After doing some more testing, it appears that the File Manager module (not the one as a part of the default install, but the one found in the Module Manager), which allows multiple file uploads is doing this. When I upload a file with the File Manager that is part of the default install, it's permissions are 644; when I use the other File Manager, they are set to 600. Funny, I've been using this module for months with no problem.

Any ideas on fixing this? I rooted around in some of the .php files in the File Manager's folder, but didn't see anything that looked like it set permissions on the files being uploaded.

reidjazz
Last edited by reidjazz on Mon Sep 24, 2007 6:25 pm, edited 1 time in total.
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Image permissions problem

Post by saltydog »

I am experiencing exactly the same problem with v.1.2
FileManager uploads files with 600 permission, which is causing me problems in getting a backup.
dmgd
Forum Members
Forum Members
Posts: 115
Joined: Tue Jun 06, 2006 1:10 pm

Re: Image permissions problem

Post by dmgd »

Same problem with upgrade to 1.2  Does not matter what mask is set in config.php or the Global settings.  Changing the settings in Global Settings makes no change to the permissions.  It is always 600.  A new install of version 1.2 also has this problem.

CMSMS 1.2
PHP 5.x
mySql 5.x
Apache 1.3

Mark
Mark
cyberman

Re: Image permissions problem

Post by cyberman »

scotch33
Dev Team Member
Dev Team Member
Posts: 285
Joined: Tue Feb 14, 2006 9:56 pm

Re: Image permissions problem

Post by scotch33 »

Hi - just tried the solution at http://forum.cmsmadesimple.org/index.ph ... 482.0.html and it didn't play nice. 

Lets all try and post there so that the 3 + threads on this all become 1!
Locked

Return to “CMSMS Core”