Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Apache www folder permissions Linux

Posted on 2012-12-24
6
Medium Priority
?
526 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:Sushil Sonawane
ID: 38718447
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 2000 total points
ID: 38718480
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_
ID: 38718505
Great, thanks everyone, now I am getting this error:

Not Found

The requested URL /lorro/index.php was not found on this server.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 26

Assisted Solution

by:arober11
arober11 earned 2000 total points
ID: 38718539
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_
ID: 38718575
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 2000 total points
ID: 38718583
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses

636 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