Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[202] Data folder permisions error #262
Comments
|
755 and 644 works with apache/nginx user only.
|
MrKeiKun
commented
Jul 31, 2014
|
still not working |
|
Please, run this code in RainLoop Webmail root folder. check.php <?php
define('APP_DATA_FOLDER_PATH', './data/');
$sCheckName = 'delete_if_you_see_it_after_install';
$sCheckFolder = APP_DATA_FOLDER_PATH.$sCheckName;
$sCheckFilePath = APP_DATA_FOLDER_PATH.$sCheckName.'/'.$sCheckName.'.file';
@unlink($sCheckFilePath);
@rmdir($sCheckFolder);
$aResult = array();
if (is_dir(APP_DATA_FOLDER_PATH))
{
$aResult = array(
'1) is_dir='.(@is_dir(APP_DATA_FOLDER_PATH) ? '1' : '0'),
'2) is_readable='.(@is_readable(APP_DATA_FOLDER_PATH) ? '1' : '0'),
'3) is_writable='.(@is_writable(APP_DATA_FOLDER_PATH) ? '1' : '0'),
'4) mkdir='.(@mkdir($sCheckFolder, 0755) ? '1' : '0'),
'5) file_put_contents='.(false !== @file_put_contents($sCheckFilePath, time()) ? '1' : '0'),
'6) unlink='.(false !== @unlink($sCheckFilePath) ? '1' : '0'),
'7) rmdir='.(false !== @rmdir($sCheckFolder) ? '1' : '0')
);
}
else
{
$aResult[] = 'is_dir=0';
}
echo implode("</br>\r\n", $aResult);
?> |
MrKeiKun
commented
Jul 31, 2014
|
|
Your data folder is not writable from PHP code. Try to set correct chown for data folder (your webserver user - apache, www-data or nginx) |
MrKeiKun
commented
Aug 1, 2014
|
I already 777 everything can you give me a code |
|
I already gave you the code. |
MrKeiKun
commented
Aug 1, 2014
|
so 1-7 should be is equal to 1 |
|
Yes |
|
Is this issue still relevant? |
MrKeiKun
commented
Aug 15, 2014
|
Selinux issue~ |
MrKeiKun
closed this
Aug 15, 2014
|
Ok, thanks! |
jedufa
commented
Jan 5, 2015
|
i had the same problem. 777 worked. |
Boycce
commented
Feb 19, 2015
|
Same had to change chmod to 777 |
galch99
commented
May 12, 2015
every thing 777. but not working :( |
rjapeer
commented
Dec 31, 2015
|
Took me a little while to figure out, but the solution is to have SE Linux allow writing data folder by httpd: [root@machine rainloop]# cd /var/www/html/rainloop
[root@machine rainloop]# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/rainloop/data'
[root@machine rainloop]# restorecon -v '/var/www/html/rainloop/data'Note that the complete path to the rainloop data folder must be specified. [root@machine rainloop]# ls -Z
drwxr-xr-x. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 data
-rw-r--r--. apache apache system_u:object_r:httpd_sys_content_t:s0 index.php
drwxr-xr-x. apache apache system_u:object_r:httpd_sys_content_t:s0 rainloopAnd with the check.php script from a previous comment the output should be:
|
saikatharryc
commented
Mar 23, 2016
|
[202] Data folder permissions error [is_writable]. i have SSH console. how do i make this run? |
aestheticsdata
commented
Apr 8, 2016
|
following the doc has worked for me : http://www.rainloop.net/docs/permissions/ maybe it was the missing : chown -R www-data:www-data . |
saikatharryc
commented
Apr 8, 2016
|
not worked. |
lutfiarfianto
commented
Jun 7, 2016
|
i have
chmod = 0777 but i dont have ssh access what should i do? |
mpatron
commented
Jun 25, 2016
|
You should try
It is working for me on my centos7+rainloop. |
DevSidious
referenced this issue
in pierre-alain-b/rainloop-nextcloud
Mar 19, 2017
Closed
Nextcloud 11.0.2 : [202] Data folder permissions error [is_dir] #7
parsibox
commented
Jul 4, 2017
|
you should desable selinux and reboot your os |
MoacirSchmidt
commented
Jul 31, 2017
|
For Windows + IIS you have to give proper permissions to IUSR also |
Alirezaies
commented
Aug 3, 2017
|
I had the same problem with SELinux off and correct permissions (644 for files and 755 for directories). here is what I changed in
and then |
mojili
commented
Aug 7, 2017
•
|
I had the same problem with SELinux. first setenforce 0 and then try if everything is ok, then enable SELinux setenforce 1 and try to find the targets witch SELinux denies them . |
shaahinhs
commented
Oct 15, 2017
|
hi , i had the same problem ;
but : [202] Data folder permisions error os: centos 5.11 / apache 2.2.31 |
mpatron
commented
Oct 20, 2017
|
shaahinhs , you should follow pierre-alain-b/rainloop-nextcloud#7 |
MrKeiKun commentedJul 31, 2014
Information:
Im using rainloop from github src, I installed once before on another server. Worked fine same procedures. Now im running centos7.
I already ran
still not working