Owncloud permission help

selinux

#1

Hi all

I have just setup owncloud on my centos server but i am having an issue writing to the directory. I have pasted the current permissions on the /owncloud directory below. Would appreciate any help on what i am doing wrong here.

drwxr-xr-x. 29 root   apache  4096 Aug  9 22:19 3rdparty
drwxrwxr-x. 27 apache apache  4096 Aug  9 22:19 apps
-rw-r--r--.  1 root   apache  8301 Jul 20 10:15 AUTHORS
drwxrwxr-x.  2 apache apache    85 Aug  9 22:19 config
-rw-r--r--.  1 root   apache  3805 Jul 20 10:15 console.php
-rw-r--r--.  1 root   apache 34520 Jul 20 10:15 COPYING-AGPL
drwxr-xr-x. 17 root   apache  4096 Aug  9 22:19 core
-rw-r--r--.  1 root   apache  5032 Jul 20 10:15 cron.php
drwxrwxr-x.  2 apache apache    25 Aug  9 22:22 data
-rw-r--r--.  1 root   apache 35830 Jul 20 10:15 db_structure.xml
drwxr-xr-x.  2 root   apache     6 Jul 20 16:23 etc
-rw-r--r--.  1 root   apache   179 Jul 20 10:15 index.html
-rw-r--r--.  1 root   apache  2282 Jul 20 10:15 index.php
drwxr-xr-x.  3 root   apache    63 Aug  9 22:19 l10n
drwxr-xr-x.  6 root   apache    95 Aug  9 22:19 lib
-rwxr-xr-x.  1 apache apache   283 Jul 20 10:15 occ
drwxr-xr-x.  2 root   apache    69 Aug  9 22:19 ocs
drwxr-xr-x.  2 root   apache    22 Aug  9 22:19 ocs-provider
-rw-r--r--.  1 root   apache  3086 Jul 20 10:15 public.php
-rw-r--r--.  1 root   apache  5428 Jul 20 10:15 remote.php
drwxr-xr-x.  4 root   apache    37 Aug  9 22:19 resources
-rw-r--r--.  1 root   apache    26 Jul 20 10:15 robots.txt
drwxr-xr-x. 12 root   apache  4096 Aug  9 22:19 settings
-rw-r--r--.  1 root   apache  1893 Jul 20 10:15 status.php
drwxr-xr-x.  3 root   apache    33 Aug  9 22:19 themes
drwxr-xr-x.  7 root   apache  4096 Aug  9 22:19 updater
-rw-r--r--.  1 root   apache   234 Jul 20 10:15 version.php

Thanks again


#2

Is your .htaccess writeable by apache? Also check your SELinux-settings.


#3

Please post ls output with the -Z option so we can see the selinux labels. Also the output of the 'getenforce' command. Thanks