I have reached this error as a response to my uploading an image in CKFinder:
My settings:
$baseUrl = '/userfiles/';
$baseDir = resolveUrl($baseUrl);
1. I've set the permissions of the /userfiles/ directory to 777. This folder is located in the root directory of the domain.
2. I MUST have php safe mode on because my dedicated server is shared among many of our clients.
I can't understand why the permissions are still getting in the way. Please help!
Michael
It was not possible to complete the request due to file system permission restrictions.
My settings:
$baseUrl = '/userfiles/';
$baseDir = resolveUrl($baseUrl);
1. I've set the permissions of the /userfiles/ directory to 777. This folder is located in the root directory of the domain.
2. I MUST have php safe mode on because my dedicated server is shared among many of our clients.
I can't understand why the permissions are still getting in the way. Please help!
Michael
Re: File Upload Fails Due To File System Permissions
It is not a reliable way of securing a web server, it just brings troubles.
In safe mode apache is unable to save files to a folder created by... apache. So there is no real workaround for this apart from disabling safe mode.
You could try creating all folders manually (userfiles/files, _thumbs/files and so on) changing ownership to the right user and setting permissions to 777, then it could work, however you still won't be able to save files into newly created folders.
(Due to such problems safe mode will be dropped in PHP6)
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: File Upload Fails Due To File System Permissions
Re: File Upload Fails Due To File System Permissions
Being on a shared hosting server, it seems that my hosting provider are unable to disable safe mode on my domain. Looking into it, would disabling Safemode via .htaccess be a workable solution? If so, which folder(s) would I need to display safemode in? - the folder which contains the script which creates/edit/deletes the directories?
Cheers in advance!
Re: File Upload Fails Due To File System Permissions
Yes, if you can change the safe_mode value in the .htaccess file, CKFinder will work fine (see docs for the information how to change php settings via .htaccess file).
Note that it can be done only on some servers, where server configuration allows it (sometimes it is possible to change the php configuration by uploading your own php.ini file).
Use
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: File Upload Fails Due To File System Permissions
Re: File Upload Fails Due To File System Permissions
i do what you say and i create my own files, but i have the same error
i create a file in the root and but the permissions 777 and change the $baseurl to it in the config.php and constants.php files
what is the right thing to do to solve the problem
Thanks for your time