How to set subdomain directory via API2
I am trying to set the subdomain directory (ALL) as a default directory "accounts" so that it is /public_html/accounts/created_subdomain_directories_here via an API2 call
I have tried 'dir' => '/public_html/accounts/ . $domain', - which is the same string variable passed globally with the subdomain name that works to create the subdomain - but it does not work with this array (PHP) and the other two do
$parameters = array(
'rootdomain' => $rootdomain,
'domain' => $domain,
'dir' => '/public_html/accounts/ . $domain',
);
'dir' => '/public_html/accounts' creates the cgi directory in "accounts" and the domain directory in the docment root.
Does someone know how to do this properly ??
-
. . . 'dir' => '/public_html/accounts/ . $domain',
Silly me - apostrophe in wrong spot . . . 'dir' => '/public_html/accounts/'. $domain, FIXED and working . . . as desired !!!0 -
Hello :) I'm happy to see the issue is now resolved. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
2 comments