[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 539
  • Last Modified:

Apache www folder permissions Linux

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
Jack_son_
Asked:
Jack_son_
  • 3
  • 2
3 Solutions
 
Sushil SonawaneCommented:
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
 
arober11Commented:
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
 
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.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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