Re: [owncloud-user] Can't write into config directory!

2018-05-23 Thread Emil Lefherz
apparently it can be in the webroot directory, don't worry. is it there
in your case? Because the errors do imply that it isn't there.

best,

Emil


On 14.05.2018 18:28, Aziz wrote:
> Hi again and thank you for your feedback.
>
>
> @Emil, yes I'm using tar file, but I didn't understand the first part of
> your answer, "config directory should be somewhere else", do you mean the
> config directory shouldn't be in the web server root directory ? I'm using
> the following guide as reference :
> https://doc.owncloud.org/server/latest/admin_manual/installation/source_installation.html
>
> For the permissions, it's a test environment, so it's fine.
>
>
> @ Carlos, I got the following error :
>
>
> *Can't write into config directory! *
>
> *This can usually be fixed by  href="https://doc.owncloud.org/server/10.0/go.php?to=admin-dir_permissions
> "
> target="_blank" rel="noreferrer">giving the webserver write access to the
> config directory.*
>
> Thank you all.
>
>
> On Mon, May 14, 2018 at 4:16 PM, Carlos Damken  wrote:
>
>> Hi,
>>
>> You didn't write exactly which is the error you have. The  permits should
>> be 0644 for the folder and 0750 for the files (that does the script.
>> Best regards
>>
>> Carlos
>> On 14.05.2018 18:02, Aziz wrote:
>>
>> Hi OC Users,
>>
>> I'm trying to install OwnCloud in a Centos 7 virtual machine, and got
>> stuck in post installation steps with error shown in the subject.
>>
>> OwnCloud directory is located in /var/www/html folder and I gave all the
>> permissions for all users using the command chmod 777 -R
>> /var/www/html/owncloud/
>>
>> I also tried to run the bash script, from the following page :
>> https://doc.owncloud.org/server/10.0/go.php?to=admin-dir_permissions
>>
>>
>> Does anyone of you guys have a hint on how to resolve this ?
>>
>> Thank you all.
>>
>>
>>
>>
>> ___
>> User mailing 
>> listUser@owncloud.orghttp://mailman.owncloud.org/mailman/listinfo/user
>>
>>
>>
>> ___
>> User mailing list
>> User@owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/user
>>
>
>
> ___
> User mailing list
> User@owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/user



signature.asc
Description: OpenPGP digital signature
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user

Re: [owncloud-user] Can't write into config directory!

2018-05-17 Thread 450084394239
I would check things like SELinux and similar.



--
Sent from: http://owncloud.10557.n7.nabble.com/Users-f1.html
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user

Re: [owncloud-user] Can't write into config directory!

2018-05-14 Thread Aziz
Hi again and thank you for your feedback.


@Emil, yes I'm using tar file, but I didn't understand the first part of
your answer, "config directory should be somewhere else", do you mean the
config directory shouldn't be in the web server root directory ? I'm using
the following guide as reference :
https://doc.owncloud.org/server/latest/admin_manual/installation/source_installation.html

For the permissions, it's a test environment, so it's fine.


@ Carlos, I got the following error :


*Can't write into config directory! *

*This can usually be fixed by https://doc.owncloud.org/server/10.0/go.php?to=admin-dir_permissions
"
target="_blank" rel="noreferrer">giving the webserver write access to the
config directory.*

Thank you all.


On Mon, May 14, 2018 at 4:16 PM, Carlos Damken  wrote:

> Hi,
>
> You didn't write exactly which is the error you have. The  permits should
> be 0644 for the folder and 0750 for the files (that does the script.
> Best regards
>
> Carlos
> On 14.05.2018 18:02, Aziz wrote:
>
> Hi OC Users,
>
> I'm trying to install OwnCloud in a Centos 7 virtual machine, and got
> stuck in post installation steps with error shown in the subject.
>
> OwnCloud directory is located in /var/www/html folder and I gave all the
> permissions for all users using the command chmod 777 -R
> /var/www/html/owncloud/
>
> I also tried to run the bash script, from the following page :
> https://doc.owncloud.org/server/10.0/go.php?to=admin-dir_permissions
>
>
> Does anyone of you guys have a hint on how to resolve this ?
>
> Thank you all.
>
>
>
>
> ___
> User mailing 
> listUser@owncloud.orghttp://mailman.owncloud.org/mailman/listinfo/user
>
>
>
> ___
> User mailing list
> User@owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/user
>
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user

Re: [owncloud-user] Can't write into config directory!

2018-05-14 Thread Carlos Damken

Hi,

You didn't write exactly which is the error you have. The permits should 
be 0644 for the folder and 0750 for the files (that does the script.


Best regards

Carlos

On 14.05.2018 18:02, Aziz wrote:

Hi OC Users,

I'm trying to install OwnCloud in a Centos 7 virtual machine, and got 
stuck in post installation steps with error shown in the subject.


OwnCloud directory is located in /var/www/html folder and I gave all 
the permissions for all users using the command chmod 777 -R 
/var/www/html/owncloud/


I also tried to run the bash script, from the following page : 
https://doc.owncloud.org/server/10.0/go.php?to=admin-dir_permissions



Does anyone of you guys have a hint on how to resolve this ?

Thank you all.




___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user

Re: [owncloud-user] Can't write into config directory! ownCloud 7 CentOS 7

2014-08-30 Thread Sudhir Khanger
On Friday, August 29, 2014 10:11:37 PM Tornóci László wrote:
 Yes, in Fedora, RHEL, CentOS etc SELinux is in enforcing mode by 
 default. You can switch it into permissive mode by typing as root:
 setenforce 0
 
 In this mode, the errors still show up in /var/log/audit/audit.log, but 
 SELinux will not prevent the operation. By default anything under 
 /var/www gets a SELinux label that allows the apache process to read the 
 files (of course traditional ownership, permission restrictions still 
 apply) but the apache process cannot write anything there. You need to 
 change the SELinux labels of the directory and files you want to be 
 written by apache. (To see the labels use ls -Z) Once there are no more 
 errors in the audit.log, you should switch back to enforcing mode 
 (setenforce 1).
 I think to allow httpd to write a subdir you need to do this as root:
 
 semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/subdir(/.*)?'
 restorecon -R -v /var/www/subdir
 
 but I don't really know SELinux well enough, so no guarantees.
 But SELinux is good for you, so don't just switch it off!
 
 Yours: Laszlo

Thank for the info.

I have set setenforce to 0 and it is working. I am trying the setup in a VM so 
SELinux is not a priority but I should look into it when I move into 
production.

I have more questions.

1. Will the OBS repo install the packages but not set the correct permissions?

2. Are these permissions correct and secure?
   chown -R apache:apache /var/www/html/owncloud/
   chmod 777 /var/www/html/owncloud/config/
   chmod 750 /var/www/html/owncloud/data

3. I am probably responsible for making any changes to Apache config. Is that 
correct? 

-- 
Sudhir Khanger,
http://sudhirkhanger.com
http://github.com/donniezazen
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] Can't write into config directory! ownCloud 7 CentOS 7

2014-08-30 Thread Vincent Petry
Strange. If I remember well, last time I set up ownCloud 6 on CentOS 6.5
(a while ago) it did properly set the SELinux permissions.

It could be a packaging issue with CentOS 7.

On 08/30/2014 08:30 AM, Sudhir Khanger wrote:
 On Friday, August 29, 2014 10:11:37 PM Tornóci László wrote:
 Yes, in Fedora, RHEL, CentOS etc SELinux is in enforcing mode by 
 default. You can switch it into permissive mode by typing as root:
 setenforce 0

 In this mode, the errors still show up in /var/log/audit/audit.log, but 
 SELinux will not prevent the operation. By default anything under 
 /var/www gets a SELinux label that allows the apache process to read the 
 files (of course traditional ownership, permission restrictions still 
 apply) but the apache process cannot write anything there. You need to 
 change the SELinux labels of the directory and files you want to be 
 written by apache. (To see the labels use ls -Z) Once there are no more 
 errors in the audit.log, you should switch back to enforcing mode 
 (setenforce 1).
 I think to allow httpd to write a subdir you need to do this as root:

 semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/subdir(/.*)?'
 restorecon -R -v /var/www/subdir

 but I don't really know SELinux well enough, so no guarantees.
 But SELinux is good for you, so don't just switch it off!

 Yours: Laszlo
 Thank for the info.

 I have set setenforce to 0 and it is working. I am trying the setup in a VM 
 so 
 SELinux is not a priority but I should look into it when I move into 
 production.

 I have more questions.

 1. Will the OBS repo install the packages but not set the correct permissions?

 2. Are these permissions correct and secure?
chown -R apache:apache /var/www/html/owncloud/
chmod 777 /var/www/html/owncloud/config/
chmod 750 /var/www/html/owncloud/data

 3. I am probably responsible for making any changes to Apache config. Is that 
 correct? 


___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] Can't write into config directory! ownCloud 7 CentOS 7

2014-08-30 Thread Sudhir Khanger
On Saturday, August 30, 2014 04:04:31 PM Vincent Petry wrote:
 Strange. If I remember well, last time I set up ownCloud 6 on CentOS 6.5
 (a while ago) it did properly set the SELinux permissions.
 
 It could be a packaging issue with CentOS 7.

I have let the packager know about it in previous thread.

-- 
Sudhir Khanger,
http://sudhirkhanger.com
http://github.com/donniezazen
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] Can't write into config directory! ownCloud 7 CentOS 7

