Server unable to read htaccess file, denying access to be safe

前端 未结 14 2842
情深已故
情深已故 2020-12-12 20:15

I have created a simple app using AngularJS. When I tried to host that project in my website http://demo.gaurabdahal.com/recipefinder it shows the following error:

14条回答
  •  一生所求
    2020-12-12 20:41

    You need to run these commands in /var/www/html/ or any other directory that your project is on:

    sudo chgrp -R GROUP ./
    sudo chown -R USER:GROUP ./
    find ./ -type d -exec chmod 755 -R {} \;
    find ./ -type f -exec chmod 644 {} \;
    

    In my case (apache web server) I use www-data for USER and GROUP

提交回复
热议问题