June 14, 2011

PleskFatalException out of webspace in Webspace.php

Plesk | Comments (0) admin @ 1:33 pm

Spent a few hours debugging this error and it seems transvhosts.pl breaks some things when trying to change the vhosts directory.

Some things you need to check:

check /etc/psa/psa.conf  for HTTPD_VHOSTS_D and make sure the path doesn’t contain a trailing slash.

check the hosting,smb_apsProvisionEnvironments,subdomains, sys_users tables in the psa database and make sure the home field points to the right path.

You can use the mysql REPLACE function if not:

update sys_users set home=REPLACE(home,”OLD_PATH”,”NEW_PATH”);

Check that the domain has an entry in the hosting table.

Check that the home field in the sys_users table points to the same path as in the hosting table.
This ended up fixing it for me, in sys_users I had /www/vhosts/domain.com and in hosting /www/vhosts/ANOTHERdomain.com/something