Plesk

Impossible to rename a domain: Unable to rename home of sysuser

Symptoms

Cause

The domain user johndoe is used by PHP-FPM processes

Resolution

Apply the following steps:

  1. Connect to the server via SSH;
  2. Change the PHP handler for the domain example.com in Home > Domains > example.com > PHP Settings to any non-FPM;
  3. Check if there are processes running for user johndoe:  

    # ps auxx | grep johndoe
    johndoe   21332  3.0  0.0 513636 16416 ?        S    01:22  0:00 php-fpm: pool example.com
    johndoe   21334  2.5  0.0 513504 15400 ?        S    01:22  0:00 php-fpm: pool example.com
    johndoe   21341  4.0  0.0 513504 15348 ?        S    01:22  0:00 php-fpm: pool example.com
    root     21347  0.0  0.0 112660  972 pts/0    S+  01:22  0:00 grep --color=auto club

  4. Kill such processes:

    # kill 21332 21334 21341

  5. Rename the domain;

  6. Set PHP handler for the domain example.com to PHP FPM server by nginx in Home > Domains > example.com > PHP Settings.