{"id":3036,"date":"2019-02-01T11:04:50","date_gmt":"2019-02-01T11:04:50","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/?post_type=docs&#038;p=3036"},"modified":"2026-04-15T10:40:38","modified_gmt":"2026-04-15T10:40:38","slug":"sdk","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/admin\/installing-softaculous\/sdk\/","title":{"rendered":"SDK"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Softaculous_SDK Class<\/h3>\n\n\n\n<p>You can find the class in PATH\/TO\/softaculous\/enduser\/sdk.php<br>OR<br>You can download it from the below link:<br><a rel=\"noreferrer noopener\" href=\"https:\/\/files.softaculous.com\/sdk.zip\" target=\"_blank\">sdk.zip<\/a><br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Initializing and Authentication<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">include_once('sdk.php');\n$new = new Softaculous_SDK();\n$new-&gt;login = 'https:\/\/user:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';<\/pre>\n\n\n\n<p>This will load the Class in $new and we are setting the LOGIN URL as without authentication you will not be able to access Softaculous. The code here is an example of cPanel. cPanel allows User Authentication via the URL itself and many other panels also.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">https:\/\/user:password@domain.com:2083<\/pre>\n\n\n\n<p>If your panel has some different method, you must first implement that code and then proceed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">List Installed Scripts<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">funtion list_installed_scripts()<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This function has no parameters, it will get you the list of scripts.<br><\/li>\n<\/ul>\n\n\n\n<p>eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$new-&gt;list_installed_scripts();\nprint_r($new-&gt;iscripts);<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Will give you the output&nbsp;:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">Array (     <br>          [1] =&gt; Array  <br>               (    <br>                   [name] =&gt; Zikula             <br>                   [softname] =&gt; zikula  <br>                   [desc] =&gt; Zikula is a Web Application Toolkit, which allows you to run impressive websites and build powerful online applications.             <br>                   [ins] =&gt; 1             <br>                   [cat] =&gt; cms             <br>                   [type] =&gt; php             <br>                   [ver] =&gt; 1.2.8         <br>                )     <br>           [2] =&gt; Array         <br>                (             <br>                   [name] =&gt; phpBB             <br>                   [softname] =&gt; phpbb             <br>                   [desc] =&gt; The most widely used Open Source forum solution             <br>                   [ins] =&gt; 1             <br>                   [cat] =&gt; forums             <br>                   [type] =&gt; php             <br>                   [ver] =&gt; 3.0.10        <br>                ) <br>.<br>. <br>. <\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the above output,&nbsp;<strong>Keys<\/strong>&nbsp;like 1, 2, etc are the&nbsp;<strong>Script ID&#8217;s<\/strong>&nbsp;used often in the Softaculous_SDK while taking backup, importing, etc.<\/li>\n\n\n\n<li><strong>softname<\/strong>&nbsp;in the above example is the Softaculous Name for the software. It&#8217;s&nbsp;<strong>value<\/strong>&nbsp;is same as the directory present in the \/var\/softaculous\/[<strong>softname<\/strong>] for each script.<\/li>\n<\/ul>\n\n\n\n<p>Eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/var\/softaculous\/wp<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Where&nbsp;<strong>wp<\/strong>&nbsp;is the softname for WordPress.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">List Installations<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">function installations()<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This function has no parameters, it will give you the list of installations on your server.&nbsp;<br><\/li>\n<\/ul>\n\n\n\n<p>eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$installations = $new-&gt;installations();\nprint_r($installations);<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Will give you the output&nbsp;:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">Array <br>  (     <br>     [388] =&gt; Array <br>         (<br>           [388_98198] =&gt; Array <br>              (<br>                  [sid] =&gt; 388<br>                  [ver] =&gt; 2.3.5.0   <br>                  [itime] =&gt; 1342264725 <br>                  [softpath] =&gt; \/home\/USERNAME\/public_html\/ocs869<br>                  [softurl] =&gt; http:\/\/domain.com\/ocs869<br>                  [softdomain] =&gt; domain.com<br>                  [softdatadir] =&gt; \/home\/USERNAME\/ocs869 <br>                  [softdb] =&gt; soft_ocs869<br>                  [softdbuser] =&gt; soft_ocs869<br>                  [softdbhost] =&gt; localhost   <br>                  [softdbpass] =&gt; id17r2P6St    <br>                  [dbcreated] =&gt; 1 <br>                  [fileindex] =&gt; Array           <br>                      (            <br>                          [0] =&gt; cache<br>                          [1] =&gt; classes  <br>                          [2] =&gt; config.TEMPLATE.inc.php<br>                          [3] =&gt; config.inc.php<br>                          [4] =&gt; controllers  <br>                          [5] =&gt; dbscripts  <br>                          [6] =&gt; docs     <br>                          [7] =&gt; favicon.ico <br>                          [8] =&gt; help <br>                          [9] =&gt; index.php    <br>                          [10] =&gt; js      <br>                          [11] =&gt; lib<br>                          [12] =&gt; locale  <br>                          [13] =&gt; pages  <br>                          [14] =&gt; plugins    <br>                          [15] =&gt; public <br>                          [16] =&gt; registry  <br>                          [17] =&gt; robots.txt<br>                          [18] =&gt; rt <br>                          [19] =&gt; styles<br>                          [20] =&gt; templates <br>                          [21] =&gt; tools   <br>                      )  <br>                  [insid] =&gt; 388_98198    <br>              )        <br>          )    <br>    [386] =&gt; Array         <br>       (  <br>           [386_86211] =&gt; Array <br>              (  <br>                  [sid] =&gt; 386  <br>                  [ver] =&gt; 4.1  <br>                  [itime] =&gt; 1342437201 <br>                  [softpath] =&gt; \/home\/USERNAME\/public_html\/qcms40<br>                  [softurl] =&gt; http:\/\/domain.com\/qcms40<br>                  [softdomain] =&gt; domain.com <br>                  [fileindex] =&gt; Array <br>                      (       <br>                           [0] =&gt; actions <br>                           [1] =&gt; admin.php <br>                           [2] =&gt; core<br>                           [3] =&gt; database<br>                           [4] =&gt; files<br>                           [5] =&gt; index.php<br>                           [6] =&gt; mobile.php <br>                           [7] =&gt; plugins <br>                           [8] =&gt; read-me.txt   <br>                           [9] =&gt; templates<br>                       ) <br>                  [insid] =&gt; 386_86211   <br>              )    <br>       ) <br>. <br>. <br>.<br><br>                      <\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Here&nbsp;:<br><\/li>\n<\/ul>\n\n\n\n<p><strong>Keys<\/strong>&nbsp;like 388 and 386 are the&nbsp;<strong>Script ID&#8217;s<\/strong>.<br><strong>values<\/strong>&nbsp;like 388_98198 and 386_86211 are the&nbsp;<strong>Installation ID&#8217;s<\/strong><br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Installation ID&#8217;s are commonly used in this SDK for backup, upgrade, etc.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">List Backups<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">funtion list_backups()<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This function has no parameters, it will list the backups made on your server.<\/li>\n<\/ul>\n\n\n\n<p>eg&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$backups = $new-&gt;list_backups();\nprint_r($backups);<\/pre>\n\n\n\n<p>Will give output&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Array <br>  (                          <br>     [26] =&gt; Array <br>        (<br>          [26_60832] =&gt; Array<br>            ( <br>               [0] =&gt; Array<br>                   (<br>                     [name] =&gt; wp.26_60832.2012-07-26_10-13-33.zip<br>                     [path] =&gt; \/home\/USERNAME\/softaculous_backups\/wp.26_60832.2012-07-26_10-13-33.zip<br>                     [time] =&gt; 1343312013<br>                     [size] =&gt; 4968335 <br>                     [sid] =&gt; 26 <br>                     [ver] =&gt; 3.4.1 <br>                     [itime] =&gt; 1343282816<br>                     [softpath] =&gt; \/home\/USERNAME\/public_html\/wp782<br>                     [softurl] =&gt; http:\/\/domain.com\/wp782<br>                     [softdomain] =&gt; domain.com<br>                     [softdb] =&gt; soft_wp782<br>                     [softdbuser] =&gt; soft_wp782<br>                     [softdbhost] =&gt; localhost<br>                     [softdbpass] =&gt; aP6btS8d1p<br>                     [dbcreated] =&gt; 1<br>                     [fileindex] =&gt; Array  <br>                          (   <br>                             [0] =&gt; index.php<br>                             [1] =&gt; license.txt <br>                             [2] =&gt; readme.html<br>                             [3] =&gt; wp-activate.php <br>                             [4] =&gt; wp-admin<br>                             [5] =&gt; wp-app.php <br>                             [6] =&gt; wp-blog-header.php<br>                             [7] =&gt; wp-comments-post.php <br>                             [8] =&gt; wp-config-sample.php  <br>                             [9] =&gt; wp-content<br>                             [10] =&gt; wp-cron.php <br>                             [11] =&gt; wp-includes<br>                             [12] =&gt; wp-links-opml.php <br>                             [13] =&gt; wp-load.php<br>                             [14] =&gt; wp-login.php <br>                             [15] =&gt; wp-mail.php  <br>                             [16] =&gt; wp-settings.php<br>                             [17] =&gt; wp-signup.php   <br>                             [18] =&gt; wp-trackback.php <br>                             [19] =&gt; xmlrpc.php   <br>                             [20] =&gt; .htaccess<br>                             [21] =&gt; wp-config.php <br>                          ) <br>                     [insid] =&gt; 26_60832  <br>                     [backup_db] =&gt; 1  <br>                     [backup_dir] =&gt; 1  <br>                     [backup_datadir] =&gt;    <br>                     [backup_wwwdir] =&gt;<br>                     [ssk] =&gt; xb6aamsdjfoelhff4olxuldtj5jklvom<br>                     [email] =&gt; admin@domain.com <br>                  )<br>               )<br>         ) <br>. <br>. <br>. <\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>26 in the above example is the&nbsp;<strong>Script ID<\/strong>&nbsp;of WordPress.<\/li>\n\n\n\n<li>26_60832 is the&nbsp;<strong>Installation ID<\/strong>.<\/li>\n\n\n\n<li>wp.26_60832.2012-07-26_10-13-33.zip is the&nbsp;<strong>Backup Name<\/strong>.<\/li>\n\n\n\n<li><strong>Backup Name<\/strong>&nbsp;is generally used for restoring the backup.<\/li>\n\n\n\n<li>For each Backup, Backup Info is given along with its Installation Details as you can see in above example.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Result Format<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Result of the SDK call can be in three formats:\n<ul class=\"wp-block-list\">\n<li>Serialize<\/li>\n\n\n\n<li>JSON<\/li>\n\n\n\n<li>XML<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Serialize<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$this-&gt;format = 'serialize'; \/\/ Serialize is default.<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Below example is of Import SDK. WordPress Installation has been imported into Softaculous.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">&lt;?php\n@set_time_limit(100);\n\n\/\/Include Class\ninclude_once('sdk.php');\n\n$new = new Softaculous_SDK();\n\n\/\/ Login Page\n$new-&gt;login = 'https:\/\/user:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';\n\n$data['softdomain'] = 'domain.com'; \/\/ Domain Name\n\n$data['softdirectory'] = 'wp459'; \/\/ Directory of the installation\n\n\/\/ Submit the details\n$res = $new-&gt;import(26, $data); \/\/ Import Function. 26 is Script ID of WordPress.\necho $res;\n\n?&gt;<\/pre>\n\n\n\n<p>Will give you the output&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">a:6:{s:5:\"title\";s:28:\"Softaculous - Softaculous - \";s:4:\"done\";b:1;s:4:\"info\";a:6:{s:8:\"overview\";s:877:\"&lt;img src=\\\"logo.png\\\" style=\\\"float:right;\\\" alt=\\\"\\\" \/&gt;&lt;font size=\\\"5\\\" color=\\\"#182e7a\\\"&gt;WordPress&lt;\/font&gt; is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time.&lt;br \/&gt;&lt;br \/&gt;\n\t\tMore simply, WordPress is what you use when you want to work with your blogging software, not fight it.\n\t\t&lt;br \/&gt;&lt;br \/&gt;WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day.\n\t\t&lt;br \/&gt;&lt;br \/&gt;\n\t\tThe GPL from the &lt;a href=\\\"http:\/\/www.fsf.org\/\\\"&gt;Free Software Foundation&lt;\/a&gt; is the license that the WordPress software is under.\";s:8:\"features\";s:5413:\"&lt;ul&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Full standards compliance&lt;\/strong&gt;&nbsp;: We have gone to great lengths to make sure every bit of WordPress generated code is in full compliance with the standards of the &lt;a href=\\\"http:\/\/w3.org\\\"&gt;W3C&lt;\/a&gt;. This is important not only for interoperability with today's browser but also for forward compatibility with the tools of the next generation. Your web site is a beautiful thing, and you should demand nothing less.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;No rebuilding&lt;\/strong&gt;&nbsp;: Changes you make to your templates or entries are reflected immediately on your site, with no need for regenerating static pages.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;WordPress Pages&lt;\/strong&gt;&nbsp;: Pages allow you to manage non-blog content easily, so for example you could have a static \\\"About\\\" page that you manage through WordPress. For an idea of how powerful this is, the entire WordPress.org site could be run off WordPress alone. (We don't for technical mirroring reasons.)&lt;\/li&gt;\n\n\t\t\t\t&lt;li&gt;&lt;strong&gt;WordPress Links&lt;\/strong&gt;&nbsp;: Links allows you to create, maintain, and update any number of blogrolls through your administration interface. This is much faster than calling an external blogroll manager.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;WordPress Themes&lt;\/strong&gt;&nbsp;: WordPress comes with a &lt;a href=\\\"http:\/\/codex.wordpress.org\/Using_Themes\\\"&gt;full theme system&lt;\/a&gt; which makes designing everything from the simplest blog to the most complicated webzine a piece of cake, and you can even have multiple themes with totally different looks that you switch with a single click. Have a new design every day.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Cross-blog communication tools&lt;\/strong&gt;&nbsp;: WordPress fully supports both the &lt;a href=\\\"http:\/\/www.movabletype.org\/docs\/mttrackback.html\\\"&gt;Trackback&lt;\/a&gt; and &lt;a href=\\\"http:\/\/www.hixie.ch\/specs\/pingback\/pingback-1.0\\\"&gt;Pingback&lt;\/a&gt; standards, and we are committed to supporting future standards as they develop.&lt;\/li&gt;\n\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Comments&lt;\/strong&gt;&nbsp;: Visitors to your site can leave comments on individual entries, and through Trackback or Pingback can comment on their own site. You can enable or disable comments on a per-post basis.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Spam protection&lt;\/strong&gt;&nbsp;: Out of the box WordPress comes with very robust tools such as an integrated blacklist and open proxy checker to manage and eliminate comment spam on your blog, and there is also a rich array of plugins that can take this functionality a step further.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Full user registration&lt;\/strong&gt;&nbsp;: WordPress has a built-in user registration system that (if you choose) can allow people to register and maintain profiles and leave authenticated comments on your blog. You can optionally close comments for non-registered users. There are also plugins that hide posts from lower level users.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Password Protected Posts&lt;\/strong&gt;&nbsp;: You can give passwords to individual posts to hide them from the public. You can also have private posts which are viewable only by their author.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Easy installation and upgrades&lt;\/strong&gt;&nbsp;: Installing WordPress and upgrading from previous versions and other software is a piece of cake. Try it and you'll wonder why all web software isn't this easy.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Easy Importing&lt;\/strong&gt;&nbsp;: We currently have importers for Movable Type, Textpattern, Greymatter, Blogger, and b2. Work on importers for Nucleus and pMachine are under way. &lt;\/li&gt;\n\n\t\t\t\t&lt;li&gt;&lt;strong&gt;XML-RPC interface&lt;\/strong&gt;&nbsp;: WordPress currently supports an extended version of the &lt;a href=\\\"http:\/\/plant.blogger.com\/api\/\\\"&gt;Blogger API&lt;\/a&gt;, MetaWeblog API, and finally the MovableType API. You can even use clients designed for other platforms like &lt;a href=\\\"http:\/\/zempt.com\/\\\"&gt;Zempt&lt;\/a&gt;.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Workflow&lt;\/strong&gt;&nbsp;: You can have types of users that can only post drafts, not publish to the front page.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Typographical niceties &lt;\/strong&gt;: WordPress uses the &lt;a href=\\\"http:\/\/photomatt.net\/tools\/texturize\\\"&gt;Texturize&lt;\/a&gt; engine to intelligently convert plain ASCII into typographically correct XHTML entities. This includes quotes, apostrophes, ellipses, em and en dashes, multiplication symbols, and ampersands. For information about the proper use of such entities see Peter Sheerin's article &lt;a href=\\\"http:\/\/alistapart.com\/stories\/emen\/\\\"&gt;The Trouble With Em 'n En&lt;\/a&gt;.&lt;\/li&gt;\n\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Intelligent text formatting&lt;\/strong&gt;&nbsp;: If you've dealt with systems that convert new lines to line breaks before you know why they have a bad name: if you have any sort of HTML they butcher it by putting tags after every new line indiscriminately, breaking your formatting and validation. Our function for this intelligently avoids places where you already have breaks and block-level HTML tags, so you can leave it on without worrying about it breaking your code.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Multiple authors&lt;\/strong&gt;&nbsp;: WordPress' highly advanced user system allows up to 10 levels of users, with different levels having different (and configurable) privileges with regard to publishing, editing, options, and other users.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Bookmarklets&lt;\/strong&gt;&nbsp;: Cross-browser bookmarklets make it easy to publish to your blog or add links to your blogroll with a minimum of effort.&lt;\/li&gt;\n\t\t\t\t&lt;li&gt;&lt;strong&gt;Ping away&lt;\/strong&gt;&nbsp;: WordPress supports pinging &lt;a href=\\\"http:\/\/www.pingomatic.com\/\\\"&gt;Ping-O-Matic&lt;\/a&gt;, which means maximum exposure for your blog to search engines.&lt;\/li&gt;\n\t\t\t&lt;\/ul&gt;\";s:4:\"demo\";s:42:\"http:\/\/www.softaculous.com\/demos\/WordPress\";s:7:\"ratings\";s:52:\"http:\/\/www.softaculous.com\/softwares\/blogs\/WordPress\";s:7:\"support\";s:25:\"http:\/\/www.wordpress.org\/\";s:8:\"spacereq\";s:0:\"\";}s:8:\"software\";a:10:{s:4:\"name\";s:9:\"WordPress\";s:8:\"softname\";s:2:\"wp\";s:4:\"desc\";s:109:\"WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability.\";s:3:\"ins\";i:1;s:3:\"cat\";s:5:\"blogs\";s:4:\"type\";s:3:\"php\";s:3:\"ver\";s:3:\"3.4\";s:4:\"path\";s:48:\"\/var\/softaculous\/wp\";s:8:\"spacereq\";s:0:\"\";s:8:\"adminurl\";s:9:\"wp-admin\/\";}s:7:\"timenow\";i:1343796458;s:10:\"time_taken\";s:5:\"0.008\";}\n<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">JSON<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$this-&gt;format = 'json'; \/\/ Serialize is default.<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Below example is of Import SDK. WordPress Installation has been imported into Softaculous.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">&lt;?php\n@set_time_limit(100);\n\n\/\/Include Class\ninclude_once('sdk.php');\n\n$new = new Softaculous_SDK();\n\n$new-&gt;format = 'json';\n\n\/\/ Login Page\n$new-&gt;login = 'https:\/\/user:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';\n\n$data['softdomain'] = 'domain.com'; \/\/ Domain Name\n\n$data['softdirectory'] = 'wp459'; \/\/ Directory of the installation\n\n\/\/ Submit the details\n$res = $new-&gt;import(26, $data); \/\/ Import Function. 26 is Script ID of WordPress.\necho $res;\n\n?&gt;<\/pre>\n\n\n\n<p>Will give you the output&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">{ \"done\"&nbsp;: true,\n  \"info\"&nbsp;: { \"demo\"&nbsp;: \"http:\/\/www.softaculous.com\/demos\/WordPress\",\n      \"features\"&nbsp;: \"&lt;ul&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Full standards compliance&lt;\/strong&gt;&nbsp;: We have gone to great lengths to make sure every bit of WordPress generated code is in full compliance with the standards of the &lt;a href=\\\\\\\"http:\/\/w3.org\\\\\\\"&gt;W3C&lt;\/a&gt;. This is important not only for interoperability with today's browser but also for forward compatibility with the tools of the next generation. Your web site is a beautiful thing, and you should demand nothing less.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;No rebuilding&lt;\/strong&gt;&nbsp;: Changes you make to your templates or entries are reflected immediately on your site, with no need for regenerating static pages.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;WordPress Pages&lt;\/strong&gt;&nbsp;: Pages allow you to manage non-blog content easily, so for example you could have a static \\\\\\\"About\\\\\\\" page that you manage through WordPress. For an idea of how powerful this is, the entire WordPress.org site could be run off WordPress alone. (We don't for technical mirroring reasons.)&lt;\/li&gt;\\n\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;WordPress Links&lt;\/strong&gt;&nbsp;: Links allows you to create, maintain, and update any number of blogrolls through your administration interface. This is much faster than calling an external blogroll manager.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;WordPress Themes&lt;\/strong&gt;&nbsp;: WordPress comes with a &lt;a href=\\\\\\\"http:\/\/codex.wordpress.org\/Using_Themes\\\\\\\"&gt;full theme system&lt;\/a&gt; which makes designing everything from the simplest blog to the most complicated webzine a piece of cake, and you can even have multiple themes with totally different looks that you switch with a single click. Have a new design every day.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Cross-blog communication tools&lt;\/strong&gt;&nbsp;: WordPress fully supports both the &lt;a href=\\\\\\\"http:\/\/www.movabletype.org\/docs\/mttrackback.html\\\\\\\"&gt;Trackback&lt;\/a&gt; and &lt;a href=\\\\\\\"http:\/\/www.hixie.ch\/specs\/pingback\/pingback-1.0\\\\\\\"&gt;Pingback&lt;\/a&gt; standards, and we are committed to supporting future standards as they develop.&lt;\/li&gt;\\n\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Comments&lt;\/strong&gt;&nbsp;: Visitors to your site can leave comments on individual entries, and through Trackback or Pingback can comment on their own site. You can enable or disable comments on a per-post basis.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Spam protection&lt;\/strong&gt;&nbsp;: Out of the box WordPress comes with very robust tools such as an integrated blacklist and open proxy checker to manage and eliminate comment spam on your blog, and there is also a rich array of plugins that can take this functionality a step further.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Full user registration&lt;\/strong&gt;&nbsp;: WordPress has a built-in user registration system that (if you choose) can allow people to register and maintain profiles and leave authenticated comments on your blog. You can optionally close comments for non-registered users. There are also plugins that hide posts from lower level users.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Password Protected Posts&lt;\/strong&gt;&nbsp;: You can give passwords to individual posts to hide them from the public. You can also have private posts which are viewable only by their author.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Easy installation and upgrades&lt;\/strong&gt;&nbsp;: Installing WordPress and upgrading from previous versions and other software is a piece of cake. Try it and you'll wonder why all web software isn't this easy.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Easy Importing&lt;\/strong&gt;&nbsp;: We currently have importers for Movable Type, Textpattern, Greymatter, Blogger, and b2. Work on importers for Nucleus and pMachine are under way. &lt;\/li&gt;\\n\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;XML-RPC interface&lt;\/strong&gt;&nbsp;: WordPress currently supports an extended version of the &lt;a href=\\\\\\\"http:\/\/plant.blogger.com\/api\/\\\\\\\"&gt;Blogger API&lt;\/a&gt;, MetaWeblog API, and finally the MovableType API. You can even use clients designed for other platforms like &lt;a href=\\\\\\\"http:\/\/zempt.com\/\\\\\\\"&gt;Zempt&lt;\/a&gt;.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Workflow&lt;\/strong&gt;&nbsp;: You can have types of users that can only post drafts, not publish to the front page.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Typographical niceties &lt;\/strong&gt;: WordPress uses the &lt;a href=\\\\\\\"http:\/\/photomatt.net\/tools\/texturize\\\\\\\"&gt;Texturize&lt;\/a&gt; engine to intelligently convert plain ASCII into typographically correct XHTML entities. This includes quotes, apostrophes, ellipses, em and en dashes, multiplication symbols, and ampersands. For information about the proper use of such entities see Peter Sheerin's article &lt;a href=\\\\\\\"http:\/\/alistapart.com\/stories\/emen\/\\\\\\\"&gt;The Trouble With Em 'n En&lt;\/a&gt;.&lt;\/li&gt;\\n\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Intelligent text formatting&lt;\/strong&gt;&nbsp;: If you've dealt with systems that convert new lines to line breaks before you know why they have a bad name: if you have any sort of HTML they butcher it by putting tags after every new line indiscriminately, breaking your formatting and validation. Our function for this intelligently avoids places where you already have breaks and block-level HTML tags, so you can leave it on without worrying about it breaking your code.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Multiple authors&lt;\/strong&gt;&nbsp;: WordPress' highly advanced user system allows up to 10 levels of users, with different levels having different (and configurable) privileges with regard to publishing, editing, options, and other users.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Bookmarklets&lt;\/strong&gt;&nbsp;: Cross-browser bookmarklets make it easy to publish to your blog or add links to your blogroll with a minimum of effort.&lt;\/li&gt;\\n\\t\\t\\t\\t&lt;li&gt;&lt;strong&gt;Ping away&lt;\/strong&gt;&nbsp;: WordPress supports pinging &lt;a href=\\\\\\\"http:\/\/www.pingomatic.com\/\\\\\\\"&gt;Ping-O-Matic&lt;\/a&gt;, which means maximum exposure for your blog to search engines.&lt;\/li&gt;\\n\\t\\t\\t&lt;\/ul&gt;\",\n      \"overview\"&nbsp;: \"&lt;img src=\\\\\\\"logo.png\\\\\\\" style=\\\\\\\"float:right;\\\\\\\" alt=\\\\\\\"\\\\\\\" \/&gt;&lt;font size=\\\\\\\"5\\\\\\\" color=\\\\\\\"#182e7a\\\\\\\"&gt;WordPress&lt;\/font&gt; is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time.&lt;br \/&gt;&lt;br \/&gt;\\n\\t\\tMore simply, WordPress is what you use when you want to work with your blogging software, not fight it.\\n\\t\\t&lt;br \/&gt;&lt;br \/&gt;WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day.\\n\\t\\t&lt;br \/&gt;&lt;br \/&gt;\\n\\t\\tThe GPL from the &lt;a href=\\\\\\\"http:\/\/www.fsf.org\/\\\\\\\"&gt;Free Software Foundation&lt;\/a&gt; is the license that the WordPress software is under.\",\n      \"ratings\"&nbsp;: \"http:\/\/www.softaculous.com\/softwares\/blogs\/WordPress\",\n      \"spacereq\"&nbsp;: \"\",\n      \"support\"&nbsp;: \"http:\/\/www.wordpress.org\/\"\n    },\n  \"software\"&nbsp;: { \"adminurl\"&nbsp;: \"wp-admin\/\",\n      \"cat\"&nbsp;: \"blogs\",\n      \"desc\"&nbsp;: \"WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability.\",\n      \"ins\"&nbsp;: 1,\n      \"name\"&nbsp;: \"WordPress\",\n      \"path\"&nbsp;: \"\/var\/softaculous\/wp\",\n      \"softname\"&nbsp;: \"wp\",\n      \"spacereq\"&nbsp;: \"\",\n      \"type\"&nbsp;: \"php\",\n      \"ver\"&nbsp;: \"3.4\"\n    },\n  \"time_taken\"&nbsp;: \"0.008\",\n  \"timenow\"&nbsp;: 1343800621,\n  \"title\"&nbsp;: \"Softaculous - Softaculous - \"\n}\n<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">XML<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$this-&gt;format = 'xml'; \/\/ Serialize is default.<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Below example is of Import SDK. WordPress Installation has been imported into Softaculous.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">&lt;?php\n@set_time_limit(100);\n\n\/\/Include Class\ninclude_once('sdk.php');\n\n$new = new Softaculous_SDK();\n\n$new-&gt;format = 'xml';\n\n\/\/ Login Page\n$new-&gt;login = 'https:\/\/user:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';\n\n$data['softdomain'] = 'domain.com'; \/\/ Domain Name\n\n$data['softdirectory'] = 'wp459'; \/\/ Directory of the installation\n\n\/\/ Submit the details\n$res = $new-&gt;import(26, $data); \/\/ Import Function. 26 is Script ID of WordPress.\necho $res;\n\n?&gt;<\/pre>\n\n\n\n<p>Will give you the output&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">&lt;?xml version=\"1.0\"&nbsp;?&gt;\n&lt;xml&gt;\n  &lt;title&gt;\n    Softaculous - Softaculous - \n  &lt;\/title&gt;\n  &lt;done&gt;\n    1\n  &lt;\/done&gt;\n  &lt;info&gt;\n    &lt;overview&gt;\n      &lt;img src=\\\"logo.png\\\" style=\\\"float:right;\\\" alt=\\\"\\\" \/&gt;&lt;font size=\\\"5\\\" color=\\\"#182e7a\\\"&gt;WordPress&lt;\/font&gt; is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time.&lt;br \/&gt;&lt;br \/&gt; More simply, WordPress is what you use when you want to work with your blogging software, not fight it. &lt;br \/&gt;&lt;br \/&gt;WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day. &lt;br \/&gt;&lt;br \/&gt; The GPL from the &lt;a href=\\\"http:\/\/www.fsf.org\/\\\"&gt;Free Software Foundation&lt;\/a&gt; is the license that the WordPress software is under.\n    &lt;\/overview&gt;\n    &lt;features&gt;\n      &lt;ul&gt;&lt;li&gt;&lt;strong&gt;Full standards compliance&lt;\/strong&gt;&nbsp;: We have gone to great lengths to make sure every bit of WordPress generated code is in full compliance with the standards of the &lt;a href=\\\"http:\/\/w3.org\\\"&gt;W3C&lt;\/a&gt;. This is important not only for interoperability with today's browser but also for forward compatibility with the tools of the next generation. Your web site is a beautiful thing, and you should demand nothing less.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;No rebuilding&lt;\/strong&gt;&nbsp;: Changes you make to your templates or entries are reflected immediately on your site, with no need for regenerating static pages.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;WordPress Pages&lt;\/strong&gt;&nbsp;: Pages allow you to manage non-blog content easily, so for example you could have a static \\\"About\\\" page that you manage through WordPress. For an idea of how powerful this is, the entire WordPress.org site could be run off WordPress alone. (We don't for technical mirroring reasons.)&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;WordPress Links&lt;\/strong&gt;&nbsp;: Links allows you to create, maintain, and update any number of blogrolls through your administration interface. This is much faster than calling an external blogroll manager.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;WordPress Themes&lt;\/strong&gt;&nbsp;: WordPress comes with a &lt;a href=\\\"http:\/\/codex.wordpress.org\/Using_Themes\\\"&gt;full theme system&lt;\/a&gt; which makes designing everything from the simplest blog to the most complicated webzine a piece of cake, and you can even have multiple themes with totally different looks that you switch with a single click. Have a new design every day.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Cross-blog communication tools&lt;\/strong&gt;&nbsp;: WordPress fully supports both the &lt;a href=\\\"http:\/\/www.movabletype.org\/docs\/mttrackback.html\\\"&gt;Trackback&lt;\/a&gt; and &lt;a href=\\\"http:\/\/www.hixie.ch\/specs\/pingback\/pingback-1.0\\\"&gt;Pingback&lt;\/a&gt; standards, and we are committed to supporting future standards as they develop.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Comments&lt;\/strong&gt;&nbsp;: Visitors to your site can leave comments on individual entries, and through Trackback or Pingback can comment on their own site. You can enable or disable comments on a per-post basis.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Spam protection&lt;\/strong&gt;&nbsp;: Out of the box WordPress comes with very robust tools such as an integrated blacklist and open proxy checker to manage and eliminate comment spam on your blog, and there is also a rich array of plugins that can take this functionality a step further.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Full user registration&lt;\/strong&gt;&nbsp;: WordPress has a built-in user registration system that (if you choose) can allow people to register and maintain profiles and leave authenticated comments on your blog. You can optionally close comments for non-registered users. There are also plugins that hide posts from lower level users.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Password Protected Posts&lt;\/strong&gt;&nbsp;: You can give passwords to individual posts to hide them from the public. You can also have private posts which are viewable only by their author.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Easy installation and upgrades&lt;\/strong&gt;&nbsp;: Installing WordPress and upgrading from previous versions and other software is a piece of cake. Try it and you'll wonder why all web software isn't this easy.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Easy Importing&lt;\/strong&gt;&nbsp;: We currently have importers for Movable Type, Textpattern, Greymatter, Blogger, and b2. Work on importers for Nucleus and pMachine are under way. &lt;\/li&gt;&lt;li&gt;&lt;strong&gt;XML-RPC interface&lt;\/strong&gt;&nbsp;: WordPress currently supports an extended version of the &lt;a href=\\\"http:\/\/plant.blogger.com\/api\/\\\"&gt;Blogger API&lt;\/a&gt;, MetaWeblog API, and finally the MovableType API. You can even use clients designed for other platforms like &lt;a href=\\\"http:\/\/zempt.com\/\\\"&gt;Zempt&lt;\/a&gt;.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Workflow&lt;\/strong&gt;&nbsp;: You can have types of users that can only post drafts, not publish to the front page.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Typographical niceties &lt;\/strong&gt;: WordPress uses the &lt;a href=\\\"http:\/\/photomatt.net\/tools\/texturize\\\"&gt;Texturize&lt;\/a&gt; engine to intelligently convert plain ASCII into typographically correct XHTML entities. This includes quotes, apostrophes, ellipses, em and en dashes, multiplication symbols, and ampersands. For information about the proper use of such entities see Peter Sheerin's article &lt;a href=\\\"http:\/\/alistapart.com\/stories\/emen\/\\\"&gt;The Trouble With Em 'n En&lt;\/a&gt;.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Intelligent text formatting&lt;\/strong&gt;&nbsp;: If you've dealt with systems that convert new lines to line breaks before you know why they have a bad name: if you have any sort of HTML they butcher it by putting tags after every new line indiscriminately, breaking your formatting and validation. Our function for this intelligently avoids places where you already have breaks and block-level HTML tags, so you can leave it on without worrying about it breaking your code.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Multiple authors&lt;\/strong&gt;&nbsp;: WordPress' highly advanced user system allows up to 10 levels of users, with different levels having different (and configurable) privileges with regard to publishing, editing, options, and other users.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Bookmarklets&lt;\/strong&gt;&nbsp;: Cross-browser bookmarklets make it easy to publish to your blog or add links to your blogroll with a minimum of effort.&lt;\/li&gt;&lt;li&gt;&lt;strong&gt;Ping away&lt;\/strong&gt;&nbsp;: WordPress supports pinging &lt;a href=\\\"http:\/\/www.pingomatic.com\/\\\"&gt;Ping-O-Matic&lt;\/a&gt;, which means maximum exposure for your blog to search engines.&lt;\/li&gt;&lt;\/ul&gt;\n    &lt;\/features&gt;\n    &lt;demo&gt;\n      http:\/\/www.softaculous.com\/demos\/WordPress\n    &lt;\/demo&gt;\n    &lt;ratings&gt;\n      http:\/\/www.softaculous.com\/softwares\/blogs\/WordPress\n    &lt;\/ratings&gt;\n    &lt;support&gt;\n      http:\/\/www.wordpress.org\/\n    &lt;\/support&gt;\n    &lt;spacereq\/&gt;\n  &lt;\/info&gt;\n  &lt;software&gt;\n    &lt;name&gt;\n      WordPress\n    &lt;\/name&gt;\n    &lt;softname&gt;\n      wp\n    &lt;\/softname&gt;\n    &lt;desc&gt;\n      WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability.\n    &lt;\/desc&gt;\n    &lt;ins&gt;\n      1\n    &lt;\/ins&gt;\n    &lt;cat&gt;\n      blogs\n    &lt;\/cat&gt;\n    &lt;type&gt;\n      php\n    &lt;\/type&gt;\n    &lt;ver&gt;\n      3.4\n    &lt;\/ver&gt;\n    &lt;path&gt;\n      \/var\/softaculous\/wp\n    &lt;\/path&gt;\n    &lt;spacereq\/&gt;\n    &lt;adminurl&gt;\n      wp-admin\/\n    &lt;\/adminurl&gt;\n  &lt;\/software&gt;\n  &lt;timenow&gt;\n    1343802693\n  &lt;\/timenow&gt;\n  &lt;time_taken&gt;\n    0.022\n  &lt;\/time_taken&gt;\n&lt;\/xml&gt;\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install SDK<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">function install($sid, $data = array())<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This will install the scripts\/software available in Softaculous.<\/li>\n<\/ul>\n\n\n\n<p><strong>Parameters<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$sid<\/strong>&nbsp;is the Script ID, which can be obtained from&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#List_Installed_Scripts\">List Installed Scripts<\/a><\/li>\n\n\n\n<li><strong>$data<\/strong>&nbsp;is the DATA to post. If&nbsp;<strong>$data<\/strong>&nbsp;is empty, result will be the&nbsp;<strong>Software Information<\/strong>\n<ul class=\"wp-block-list\">\n<li>$data[&#8216;<strong>softdomain&#8217;<\/strong>] &#8211; Domain in which you are installing. OPTIONAL &#8211; By Default the primary domain will be used. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>softdirectory&#8217;<\/strong>] &#8211; Directory in which installation will be placed. OPTIONAL &#8211; By default it will be installed in the \/public_html folder. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>softdb&#8217;<\/strong>] &#8211; Database Name for this installation. [Softaculous will create it for you]. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>dbusername&#8217;<\/strong>] &#8211; Database Username. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>dbuserpass&#8217;<\/strong>] &#8211; Username Password. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>admin_username&#8217;<\/strong>] &#8211; Admin Username for WordPress. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>admin_pass&#8217;<\/strong>] &#8211; Password for Admin Username. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>admin_email&#8217;<\/strong>] &#8211; Admin Email ID. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>site_name&#8217;<\/strong>] &#8211; Site Name. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>language&#8217;<\/strong>] &#8211; Language. Value should be&nbsp;<strong>String<\/strong>. The language code can be found here.&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/Scripts_Language_Codes\">Scripts Language Codes<\/a><\/li>\n\n\n\n<li>$data[&#8216;<strong>site_desc&#8217;<\/strong>] &#8211; Site Desription. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>overwrite_existing&#8217;<\/strong>] &#8211; Overwrite Existing files if there is a match found. Value should be&nbsp;<strong>1<\/strong>&nbsp;to overwrite it. OPTIONAL &#8211; By default Softaculous will throw an error if there is an existing folder of file found in the Installation Directory.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Above example is for WordPress, data to post will vary for different script. You can find the the value to post in install.xml of each script located in \/var\/softaculous\/<\/li>\n<\/ul>\n\n\n\n<p><strong>Return Values<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Result will be in the format as specified in&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#Result_Format\"><strong>$this-&gt;format<\/strong><\/a>. By default it is serialized.<\/li>\n<\/ul>\n\n\n\n<p>If the format is&nbsp;<strong>serialized<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If Installation was successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>1<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>empty<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Installation was not successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>0<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be an array with&nbsp;<strong>error message<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$new = new Softaculous_SDK();\n$new-&gt;login = 'https:\/\/username:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php'; \/\/ cPanel example Login\n$data['softdomain'] = 'domain.com'; \/\/ OPTIONAL - By Default the primary domain will be used\n$data['softdirectory'] = 'wp222'; \/\/ OPTIONAL - By default it will be installed in the \/public_html folder\n$data['admin_pass'] = 'pass';\n$data['admin_email'] = 'admin@domain.com';\n$data['softdb'] = 'wp222';\n$data['dbusername'] = 'wp222';\n$data['dbuserpass'] = 'wp222';\n$data['site_name'] = 'Wordpess wp222';\n$data['admin_username'] = 'admin';\n$data['language'] = 'en';\n$data['site_desc'] = 'WordPress SDK Test';\n\n$res = $new-&gt;install(26, $data); \/\/ 26 is the SCRIPT ID for WordPress\n$res = unserialize($res);\nif(!empty($res['done'])){\n\techo 'Installed';\n}else{\n\techo 'Installation Failed&lt;br\/&gt;';\n\tif(!empty($res['error'])){\n\t\tprint_r($res['error']);\n\t}\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Import SDK<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">function import($sid, $data = array())<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This will import the installations already installed on your server.<\/li>\n<\/ul>\n\n\n\n<p><strong>Parameters<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$sid<\/strong>&nbsp;is the Script ID, which can be obtained from&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#List_Installed_Scripts\">List Installed Scripts<\/a>. It tells Softaculous which script is being imported.<\/li>\n\n\n\n<li><strong>$data<\/strong>&nbsp;is the DATA to post.\n<ul class=\"wp-block-list\">\n<li>$data[&#8216;<strong>softdomain&#8217;<\/strong>] &#8211; Domain Name from which you want import installation. Value should be&nbsp;<strong>String<\/strong><\/li>\n\n\n\n<li>$data[&#8216;<strong>softdirectory&#8217;<\/strong>] &#8211; Directory in which installation is present. Value should be&nbsp;<strong>String<\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>To import only&nbsp;<strong>softdomain<\/strong>&nbsp;&amp;&nbsp;<strong>softdirectory<\/strong>&nbsp;are required by Softaculous.<\/li>\n<\/ul>\n\n\n\n<p><strong>Return Values<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Result will be in the format as specified in&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#Result_Format\"><strong>$this-&gt;format<\/strong><\/a>. By default it is serialized.<\/li>\n<\/ul>\n\n\n\n<p>If the format is&nbsp;<strong>serialized<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If Installation was successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>1<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>empty<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Installation was not successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>0<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be an array with&nbsp;<strong>error message<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$new = new Softaculous_SDK();\n\n\/\/ Login Page\n$new-&gt;login = 'https:\/\/username:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';\n\n$data['softdomain'] = 'domain.com'; \/\/ Domain Name\n\n$data['softdirectory'] = 'wp221'; \/\/ Directory of the installation\n\n\/\/ Submit the details\n$res = $new-&gt;import(26, $data); \/\/ 26 is SCRIPT ID for WordPress.\n$res = unserialize($res); \/\/ Unserialize the serialized array\nif(!empty($res['done'])){\n\techo 'Imported';\n}else{\n\tprint_r($res['error']); \/\/ Reason why Import was not successful\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Restore SDK<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">function restore($name, $data = array())<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This will Restore the Backup of installation from the list of Backups List.<\/li>\n<\/ul>\n\n\n\n<p><strong>Parameters<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$name<\/strong>&nbsp;is the Backup Name, which can be obtained from&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#List_Backups\">List Backups<\/a>. It tells Softaculous which Backup is being restored.<\/li>\n\n\n\n<li><strong>$data<\/strong>&nbsp;is the DATA to post.\n<ul class=\"wp-block-list\">\n<li>$data[&#8216;<strong>restore_dir&#8217;<\/strong>] &#8211; Restore Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Restore the Directory.<\/li>\n\n\n\n<li>$data[&#8216;<strong>restore_db&#8217;<\/strong>] &#8211; Restore Database.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Restore the Database.<\/li>\n\n\n\n<li>$data[&#8216;<strong>restore_datadir&#8217;<\/strong>] &#8211; Restore Data Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Restore the Data Directory.<\/li>\n\n\n\n<li>$data[&#8216;<strong>restore_wwwdir&#8217;<\/strong>] &#8211; Restore WWW Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Restore the WWW Directory.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Not all scripts have database or data directory or www directory. It depends on which script you are trying to restore.<\/li>\n<\/ul>\n\n\n\n<p><strong>Return Values<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Result will be in the format as specified in&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#Result_Format\"><strong>$this-&gt;format<\/strong><\/a>. By default it is serialized.<\/li>\n<\/ul>\n\n\n\n<p>If the format is&nbsp;<strong>serialized<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If Installation was successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>1<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>empty<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Installation was not successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>0<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be an array with&nbsp;<strong>error message<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$new = new Softaculous_SDK();\n$new-&gt;login = 'https:\/\/username:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';\n\n$data['restore_dir'] = 1;\n$data['restore_db'] = 1;\n$data['restore_datadir'] = 0;\n$data['restore_wwwdir'] = 0;\n\n$res = $new-&gt;restore('wp.26_60832.2012-07-26_10-13-33.zip', $data); \/\/ wp.26_60832.2012-07-26_10-13-33.zip is the Backup Name\n\n$res = unserialize($res);\nif(!empty($res['done'])){\n\techo 'Restored';\n}else{\n\techo 'Restoration Failed&lt;br\/&gt;';\n\tprint_r($res['error']);\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Backup SDK<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">function backup($insid, $data = array())<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This will take the Backup of installation. Softaculous performs backup process in the background, so you will get an mail<\/li>\n<\/ul>\n\n\n\n<p><strong>Parameters<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$insid<\/strong>&nbsp;is the Installation ID, which can be obtained from&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#List_Installed_Scripts\">List Scripts<\/a>. It tells Softaculous which Installation is being Backuped.<\/li>\n\n\n\n<li><strong>$data<\/strong>&nbsp;is the DATA to post.\n<ul class=\"wp-block-list\">\n<li>$data[&#8216;<strong>backup_dir&#8217;<\/strong>] &#8211; Backup Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Backup the Directory.<\/li>\n\n\n\n<li>$data[&#8216;<strong>backup_db&#8217;<\/strong>] &#8211; Backup Database.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Backup the Datbase.<\/li>\n\n\n\n<li>$data[&#8216;<strong>backup_datadir&#8217;<\/strong>] &#8211; Backup Data Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Backup the Data Directory.<\/li>\n\n\n\n<li>$data[&#8216;<strong>backup_wwwdir&#8217;<\/strong>] &#8211; Backup WWW Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Backup the WWW Directory.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Not all scripts have database or data directory or www directory. It depends on which script you are trying to Backup.<\/li>\n<\/ul>\n\n\n\n<p><strong>Return Values<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Result will be in the format as specified in&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#Result_Format\"><strong>$this-&gt;format<\/strong><\/a>. By default it is serialized.<\/li>\n<\/ul>\n\n\n\n<p>If the format is&nbsp;<strong>serialized<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If Installation was successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>1<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>empty<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Installation was not successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>0<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be an array with&nbsp;<strong>error message<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$new = new Softaculous_SDK();\n$new-&gt;login = 'https:\/\/username:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';\n\n$data['backup_dir'] = 1;\n\n$data['backup_db'] = 1;\n\n$data['backup_datadir'] = 0;\n\n$data['backup_wwwdir'] = 0;\n\n$res = $new-&gt;backup('26_37054', $data);\n\n$res = unserialize($res);\nif(!empty($res['done'])){\n\techo 'Backing up the installation.';\n}else{\n\techo 'Backup Failed&lt;br\/&gt;';\n\tprint_r($res['error']);\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Remove SDK<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">function remove($insid, $data = array())<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This will remove an installation.<\/li>\n<\/ul>\n\n\n\n<p><strong>Parameters<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$insid<\/strong>&nbsp;is the Installation ID, which can be obtained from&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#List_Installed_Scripts\">List Scripts<\/a>. It tells Softaculous which Installation is being Removed.<\/li>\n\n\n\n<li><strong>$data<\/strong>&nbsp;is the DATA to post.\n<ul class=\"wp-block-list\">\n<li>$data[&#8216;<strong>remove_dir&#8217;<\/strong>] &#8211; Remove Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Remove the Directory.<\/li>\n\n\n\n<li>$data[&#8216;<strong>remove_db&#8217;<\/strong>] &#8211; Remove Database.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Remove the Database.<\/li>\n\n\n\n<li>$data[&#8216;<strong>remove_datadir&#8217;<\/strong>] &#8211; Remove Data Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Remove the Data Directory.<\/li>\n\n\n\n<li>$data[&#8216;<strong>remove_wwwdir&#8217;<\/strong>] &#8211; Remove WWW Directory.&nbsp;<strong>1<\/strong>&nbsp;or&nbsp;<strong>0<\/strong>&nbsp;should be the value. 1 if you want to Remove the WWW Directory.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Not all scripts have database or data directory or www directory. It depends on which script you are trying to Remove.<\/li>\n<\/ul>\n\n\n\n<p><strong>Return Values<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Result will be in the format as specified in&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#Result_Format\"><strong>$this-&gt;format<\/strong><\/a>. By default it is serialized.<\/li>\n<\/ul>\n\n\n\n<p>If the format is&nbsp;<strong>serialized<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If Installation was successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>1<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>empty<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Installation was not successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>0<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be an array with&nbsp;<strong>error message<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$new = new Softaculous_SDK();\n$new-&gt;login = 'https:\/\/username:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';\n\n$data['remove_dir'] = 1;\n\n$data['remove_db'] = 1;\n\n$data['remove_datadir'] = 0;\n\n$data['remove_wwwdir'] = 0;\n\n$res = $new-&gt;remove('26_37054', $data);\n\n$res = unserialize($res);\nif(!empty($res['done'])){\n\techo 'Removed';\n}else{\n\techo 'Removing Unsuccessful&lt;br\/&gt;';\n\tprint_r($res['error']);\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Upgrade SDK<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">function upgrade($insid, $data = array())<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This will upgrade an installation, if upgrade is available.<\/li>\n<\/ul>\n\n\n\n<p><strong>Parameters<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$insid<\/strong>&nbsp;is the Installation ID, which can be obtained from&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#List_Installations\">List Installed Scripts<\/a>. It tells Softaculous which Installation is being upgraded.<\/li>\n\n\n\n<li><strong>$data<\/strong>&nbsp;is the DATA to post. If&nbsp;<strong>$data<\/strong>&nbsp;is empty, output is upgrade information.\n<ul class=\"wp-block-list\">\n<li><strong>$data[&#8216;softbranch&#8217;]<\/strong>&nbsp;&#8211; Script ID of the script updrading to.&nbsp;<strong>Int<\/strong>&nbsp;should be the value. Used only if the installation is upgradable to more than one version. It can be obtained in&nbsp;<strong>$result[&#8216;upgradableto&#8217;]<\/strong>&nbsp;by keeping&nbsp;<strong>$data<\/strong>&nbsp;empty.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>Return Values<\/strong>&nbsp;:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Result will be in the format as specified in&nbsp;<a href=\"http:\/\/softaculous.com\/wiki\/index.php\/SDK#Result_Format\"><strong>$this-&gt;format<\/strong><\/a>. By default it is serialized.<\/li>\n<\/ul>\n\n\n\n<p>If the format is&nbsp;<strong>serialized<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If no DATA is posted i.e if&nbsp;<strong>$data<\/strong>&nbsp;is&nbsp;<strong>empty<\/strong>,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;upgradableto&#8217;]<\/strong>&nbsp;is an array in which&nbsp;<strong>Key<\/strong>&nbsp;is Script ID &amp;&nbsp;<strong>Value<\/strong>&nbsp;is the version.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Upgradation was successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>1<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>empty<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;setup&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>empty<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Upgradation was not successful, after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>0<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be an array with&nbsp;<strong>error message<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Upgradation was successful, but requires one more step to complete the upgrade process then after unserializing the result,\n<ul class=\"wp-block-list\">\n<li><strong>$result[&#8216;done&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>1<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;error&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>empty<\/strong>.<\/li>\n\n\n\n<li><strong>$result[&#8216;setup&#8217;]<\/strong>&nbsp;should be&nbsp;<strong>String<\/strong>. This is a URL which should be visited to complete the upgrade process.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Eg:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">$new = new Softaculous_SDK();\n$new-&gt;login = 'https:\/\/username:password@domain.com:2083\/frontend\/paper_lantern\/softaculous\/index.live.php';\n\n$data['softbranch'] = '382'; \/\/ Script ID of the script you want to upgrade.\n\n$res = $new-&gt;upgrade('92_69417', $data);\n$_res = unserialize($res);\n\t\nif(!empty($_res['done'])){\n\techo 'Upgraded';\n}else{\n        echo 'Upgrade Failed&lt;br\/&gt;';\n        print_r($res['error']);\n}\n\nif(!empty($_res['setupcontinue'])){\n        echo $_res['setupcontinue'].' Please visit the following link to complete the upgrade process.';\n}<\/pre>\n","protected":false},"featured_media":0,"parent":1666,"menu_order":19,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-3036","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=3036"}],"version-history":[{"count":13,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3036\/revisions"}],"predecessor-version":[{"id":5342,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3036\/revisions\/5342"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1666"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=3036"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=3036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}