Elxis CMS Forum

Support => General => Topic started by: jesusto on December 28, 2013, 19:43:47

Title: Permissions for files and folders?
Post by: jesusto on December 28, 2013, 19:43:47
Hi,

Whitch is the best configuration of permissions for files and folders in an elxis 4.1 installation with iosr?

Thanks a lot
Title: Re: Permissions for files and folders?
Post by: datahell on December 28, 2013, 20:24:18
We have so many times analysed this subject. Permissions are strongly related to the owner of the files, there are no global perfect values. Each server/site is a special case. A loose recommendation is the following:

Files: 644
Folders: 755
Writeable files: 644 or 666 (depends on your php setup)
Writeable folders: 755 or 777 (depends on your php setup)

Off course other permissions may apply to strengthen security like 600 or even 400 on files but NEVER set such permissions unless you know very well what they mean. There is a lot of documentation for Linux servers on this subject on the internet like this (http://www.linux.org/threads/file-permissions-chmod.4094/).
Title: Re: Permissions for files and folders?
Post by: jesusto on December 28, 2013, 23:57:53
Thanks Datahell,

Could you please list the files and folders that must be writable for both elxis cms and iosr, please?

Thanks a lot in advance
Title: Re: Permissions for files and folders?
Post by: datahell on December 29, 2013, 19:49:55
The answer is too obvious, just see the Elxis filesystem and you will understand.

If you want to upload an article image make sure folder media/images/articles/ to be writeable.
All Elxis images are under media/images/ folder.

 If you want to upload a hotel image make sure folder
components/com_reservations/gallery/s1/hotels/ to be writeable.
All IOSR images are under components/com_reservations/gallery/s1/ folder ("s2" for the second multi-site, "s3" for the third, etc..).

All modules are located in folder modules/
All templates are located in folder templates/
etc...

More on Elxis file-system structure (https://www.elxis.net/docs/using-elxis/getting-started/filesystem-structure.html).