If this happens, you may see something like “Could not open the requested SVN filesystem” on the browser and “(20014)Internal error: Can’t open file ‘/repos/svn/repo16/format’: Permission denied” in apache error_log.
When you feel puzzled why with seemingly correct permission settings in place, but it still does not work, you could try this:
# getenforce <– this shows you the status of SELinux. If you see “Enforcing”, then SELinux is on.
# setenforce Permissive <– this changes it to Permissive, which is like turning SELinux off.
The try again to see if it works. If it becomes ok, then you have to change the SELinux policy.
If proved to be the restriction by SELinux, then you could do the following:
- chcon -Rv -t httpd_sys_content_t /repos/svn/repo16
- chcon -v t httpd_sys_content_t /repos
- chcon -v t httpd_sys_content_t /repos/svn
- semanage fcontext -a -t httpd_sys_content_t “/repos(.*)?”