Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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/ folder. When I go to localhost/ i get the message that my server is running and I have access to phpmyadmin too. But when I go to any localhost/folder-name i get the 403 error:

Forbidden

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

Apache/2.2.22 (Ubuntu) Server at localhost Port 80

How can I solve it? Btw I'm using Ubuntu 13.04, and thanks for your answers. :)

like image 920
ssuljic Avatar asked Sep 22 '13 21:09

ssuljic


People also ask

Why does it keep saying 403 forbidden?

The 403 Forbidden Error happens when the web page (or another resource) that you're trying to open in your web browser is a resource that you're not allowed to access. It's called a 403 error because that's the HTTP status code that the webserver uses to describe that kind of error.


1 Answers

Solved the problem with:

sudo chown -R $USER:$USER /var/www/folder-name

sudo chmod -R 755 /var/www

Grant permissions

like image 185
ssuljic Avatar answered Sep 25 '22 00:09

ssuljic