Linked Questions

1
vote
2answers
2k views

Should apache have write access to the web root? [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? I'm trying to get a canonical answer on how to set up permissions for apache vis-a-vis the web root (/var/www). ...
1
vote
1answer
2k views

Permission error when folder permission is 755 [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? When I trying upload file with PHP to a folder that folder should have 777 permission, but this is a security risk, ...
0
votes
1answer
1k views

Problem with file owner/group [duplicate]

I have files on my website which I need access to files on my server and they also need to be able to be edited by the webserver. Now with my current setup I cant seem to do that. If the owner/group ...
-2
votes
2answers
2k views

Apache unable to write on 2777 folder [duplicate]

I am using smarty template system on my website. When it tries to cache some data, a fatal error occurs: Fatal error: Smarty error: unable to write to $compile_dir '/var/www/html/cache/frontend'. Be ...
0
votes
1answer
894 views

How to add write permissions to php/apache? [duplicate]

I've got the following scenario: There's a folder named "uploads". It's owned by "root" and it's group is "webmasters". Permissions are set to 755. drwxrwsr-x 2 root webmasters 4096 Mar 20 22:49 ...
0
votes
1answer
645 views

Allow WordPress to Update on Local Apache2 Install [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? I'm having an issue that I can't seem to find an answer for, i've already scoured Google & SF and haven't found ...
0
votes
2answers
1k views

Permissions, owner, group inheritance? [duplicate]

I don't understand restrictions in terms of directories nesting. For example, /var/www/folder/index.html directories. What permissions, owner, group should every directory and file have? Is there such ...
1
vote
2answers
311 views

Wordpress Directory Permission to allow uploads, plugin folders, etc [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? I have a wordpress pre-made site which were developed on my localmachine, and i uploaded it too a vps running on ...
0
votes
1answer
430 views

Understanding Linux Permissions - Apache with user “apache” [duplicate]

I'm with some problems understanding the Linux Permissions, users/groups. I'm running a PHP Web Application with Apache. The user running Apache is the linux user "apache". The folder with the PHP ...
1
vote
1answer
471 views

How to organize web server directories on Linux? [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? I'm searching for an easy way to organize web server directories on Linux. Users can use FTP to upload their web ...
0
votes
3answers
210 views

Giving permission 777 to folders/files Cons? [duplicate]

I am trying to understand how giving 777 permission to folders or files works. I did some research and understand that 777 permission is not the best when it comes for security. Referring to Web ...
-2
votes
1answer
423 views

Setup web folder for multiple developers and Apache [duplicate]

I'm trying to setup a web folder on LAMP with Ubuntu 14.04 where : Apache/PHP can read everything inside. (r-x for folders and r-- for files) Multiple users in a "devs" group can do anything inside. (...
0
votes
1answer
414 views

Change permission for home directory on debian [duplicate]

My Debian machine is running DirectAdmin and we have build our own CMS. By now, when we create a new website a new folder and user will created down the /home/ directory. As an developer to setup ...
-2
votes
1answer
323 views

setup apache www directory for multiple users over sftp [duplicate]

I have standard Ubuntu 16.04 droplet over digitalocean with LAMP stack. By default I have one user with root privileges (for admin use). I access any directory from root through ssh like with ...
-1
votes
2answers
237 views

Risks to have 777 on uploads directory [duplicate]

I have set the permission on my uploads directory(in which end user can upload their documents) to 777. I understand this is not a good idea, but the files wont get uploaded with any other permission....
0
votes
1answer
32 views

Is there any security issue when I set `apache` as the only owner of websites files and folders? [duplicate]

My server is centos 7,with php 5.4,apache 2.4. My website locate in /var/www. As for apache is the only one user read or write in /var/www,I set all files and folders owner and group to apache: ...
-1
votes
1answer
72 views

Unable to set proper permission in my centOs6 [duplicate]

I am trying to setup WordPress on CentOs6 for the first time and facing issue with proper file permission. I am using Linode VPS hosting and have chosen centOS6 as my OS.I am able to install WordPress ...
0
votes
1answer
90 views

Ubuntu 12.04: Apache2 symlink to Windows Drive [duplicate]

I have Ubuntu 12.04 and Windows 7 on the same machine. <VirtualHost *:80> ServerAdmin admin@example.org #ServerName example.org #ServerAlias www.example.org DocumentRoot /...
-4
votes
1answer
113 views

What are the proper chown settings for images? [duplicate]

I am testing a piece of software that is working except for some SVG images that are not showing. When I preview them using Firebug in Firefox, it says "Failed to load the given URL," however, when I ...
0
votes
3answers
97 views

Permissions on directories for file uploads? [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? What is the correct way to set up directories to allow user uploads on Linux? My websites upload dir is 755, but ...
0
votes
1answer
56 views

cannot write to certain directory using CentOS distro [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? I have a script that will generate an image then upload it in a certain directory. The script works fine, however ...
0
votes
1answer
50 views

User permissions on web server [duplicate]

Possible Duplicate: What are the best linux permissions to use for my website? I have allot of users which install joomla, wordpress, drupal and other CMS things on their websites ( linux server)...
0
votes
1answer
48 views

What account should own the files on a shared ubuntu webserver? [duplicate]

I have multiple users with FTP access to my ubuntu server, each running their own website. Apache is running as default after installed through apt-get. I believe www-data is the apache user. If the ...
0
votes
1answer
40 views

How to choose the right permission access for /var/www/* folders? [duplicate]

I'm trying to configure my web server from scratch and since this is my first time doing everything on my own, I'm unsure what kind of permissions I need to set for each site I have in /var/www. As ...
1
vote
0answers
18 views

How to give Apache permission to write and execute in /usr/local/<apps> [duplicate]

I need some opinion here. What is the best method to give apache permission to create folder inside my /usr/local/ ? Currently i'm doing apps that need the apache to create folder for each user ...
1
vote
0answers
14 views

Is it safe to create symlink under /var/www/ which points to my home directory? [duplicate]

I am using local Ubuntu server with Apache 2.4. I am running as a default user Ubuntu and each time I need to change something under /var/www/ I have to use sudo to avoid permission denied messages. ...
212
votes
4answers
159k views

What's the best way of handling permissions for Apache 2's user www-data in /var/www?

Has anyone got a nice solution for handling files in /var/www? We're running Name Based Virtual Hosts and the Apache 2 user is www-data. We've got two regular users & root. So when messing with ...
65
votes
7answers
128k views

How to setup linux permissions for the WWW folder?

Updated Summary The /var/www directory is owned by root:root which means that no one can use it and it's entirely useless. Since we all want a web server that actually works (and no-one should be ...
14
votes
2answers
38k views

Best permissions/ownership for apache document root

I need some help setting the correct permissions or ownership of the apache document root. Here is what I need: different websites stored in /var/www/html/<site> two users should update/manage ...
1
vote
2answers
14k views

AWS ec2-user permission denied [closed]

I have my Apache HTTP server on Amazon Linux AMI. I am trying to install a Prestashop on my root directory subfolder as an ec2-user via SSH. cd /var/www/html but when I tried to create a directory ...

15 30 50 per page