2014-08-29 Thread Randolph Carter
On CentOS, a typical reason for such problems comes from SELinux. I don't use 
CentOS myself so I can't tell you how to configure it correctly but at the 
forums (forum.owncloud.org) you should find some threads on this.

Hope this helps, and best regards,
Randolph

On 29. August 2014 18:58:13 MESZ, Sudhir Khanger sud...@sudhirkhanger.com 
wrote:
On Friday, August 29, 2014 06:11:18 PM Vincent Petry wrote:
 Did you also make the config.php file accessible for the web server
user ?

I chown-ed the owncloud directory to the apache user as follows.

 Directory permissions
 chown -R apache:apache /var/www/html/owncloud/
 chmod 777 /var/www/html/owncloud/config/
 chmod 750 /var/www/html/owncloud/data

That means every file in owncloud directory is now owned by apache user
and I 
also change the permission of /var/www/html/owncloud/config/ to 777.

There is a config.sample.php in /var/www/html/owncloud/config/ which I
haven't 
touched as the manual installation page doesn't mention config.php at
all.

Is that what you are asking?

-- 
Sudhir Khanger,
http://sudhirkhanger.com
http://github.com/donniezazen
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user
___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] Can't write into config directory! ownCloud 7 CentOS 7

2014-08-29 Thread Tornóci László

