Page 1 of 1
I simply can't control the permissions
Posted: Sat Oct 21, 2006 5:09 pm
by heltinde
Hi guys
If I create folders inside CMSMS (image manager), I can't upload to them, because I get permission error. Then I try to change the permissions manually, but I'm forced to delete the folder an create a new one before I can chmod 777.
How do I tell CMSMS to create the right permissions?
I use CMSMS 1.02 and the server is debian based.
Re: I simply can't control the permissions
Posted: Sat Oct 21, 2006 6:09 pm
by Dieter
Hi heltinde,
I think you should try it in the config.php:
Code: Select all
#Permissions for uploaded files. This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '777';
Please tell if that helps.
Best wishes,
Dieter
Re: I simply can't control the permissions
Posted: Sat Oct 21, 2006 7:16 pm
by heltinde
Hi Dieter
I tried your suggestion, but the folders I create, still get an unchangeable 751 instead of 777.
Strange. Do you have other ideas?
Re: I simply can't control the permissions
Posted: Sat Oct 21, 2006 7:34 pm
by calguy1000
Check the file creation mask in the system settings. Try setting it to 000
Re: I simply can't control the permissions
Posted: Sat Oct 21, 2006 7:53 pm
by heltinde
Now the file creatation mask is 000 and the new folders get 777, but they are still not willing to accept uploaded files. What can be blocking?
Re: I simply can't control the permissions
Posted: Thu Oct 26, 2006 12:42 am
by heltinde
The problem still persists - I'm also not able to install modules via xml upload. Perhaps I can't fix this, but I would like an explanation - perhaps my web host can make some changes in order to fix it?
/Lise

Re: I simply can't control the permissions
Posted: Fri Oct 27, 2006 1:41 pm
by benn
I've got the same problem. Been searching this forum for days but still no answers.
Re: I simply can't control the permissions
Posted: Fri Oct 27, 2006 2:06 pm
by tsw
If your hoster runs php in safe mode there is not much we can do now, there are plans for having a ftp class which would do file creation but its still just an idea and quite a bit to implement.
safe mode is a lousy option for isps but as it is a easy option to create some feeling of security hosts use it (and then they have perl active at the same server with full rights, doh)
Re: I simply can't control the permissions
Posted: Fri Oct 27, 2006 2:35 pm
by heltinde
I ran phpinfo, and here is the output:
http://test.intetnet.dk/phpinfo.php (is it unsafe to publish that info?)
I've also attached the screendump from installation.
Do these informations conclude, that permission problems will persist? Soon I will be finished making a big website based on cmsms, and I'm a bit sad I can't give the costumer the possibility to upload from inside cmsms (btw - it's the best cms I've seen EVER!).
If I ask my host to turn safe mode off, will he then start laughing because it's difficult? I don't know much about servers...
/Lise
[gelöscht durch Administrator]
Re: I simply can't control the permissions
Posted: Fri Oct 27, 2006 4:58 pm
by tsw
yup phpinfo says
safe_mode On
so you most probably will end up with permission problems. Safemode is a hackish attempt to onlu allow php scripts to touch files that have same uid which is fine as long as you create all the files. Problems start arising when apache process creates files for you (like thumbnails or new folders) then some files are owned by other users and php safe mode doesnt allow touching them.
hope this clarifies the situation
Re: I simply can't control the permissions
Posted: Sat Oct 28, 2006 5:06 pm
by heltinde
Thanx for the explanation