I can't for the life of me figure out how to design my permissions scheme for my apache files.
We have an Apache server which serves out of a particular directory, and just supplies a listing of files. From this directory, each subdirectory is owned by a certain group of users (at the filesystem level).
Published at LXer:
Permissions are important for keeping your data safe and secure. Utilizing permission settings in Linux can benefit you and those you want to give access to your files and you dont need to open up everything just to share one file or directory (something Windows sharing often does).
I am having a go at setting up my own Apache and can't seem to get my head around the permissions.
Lets say I grab a file from somewhere off the web and it has permission of 600.
I then upload this file via ftp to a user directory, which is also an apache virtual site, and so this file retains this permission of 600.
Hi,I have been learning a lot about Linux of the years, now i'm getting deeper into setting up Apache, PHP, MySQL, FTP, file/folder permissions, groups.I have been sett... [by TheGlenn88]
I setup a new Linux server running Apache then transferred my web server files. When I try to pull up my site in a browser like this http://mysite.com/index.php I get a "403 Forbidden" error.
Looking at the permission on index.php it seems like everything is ok.
-rw-rw-r-- 1 root allweb 4583 Oct 24 15:52 index.php
Everyone has "read" access. Isn't that all they should need?
After installing PHP, Apache's httpd.conf file is having trouble with "line 53" when starting the Apache service.
If I comment out this line I get no errors and Apache configtest passes. Line 53 is the module for PHP. There is a matching .so file in that location. The httpd.conf line seems ok.
LoadModule php4_module libexec/httpd/libphp4.so
Hello, i followed the wiki to set up LAMP but i'm having a problem... Apache cant access to my files in ~/public_html, althought my home folder and public_html folder have 755 permissions./etc/httpd/conf/httpd.conf#
# This is the main Apache HTTP server configuration file.
In my Linux box I have two directories:
work files with wrong permissions
older versions of the same files with the right permissions (permissions and users and groups)
I need to syncronize the permissions only without changing the file contents. I tried rsync but I can't find a suitable option. Can you give me some advice?
Thanks in advance.