R
redblue
Guest
I have been getting disk quota problems (user reported unable to upload due to quota limitation) with a webuser after changing his default directory from http://hostname/~user to simply http://hostname/user. I tried changing the disk quota setting in Plesk but it didn't work. I have done the following as told by Plesk support for changing user directory:
Change FTP access:
1) change entry in /etc/passwd from kelvin:x:10002:10001::/../httpdocs/webusers/kelvin:/bin/false to kelvin:x:10002:10001::/../httpdocs/kc:/bin/false
2) allow permissions to read/write from new directory with chown -R kelvinsaserv /../httpdocs/kc
Change Apahce user table:
1) mysql>update sys_users set home="/../httpdocs/kc" where login="kelvin";
2) apply the changes with the "websrvmng" utility:
---
(to recreate apacheconfigs acoding to teh database)
#/usr/local/psa/admin/sbin/websrvmng -a -v
(to restart client apache)
#/usr/local/psa/admin/sbin/websrvmng -r
What else do I have to do in order to enable disk quota changes?
Thanks!
Change FTP access:
1) change entry in /etc/passwd from kelvin:x:10002:10001::/../httpdocs/webusers/kelvin:/bin/false to kelvin:x:10002:10001::/../httpdocs/kc:/bin/false
2) allow permissions to read/write from new directory with chown -R kelvinsaserv /../httpdocs/kc
Change Apahce user table:
1) mysql>update sys_users set home="/../httpdocs/kc" where login="kelvin";
2) apply the changes with the "websrvmng" utility:
---
(to recreate apacheconfigs acoding to teh database)
#/usr/local/psa/admin/sbin/websrvmng -a -v
(to restart client apache)
#/usr/local/psa/admin/sbin/websrvmng -r
What else do I have to do in order to enable disk quota changes?
Thanks!