On 08/29/2014 09:13 PM, Randolph Carter wrote:

On CentOS, a typical reason for such problems comes from SELinux. I
don't use CentOS myself so I can't tell you how to configure it
correctly but at the forums (forum.owncloud.org
http://forum.owncloud.org) you should find some threads on this.

Hope this helps, and best regards,
Randolph


Yes, in Fedora, RHEL, CentOS etc SELinux is in enforcing mode by 
default. You can switch it into permissive mode by typing as root:

setenforce 0

In this mode, the errors still show up in /var/log/audit/audit.log, but 
SELinux will not prevent the operation. By default anything under 
/var/www gets a SELinux label that allows the apache process to read the 
files (of course traditional ownership, permission restrictions still 
apply) but the apache process cannot write anything there. You need to 
change the SELinux labels of the directory and files you want to be 
written by apache. (To see the labels use ls -Z) Once there are no more 
errors in the audit.log, you should switch back to enforcing mode 
(setenforce 1).

I think to allow httpd to write a subdir you need to do this as root:

semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/subdir(/.*)?'
restorecon -R -v /var/www/subdir

but I don't really know SELinux well enough, so no guarantees.
But SELinux is good for you, so don't just switch it off!

Yours: Laszlo



On 29. August 2014 18:58:13 MESZ, Sudhir Khanger
sud...@sudhirkhanger.com wrote:

On Friday, August 29, 2014 06:11:18 PM Vincent Petry wrote:

Did you also make the config.php file accessible for the web
server user ?


I chown-ed the owncloud directory to the apache user as follows.

Directory permissions
chown -R apache:apache /var/www/html/owncloud/
chmod 777 /var/www/html/owncloud/config/
chmod 750 /var/www/html/owncloud/data


That means every file in owncloud directory is now owned by apache user and 
I
also change the permission of /var/www/html/owncloud/config/ to 777.

There is a config.sample.php in /var/www/html/owncloud/config/ which I 
haven't
touched as the manual installation page doesn't mention
config.php at all.

Is that what you are asking?



___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user



___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user


Re: [owncloud-user] Can't write into config directory! ownCloud 7 CentOS 7

2014-08-29 Thread Vincent Petry
Yes, the way you set it up should work.

Not sure why you're still getting the message.

Just saw you're using CentOS, did you also make sure to chcon the
owncloud folder to make it available ? (SELinux)

Cheers,

Vincent

On 08/29/2014 06:58 PM, Sudhir Khanger wrote:
 On Friday, August 29, 2014 06:11:18 PM Vincent Petry wrote:
 Did you also make the config.php file accessible for the web server user ?
 I chown-ed the owncloud directory to the apache user as follows.

 Directory permissions
 chown -R apache:apache /var/www/html/owncloud/
 chmod 777 /var/www/html/owncloud/config/
 chmod 750 /var/www/html/owncloud/data
 That means every file in owncloud directory is now owned by apache user and I 
 also change the permission of /var/www/html/owncloud/config/ to 777.

 There is a config.sample.php in /var/www/html/owncloud/config/ which I 
 haven't 
 touched as the manual installation page doesn't mention config.php at all.

 Is that what you are asking?


___
User mailing list
User@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/user