The same error is happening for me. This is a brand new installation of Softaculous Remote, and I'm running test scripts to try to get it to do something, using the example scripts from the documentation
The error occurs when I try to use the "Add Domain" function. I'm using the "Admin acting as User Example" method. Here's the code:
PHP Code $url = 'http://localhost:2008/index.php?' .
'api_key=' . config::API_KEY .
'&api_pass=' . config::API_PASSWORD .
'&useuser=' . config::DOMAIN_NAME .
'&api=serialize' .
'&act=adddomain';
$post = array( 'add_domain' => 1,
'username' => config::USER_NAME,
'domain' => config::DOMAIN_NAME,
'server_host' => config::FTP_HOSTNAME,
'ftp_user' => config::FTP_USERNAME,
'ftp_pass' => config::FTP_PASSWORD,
'ftp_path' => config::FTP_DIRECTORY,
'backup_path' => '/backups/',
'data_dir' => '/datadir/',
'protocol' => 'ftp',
'port' => '21'
);
I can confirm that the details are all correct in the config class that I'm using. I can connect using FTP from the server that Softaculous Remote is installed and running on.
|