[Arm-dev] Problems with apache

Robert Moskowitz rgm at htt-consult.com
Wed Dec 23 17:40:24 UTC 2015


I am trying to enable user_dir.  It works on my production server, but I 
can't get this working.

So I fix up userdir.conf file as specified (removing 'user_dir 
disabled', and uncommenting the other line).

I have all permissions right:

# ls -ls /home/
total 4
4 drwx--x--x. 4 rgm rgm 4096 Dec 23 11:01 rgm
[root at medon conf.d]# ls -ls /home/rgm/
total 8
4 drwxrwxr-x.  2 rgm rgm 4096 Dec 23 11:01 mnt
4 drwxrwxr-x. 15 rgm rgm 4096 Dec 23 11:29 public_html
[root at medon conf.d]# ls -ls /home/rgm/public_html/
total 64
  4 drwxrwxr-x. 2 rgm rgm  4096 Aug 28  2014 Harpsichord
  4 drwxrwxr-x. 2 rgm rgm  4096 Aug 28  2014 IIG
12 drwxrwxr-x. 2 rgm rgm 12288 Dec 21 09:44 biby
  4 drwxrwxr-x. 2 rgm rgm  4096 Jan  1  2010 cubieboard
  4 drwxrwxr-x. 4 rgm rgm  4096 Aug 28  2014 family
  4 drwxrwxr-x. 2 rgm rgm  4096 Aug 29  2014 help
  4 drwxrwxr-x. 3 rgm rgm  4096 Aug 28  2014 hip
  4 drwxrwxr-x. 2 rgm rgm  4096 Dec  4  2012 icsalabs
  4 drwxrwxr-x. 2 rgm rgm  4096 Aug 29  2014 ieee
  4 drwxrwxr-x. 2 rgm rgm  4096 Aug 29  2014 ietf
  4 -rw-rw-r--. 1 rgm rgm    12 Jan 21  2013 index.html
  4 drwxrwxr-x. 2 rgm rgm  4096 Aug 28  2014 pogo
  4 drwxrwxr-x. 2 rgm rgm  4096 Dec 14 17:40 redsleeve
  4 drwxrwxr-x. 2 rgm rgm  4096 Jan  8  2010 speaking

I have no other customization in /etc/httpd/conf.d/

http://192.168.160.4/~rgm works.  index.html contains one line:

Hello World

and this displays.  I have this index.html to stop robots and people 
from walking my private directory tree.

But

http://192.168.160.4/~rgm/biby fails.  on 
medon.htt-consult.com/~rgm/biby (try it yourself), it produces a list of 
files.  On the centos-arm server I see in /var/log/httpd/error_log:

[Wed Dec 23 12:32:49.359323 2015] [negotiation:error] [pid 3208] 
(13)Permission denied: [client 192.168.160.20:38708] AH00686: cannot 
read directory for multi: /home/rgm/public_html/biby/

But the permissions are right.  I see the autoindex.conf file, which is 
new with Centos7 (did not have it on Centos6), and I mv that file and 
restarted httpd, and still the error.

Any ideas what to do?




More information about the Arm-dev mailing list