Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Softaculous API documentation



Normal Mode | Print  

Softaculous API documentation
earthrise
Group: Member
Post Group: Newbie
Posts: 9
Status:
I'm using version 4.2.5, which it says is the latest version. Here's the code, of course I removed the real passwords and domains:

<?php
@set_time_limit(100);

include_once('sdk.php');

$new = new Softaculous_API();
$new->login = 'https://pass@domain.com:2083/frontend/x3/softaculous/index.live.php';

// Domain Name
$data['softdomain'] = 'domain.com'; // OPTIONAL - By Default the primary domain will be used

// The directory is relative to your domain and should not exist. e.g. To install at http://mydomain/dir/ just type dir. To install only in http://mydomain/ leave this empty.
$data['softdirectory'] = 'wp887'; // OPTIONAL - By default it will be installed in the /public_html folder

// Admin Username
$data['admin_username'] = 'admin';

// Admin Pass
$data['admin_pass'] = 'pass';

// Admin Email
$data['admin_email'] = 'admin@domain.com';

// Database
$data['softdb'] = 'wp887';

//Database User Name
$data['dbusername'] = 'wp887';

// DB User Pass
$data['dbuserpass'] = 'wp887';

// Language
$data['language'] = 'en';

// Site Name
$data['site_name'] = 'Wordpess wp887';

// Site Description
$data['site_desc'] = 'WordPress API Test';

print_r($res);

// Response
$res = $new->install(26, $data); // Will install WordPress(26 is its script ID)

// Unserialize
$res = unserialize($res);

// Done/Error
if(!empty($res['done'])){
    echo 'Installed';
}else{
    echo 'Installation Failed<br/>';
    print_r($data);
    print_r($res['error']);
    if(!empty($res['error'])){
        print_r($res['error']);
    }
}
?>
IP: --   


Threads
 VPSGuys   Softaculous API documentation (26 Replies, Read 18223 times)
    |--  Brijesh   Hi, We are...   on July 17, 2012, 3:51 pm
    |--  VPSGuys   Hi, We are...   on July 29, 2012, 11:24 pm
    |--  Brijesh   Hi, We are...   on July 30, 2012, 5:44 am
    |--  Brijesh   Hi, Sir the...   on July 31, 2012, 1:57 pm
    |--  VPSGuys   Hi, Sir the...   on August 1, 2012, 1:19 am
    |--  Brijesh   Hi, Sir it...   on August 1, 2012, 4:17 am
    |--  VPSGuys   Hi, Sir it...   on August 1, 2012, 9:25 am
    |--  jigar   Hi, Can you...   on August 1, 2012, 10:29 am
    |--  VPSGuys   Hi, Can you...   on August 1, 2012, 10:49 am
    |--  Brijesh   Hi, After the...   on August 1, 2012, 11:14 am
    |--  VPSGuys   Hi, After the...   on August 1, 2012, 11:33 am
    |--  Brijesh   Hi, I am...   on August 1, 2012, 11:46 am
    |--  Brijesh   Hi, Sir we...   on August 1, 2012, 1:18 pm
    |--  earthrise   I'm having the...   on July 9, 2013, 5:09 am
    |--  tidus   I'm having the...   on July 9, 2013, 6:45 am
    |--  earthrise   I'm using version...   on July 9, 2013, 8:15 am
    |--  earthrise   I put some...   on July 9, 2013, 8:18 am
    |--  tidus   I put some...   on July 9, 2013, 8:51 am
    |--  earthrise   I only get...   on July 9, 2013, 2:29 pm
    |--  tidus   I only get...   on July 9, 2013, 2:36 pm
    |--  Brijesh   Hi, Are you...   on July 9, 2013, 2:44 pm
    |--  earthrise   I started with...   on July 9, 2013, 2:58 pm
    |--  earthrise   Do I need...   on July 9, 2013, 3:00 pm
    |--  earthrise   Also tried removing...   on July 9, 2013, 3:29 pm
    |--  earthrise   Ok, it's working,...   on July 9, 2013, 3:46 pm
    |--  Brijesh   Hi, Glad to...   on July 10, 2013, 6:53 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 10, 2025, 10:26 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.683