Apache www folder permissions Linux

Jack_son_
Jack_son_ used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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
Top Expert 2010
Commented:
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

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.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Top Expert 2010
Commented:
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.

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.
Top Expert 2010
Commented:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial