CMP_API_DOMAIN create symlink

neo-hippie

Verified User
Joined
May 27, 2014
Messages
69
Location
The Netherlands (Holland)
Hello,

first off the document: https://www.directadmin.com/features.php?id=498
doesn't include creating a symlink.

following the skins for CMD_DOMAIN
i'll use:
PHP:
				$sock->set_method('POST');
				$sock->query('/CMD_API_DOMAIN',
					array(
                                                'domain' => $domain,
                                                'action' => 'private_html',
                                                'val' => 'symlink'
					));

but it returns : [result_body] => error=1&text=Error creating symlink&details=No such file or directory
i logon using an admin loginkey trying to symlink a private_html to public html of a user.
and i've checked the directory /home/user/domains/domain/public_html and private_html both exists
from within directadmin i can change the fysical private_html to a symlink without a problem.
 
Hello,

Just now tested. It works in my case (in both directions: to symlink, to directory). Check the following:

- Secure SSL is enabled for the domain
- When you're running the API call you are authorized as an user who actually owns the domain.
 
Back
Top