Page 1 of 1

Setting directory rights permissions

PostPosted: Sat Apr 21, 2012 1:23 pm
by T3X
Howdy to all...
In the documentation i read;

The following folders (and everything in them) should be chmod'ed to '777':

images/
pivotx/templates/
pivotx/db/

Usually you won't have to set the file rights again after upgrading PivotX.


Well that will make a security issue as we know.
First off all i run my own webserver (Apache with PHP and MySQL)under Debian, i use Webmin to administrate...
I have a user called "web" that means he has it's own home dir and mailbox etc.

In the home directory i install Pivotx, then i make from the www directory (the Internet reachable directory) a virtual link to the install directory of Pivotx like;

home/users/web/PivotX/ <<<And here is the pivotx
var/www/html/PivotX <<<This is linked to the home/user/PivotX directory. (as you can see in the image my user web has the html directory in it's home)
Image

Then when i want to reach it i can use http:// mi ip/PivotX or http://mydomain.ug/PivotX and the installer will take off, NOW it's important that the directory user rights are set well before installing,
My user is "web" and he belongs to the group "www-data", www-data has rights to do things witch are related to reading and writing in directory's that are belonging to the internet.
But www-data is also a user, so i set the user rights to chmod -Rt www-data and chgrp -Rt www-data....After that i will start the installation.
So all files will be installed with the right of www-data than afterwords you can set the directory rights for the db directory to a 755 and pivotx will be function ok.

It's maybe helpful but don't know for me it's working, and as i can change all file's in pivot it self and upload image and so there's no problem.
Second is to find out how to set .htaccess.
I will post on that later.

Bye

Re: Setting directory rights permissions

PostPosted: Sat Apr 21, 2012 4:26 pm
by Harm10
T3X wrote:It's maybe helpful but don't know for me it's working, and as i can change all file's in pivot it self and upload image and so there's no problem.
Thanks for your elaborate description. As I don't run my own web server I think others who do will be happy with your post.
What I can say is that if the rights were wrong after your work you would get warnings about that as soon as you start up your dashboard.

Re: Setting directory rights permissions

PostPosted: Sat Apr 21, 2012 5:56 pm
by T3X
that if the rights were wrong after your work you would get warnings about that as soon as you start up your dashboard


Yes i noticed, that is why the user and group settings must be first set right before installing, after that the rights on the directory's could bet set back from 777 to 755.

T3X