Setting directory rights permissions

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

Setting directory rights permissions

Postby T3X » Sat Apr 21, 2012 1:23 pm

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
What can't be done tomorrow has to be done today.
http://inet.hyper-art.nl
T3X
 
Posts: 7
Joined: Fri Apr 20, 2012 9:56 am
Location: Vlissingen, Netherlands

Re: Setting directory rights permissions

Postby Harm10 » Sat Apr 21, 2012 4:26 pm

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.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Setting directory rights permissions

Postby T3X » Sat Apr 21, 2012 5:56 pm

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
What can't be done tomorrow has to be done today.
http://inet.hyper-art.nl
T3X
 
Posts: 7
Joined: Fri Apr 20, 2012 9:56 am
Location: Vlissingen, Netherlands


Return to 2.x Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron