• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 548
  • Last Modified:

Apache www folder permissions Linux


I have moved all of my folders over to apache server /var/www , but now it shows permission denied.  What are the right permissions to set to a:  allow for me to edit the files as sudo and b. allow users to use the web app from their browser?

  • 3
  • 2
3 Solutions
Sushil SonawaneCommented:
Please refer below link to for default user permission and configuration Apache server.

Have you got a suitable directory block in you Apache httpd.conf  e.g.

<Directory "/var/www">
   Order Allow,Deny
   Allow From All
   Options Indexes MultiViews 

Open in new window

Jack_son_Author Commented:
Great, thanks everyone, now I am getting this error:

Not Found

The requested URL /lorro/index.php was not found on this server.
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Does the following file exist?


If it does what are the permissions on it and the directory: lorro

What is the DocumentRoot in your httpd.conf, and what php handler have you configured.
Jack_son_Author Commented:
It does exist in this directory.  I also setup a Virtual Host for it as I will have a few url's.  
How do I setup the php handler?

I just updated the permissions and no longer says denied.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now