Alias Domains: wrong document root and open_basedir
Alias domains have wrong document roots and open_basedirs in the database. They always belong to client0 (e.g. /var/www/clients/client0/web39), although the alias domain belongs to another client. The problem seems to be in lib/plugins/sites_web_domain_plugin.inc.php.
$page_form->dataRecord has no element "client_group_id", that's why the client Id is always 0:
Array ( [domain] => er.de [parent_domain_id] => 7 [redirect_type] => [redirect_path] => [subdomain] => www [seo_redirect] => [active] => y [id] => [next_tab] => [phpsessid] => 4iliu231a9jr6revq8sabckm47 [type] => alias [server_id] => 1 )