Solved

Apache www folder permissions Linux

Posted on 2012-12-24
6
474 Views
Last Modified: 2012-12-26
Hi,

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?

THanks
0
Comment
Question by:Jack_son_
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:Sushil Sonawane
Comment Utility
Please refer below link to for default user permission and configuration Apache server.

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch20_:_The_Apache_Web_Server
0
 
LVL 26

Assisted Solution

by:arober11
arober11 earned 500 total points
Comment Utility
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 
</Directory>

Open in new window

0
 

Author Comment

by:Jack_son_
Comment Utility
Great, thanks everyone, now I am getting this error:

Not Found

The requested URL /lorro/index.php was not found on this server.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 26

Assisted Solution

by:arober11
arober11 earned 500 total points
Comment Utility
Does the following file exist?

/var/www/lorro/index.php

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.
0
 

Author Comment

by:Jack_son_
Comment Utility
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.
0
 
LVL 26

Accepted Solution

by:
arober11 earned 500 total points
Comment Utility
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now