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
<[email protected]> 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
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user