CMD_API_FILE_MANAGER not working in new reseller account

HSG

Verified User
Joined
Oct 7, 2015
Messages
31
Hi,
I transfer my reseller account from a hosting to another hosting.
Now everything is good but CMD_API_FILE_MANAGER not working and return empty error.
Here is my code:

PHP:
<?php
$sock = new HTTPSocket;
$sock->connect(IP, 2222);
$sock->set_login('reselleracount|testuser', ResellerPassword);
$sock->query('/CMD_API_FILE_MANAGER', array(
	'action' => 'edit',
	'path' => "/domains/test.com/public_html",
	'text' => 'test file',
	'filename' => 'myfile.php'
));
$result=$sock->fetch_parsed_body();
if($result['error']!=='0'){
	echo $result['details'];
}else{
	//do my work
}
?>

Please help me.
Thanks.
 
@Richard,

John has mentioned somewhere that DA when works with FileManager chroots it self into homedir of an user, so a path should really be as it's shown in the first post:

Code:
'path' => "/domains/test.com/public_html",

@HSG,

The other question: what output do you get when running this code? What the error says?
 
@Richard,

John has mentioned somewhere that DA when works with FileManager chroots it self into homedir of an user, so a path should really be as it's shown in the first post:

Code:
'path' => "/domains/test.com/public_html",

@HSG,

The other question: what output do you get when running this code? What the error says?

Nothing, just return a empty string in $result['error'] and $result['details'], why?
DirectAdmin version is 1.48.3.
Is this possible a change in server has made this problem?
 
Back
Top