[CentOS] Help with httpd userdir recovery

Wed Dec 28 13:20:40 UTC 2016
Robert Moskowitz <rgm at htt-consult.com>


On 12/28/2016 07:35 AM, Louis Lagendijk wrote:
> Robert,
> On Wed, 2016-12-28 at 01:43 +0100, John Fawcett wrote:
>> On 12/28/2016 01:12 AM, Robert Moskowitz wrote:
>>>
>>> On 12/27/2016 07:06 PM, John Fawcett wrote:
>>>> On 12/28/2016 12:34 AM, Robert Moskowitz wrote:
>>>>> On 12/27/2016 05:44 PM, John Fawcett wrote:
>>>>>> That error should be caused by having MultiViews options but
>>>>>> incorrect
>>>>>> permissions (711 instead of 755) on the directory.
>>>>> I just did chmod -R 755 /home/rgm/public_html and no change in
>>>>> behavior.
>>>>>
>>>>> Even tried chmod -R 755 /home/rgm
>>>> Are you actually using MultiViews? If you don't need that option,
>>>> maybe
>>>> the easiest thing is to take it out and see if the error message
>>>> changes.
>>> I am using the default conf file for userdir.
>>>
>>> /etc/httpd/conf.d/userdir.conf
>>>
>>> So I deleted Multiviews and now the error is:
>>>
>>> [Tue Dec 27 19:09:31.013176 2016] [autoindex:error] [pid 2138]
>>> (13)Permission denied: [client 192.168.160.12:55762] AH01275: Can't
>>> open directory for index: /home/rgm/public_html/family/
>>>
>>>
>>> ____
>> I know this is not going to help, but that error means that apache
>> does
>> not have access to read the directory /home/rgm/public_html/family/.
>> That doesn't really fit with the rest of the evidence, that you have
>> chmod 755 everything from /home/rgm/public_html downwards and that
>> apache can read specific files from /home/rgm/public_html.
>> John
> but is apache allowed access to /home/rgm ?
> Try su - apache -s /bin/bash to run a shell as apache and see how far
> you get starting from cd /home and if that works cd /home/rgm and so
> on... That will check normal user permissions, but not selinux

Command apache not known!

All I installed, directly, for the web server was 'yum install httpd'.