Hello,
I'm testing Softaculous with remote API with their steep :1) act=adduser, 2) act=adddomain and 3) act=software, but it's fail at this final steep 3.
I can create a user with this :
PHP Code $post = array('saveuser' => 1,
'username' => $login,
'user_email' => $email,
'uid' => $uid,
'num_users' => '0');
where $login is "test", $email a valid email and $uid the Linux UID.
Then I create a "domain" like this :
PHP Code $post = array('domain' => $domain,
'username' => $user,
'path' => $path,
'backup_dir' => $path.'/backups',
'data_dir' => $path.'/datadir',
'savedomain' => 1);
where $domain is "test20210618wp.franceserv.com", $user is "test" and $path is "/home/httpd/t/e/s/test/test20210618wp.franceserv.com"
and it's working on this steep...
Now, when I try to install a script (Wordpress with a Premium licence) :PHP Code $post = array('softsubmit' => '1',
'softdomain' => $domain,
'softdirectory' => $sub_folder, // Peut ĂȘtre vide
'softdb' => $db_name,
'dbusername' => $db_user,
'dbuserpass' => $db_pass,
'dbprefix' => $db_prefix,
'hostname' => 'sql.franceserv.fr',
'admin_username' => $admin_user,
'admin_pass' => $admin_pass,
'admin_email' => $admin_email,
'language' => $admin_language,
'site_name' => $site_name,
'site_desc' => $site_description);
Where $domain is "test20210618wp.franceserv.com", $softdirectory is empty (I tested with tons of attempts likes the full path, the / etc... I have this error message :
array(2) {
["softdomain"]=>
string(55) "The path of the domain you selected could not be found."
["fatal_error_text"]=>
string(65) "This User does not have any Domain. Please contact Administrator." }
And the path for the domain name exist (if it don't exist, it's not possible to create the domain in steep 2).
Do I need to set "$GLOBALS['softaculous_conf']['user_mod_dir'] = 1;" ? Or perhaps I have an error into my variables or the way into authentication as user and not as root with api_key ?
Thank you in advance.
|