• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Change of Webuser's default directory

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 kelvin:psaserv /../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!
 
Back
Top