domain.tld was renamed to
mydomain.tld. Now an access to Websites & Domains fails with the following error:
The error Internal error: /var/www/vhosts/domain.tld/httpdocs is out of webspace
Database inconsistency: home directory was already renamed to the new one ( /var/www/vhosts/mydomain.tld/httpdocs ) but it was not reflected in the database.
mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` psa > /tmp/psa.`date +%F_%H.%M`.sql
mysql> set @dom_name:= 'mydomain.tld'; mysql> select * from hosting where dom_id = (select id from domains where name = @dom_name)\G
Update database and reconfigure domain:
mysql> update hosting set www_root = '/var/www/vhosts/mydomain.tld/httpdocs' where dom_id = (select id from domains where name = @dom_name); # /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mydomain.tld