
12th August 2011, 21:50
|
|
Junior Member
|
|
Join Date: Oct 2008
Location: Bucharest, Romania
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Change the location of the clients on ISPConfig3
Hello everyone,
I need to change the location of the clients from /var/www to /home, well I've already moved the folders, created symlinks to replace the old ones, changed the settings in the ISPConfig control panel, but the problem I am facing now is to change the default location of the ftp users.
By default ISPConfig creates new ftp users to the /var/www/clients/etc. so I need to change that value in ISPConfig.
I am not sure what other values need to be changed or if any.
If anyone can help me with that that would be perfect.
Thank you all,
Alex.
|

13th August 2011, 11:00
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
Originally Posted by trex
By default ISPConfig creates new ftp users to the /var/www/clients/etc. so I need to change that value in ISPConfig.
|
Doesn't it work with a symlink?
|

13th August 2011, 11:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Quote:
|
I need to change the location of the clients from /var/www to /home, well I've already moved the folders, created symlinks to replace the old ones, changed the settings in the ISPConfig control panel, but the problem I am facing now is to change the default location of the ftp users.
|
You are aware that this will cause suexec to stop working, so that websites scripts can not run anymore under the correct user?
Quote:
|
By default ISPConfig creates new ftp users to the /var/www/clients/etc. so I need to change that value in ISPConfig.
|
Make sure that you cahnged the paths in ISPConfig under System > server settings > web
|

13th August 2011, 15:01
|
|
Junior Member
|
|
Join Date: Oct 2008
Location: Bucharest, Romania
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
|
|
@Falko
Yes a symlink worked for the web part. I was referring to something else (I will detail below).
@till
I was unaware that that will screw up suexec (that is way I asked what else do I need to change to make everything work).
By default ISPConfig creates new ftp users to the /var/www/clients/etc. folder I would like to change that default value displayed in ISPConfig to /home/clients/etc. so I dont have to edit it every time I created a new user.
Can I make all these modifications and still have a valid working server or should I just remake the whole server and have my /var/ on a larger disk.
I wanted to have all the clients on a larger disk independent of the main disk. But now I'm not sure I can do that without messing up ISPConfig or some parts of it.
So I am asking for your advice on what will be the best practice for this. (I intend on using this to start a micro-hosting company, as I dont have the necessary funds to buy a corporate solution, besides I dont like corporate solutions, I find ISPConfig to be more elegant in many ways than other corporate solutions.)
I am at the beginning of this long journey and I am sure that there are alot of things I am doing wrong, but I can learn by asking seasoned experts like your self's that know exactly what should or shouldn't be done.
I want to thank you all for your replies and for your future assistance.
And sorry I posted my thread in the wrong section.
Cheers,
Alex.
|

13th August 2011, 23:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Quote:
|
I was unaware that that will screw up suexec (that is way I asked what else do I need to change to make everything work).
|
The suexec path is compiled into apache, so you cant change that. The only option is to compile your own apache with a different suexec path. But then you loose the ability to update your whole system from the Linux repositories.
Quote:
|
By default ISPConfig creates new ftp users to the /var/www/clients/etc. folder I would like to change that default value displayed in ISPConfig to /home/clients/etc. so I dont have to edit it every time I created a new user.
|
I explained in post #3 where this can be configured. But I wont do that if I were you, as you would have to recompile apache then too.
My recommendation is to reinstall the server so that it has a large /var partition as /var contains the website, mysql and email data on Linux servers. Large /home partitions are only needed on desktop systems, on web servers, the /home partition is normally empty.
|

14th August 2011, 00:04
|
|
Junior Member
|
|
Join Date: Oct 2008
Location: Bucharest, Romania
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
|
|
ok till, thank you very much for your answer since this is my only option without making anymore damage  I'll re-do the whole system.
Thanks,
Alex.
|
|
The Following User Says Thank You to trex For This Useful Post:
|
|

14th August 2011, 18:04
|
|
Senior Member
|
|
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 33 Times in 27 Posts
|
|
In my setup, /var/www is a symlink to /dataraid/www
This ensure suexec is working? how can I check? does it have any complication to work like this?
|

15th August 2011, 13:28
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Select fastcgi as php mode in a website and enable the suexec checkbox. Then add a file test.php into that site with this content:
<?php
touch('newfile.txt');
?>
Open test.php in the browser, this should create a new file "newfile.txt" in the same directory. If this file is owned by the web user and client group of this website, then suexec works. If the file is owned by www-data or a similar apache user, then suexec does not work as expected.
|
|
The Following 2 Users Say Thank You to till For This Useful Post:
|
|

15th August 2011, 19:22
|
|
Senior Member
|
|
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 33 Times in 27 Posts
|
|
Working perfectly, is was created owned by webx:groupx. So, with this test, it is possible to move folders around and just make a symlink /var/www to ensure suexec will continue working...
I tried too create the file using a diferente path than /var/www, and it worked ok too.
<?php
touch('/dataraid/www/mydomain.tld/web/newfile.txt');
?>
With this test, should be possible to move everything to eveywhere, creating a symlink should be enough to keep suexec working... any more tests to do?
Thanks Till!
|

27th September 2012, 12:17
|
|
Senior Member
|
|
Join Date: Sep 2012
Posts: 107
Thanks: 0
Thanked 8 Times in 4 Posts
|
|
Alright, thanks for sharing that information. That answers part of my questions I had.
|
| 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:57.
|
Recent comments
20 hours 33 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 3 hours ago
1 day 5 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 13 hours ago
2 days 2 hours ago
2 days 3 hours ago