
22nd May 2012, 13:38
|
|
Junior Member
|
|
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Owner of files
Hello,
I would like to change owner of .php files of all websites to only one owner to be able to access all websites throught one FTP connection and be able to update files throught subversion. But when I change userID, I get 403 Forbidden error.
How can I disable this check of userID? I understand, that this is because of security reason, but I use VPS just for personal purpose and this complicates my work.
Thanks
|

22nd May 2012, 14:46
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
|
|
The setup you want to use is not supported by ispconfig as its unsecure. If you want to use it anway, you will have to change the ispconfig sources.
|

22nd May 2012, 15:33
|
|
Junior Member
|
|
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you for answer. Can you please direct me where should I look for?
|

24th May 2012, 13:51
|
|
Junior Member
|
|
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
And I don't think that this is a restricton of ISPconfig, but some restriction of apache/php, isn't it?
|

24th May 2012, 14:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
|
|
The restriction is not from ispconfig. but it gets applied as you uploaded data with a different user then the one that is configured for this vhost and this user is set and configured by ispconfig.
In a ispconfig setup, every website has its own user. If you wnat all sites to run under the same user, you will have to modify the ispconfig code so that ispconfig uses the user ww-data or whatever you want to use as user for all sites. the user of the site is set in the file /usr/local/ispconfig/interface/plugins/sites_web_domain_plugin.inc.php. The interesting lines are:
$system_user = $app->db->quote('web'.$page_form->id);
$system_group = $app->db->quote('client'.$client_id);
change it to something like:
$system_user = 'www-data';
$system_group = 'www-data';
The user and group name might differ for different linux distributions.
|

24th May 2012, 16:05
|
|
Junior Member
|
|
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for answer.
Can you please explain me, what this fix will exactly do? So far I understand, it will only update rows in DB and will have no affect to apache or files. I'm just trying to understand, how this works.
|

24th May 2012, 16:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
|
|
This code sets the user when a new site is created.
|

24th May 2012, 16:51
|
|
Junior Member
|
|
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok. And how to change user of existing sites?
|

24th May 2012, 17:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
|
|
You cant change the owner of existing sites without editing a lot of database records and severalconfig files manually. Better delete the sites and recreate them.
Please be aware that the modifications that you plan make your system incompatible with future ispconfig updates, so you can not install any updates without breaking your server.
|

24th May 2012, 17:59
|
|
Junior Member
|
|
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you till for your answers, I will try it.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 22:19.
|
Recent comments
13 hours 8 min ago
22 hours 35 min ago
23 hours 25 min ago
1 day 2 hours ago
1 day 7 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 19 hours ago
2 days 54 min ago
2 days 2 hours ago