Cannot create subscriptions "Cannot chdir to /var/www/vhosts System error 2: No such file or directory ".

Created:

2016-11-16 13:04:24 UTC

Modified:

2017-04-24 11:13:20 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot create subscriptions "Cannot chdir to /var/www/vhosts System error 2: No such file or directory ".

Applicable to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Cannot create subscriptions in Plesk with following error:

Error: Unable to execute usermng: usermng: get_device: Cannot chdir to /var/www/vhosts System error 2: No such file or directory

In logs following error could be found:

usermng: get_device: Cannot chdir to /var/www/vhosts 
System error 2: No such file or directory

Cause

Incorrect virtual host path in Plesk configuration.There is extra space after directory path in /etc/psa/psa.conf :

"/var/www/vhosts " 
instead of
"/var/www/vhosts"

Resolution

Correct Plesk configuration, you could use following command:

[root@dbard ~]# sed ':a;N;$!ba;s/ \

/\/g' /etc/psa/psa.conf >> /etc/psa/psa.conf

Have more questions? Submit a request
Please sign in to leave a comment.