Permission denied: /var/www/abc/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable?

后端 未结 4 635
滥情空心
滥情空心 2020-12-04 14:37

Hi all I\'m using PHP for my website and ubuntu linux on my system. I got the above error in error.log file of apache, even after configurating everything properly. I did a

4条回答
  •  伪装坚强ぢ
    2020-12-04 15:04

    Make sure that the htaccess file is readable by apache:

    chmod 644 /var/www/abc/.htaccess 
    

    And make sure the directory it's in is readable and executable:

    chmod 755 /var/www/abc/
    

提交回复
热议问题