403 Forbidden You don't have permission to access /folder-name/ on this server

前端 未结 5 1278
再見小時候
再見小時候 2020-12-23 15:09

I was looking for an answer to my problem, but I could\'nt find any answer which solves my case.

The problem is that I can\'t access the app folders in my var/www/ f

5条回答
  •  眼角桃花
    2020-12-23 15:43

    Solved issue using below steps :

    1) edit file "/etc/apache2/sites-enabled/000-default.conf"

        DocumentRoot "dir_name"
    
        ServerName 
    
        
           Options Indexes FollowSymLinks
           AllowOverride None
           Require all granted
        
    
        
           AllowOverride None
           # Allow open access:
           Require all granted
    

    2) change folder permission sudo chmod -R 777 "dir_name"

提交回复
热议问题