{"id":2256,"date":"2019-01-02T10:12:26","date_gmt":"2019-01-02T10:12:26","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/api\/list-of-outdated-installations-api\/"},"modified":"2021-11-25T09:14:24","modified_gmt":"2021-11-25T09:14:24","slug":"list-of-outdated-installations-api","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/api\/list-of-outdated-installations-api\/","title":{"rendered":"List of Outdated Installations API"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This page will guide you how to use the Softaculous API<br><\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note<\/strong>&nbsp;: This API is accessible only by&nbsp;<strong>root<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Get the Outdated Installations<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Make a file on your web server and add the following code to the file to get the list of outdated installations<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">&lt;?php\n\n\/\/\/\/\/\/\/\/Do not remove this code\/\/\/\/\/\/\/\/\ndefine('SOFTACULOUS', 1);\ninclude('\/PATH\/TO\/SOFTACULOUS\/enduser\/universal.php');\ninclude('\/PATH\/TO\/SOFTACULOUS\/sdk\/sdk.php');\n\/\/\/\/\/\/\/\/Do not remove this code\/\/\/\/\/\/\/\/\n\n\/\/ This will list the outdated installations\n$array = installations(true);\n?>\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>\/PATH\/TO\/SOFTACULOUS\/ will differ from panel to panel<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">cPanel&nbsp;: \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/\nDirect Admin&nbsp;: \/usr\/local\/directadmin\/plugins\/softaculous\/\nPlesk, H-Sphere and Interworx&nbsp;: \/usr\/local\/softaculous\/\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>By executing the above code you will get the list of outdated installations of scripts installed by Softaculous in&nbsp;<strong>$array<\/strong><\/li><li>The format of the result is explained below:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">Array (     <br>  [USERNAME] =&gt; Array         <br>    (             <br>       [SCRIPTID] =&gt; Array                 <br>         (                     <br>           [INSTALLATION_ID] =&gt; Array                         <br>             (                             <br>               [insid] =&gt; INSTALLATION_ID                             <br>               [sid] =&gt; SCRIPTID                             <br>               [ver] =&gt; VERSION_INSTALLED<br>               [itime] =&gt; INSTALLATION_TIME<br>               [softpath] =&gt; PATH_TO_INSTALLATION<br>               [softurl] =&gt; INSTALLATION_URL<br>               [softdb] =&gt; DATABASE_NAME<br>               [softdbuser] =&gt; DATABASE_USER<br>               [softdbhost] =&gt; DATABASE_HOST<br>               [softdbpass] =&gt; DATABASE_PASSWORD <br>             )<br>        ) <br>    )<br>)                             <\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>You can use the above data for emailing the users or any other purpose you need.<\/li><\/ul>\n","protected":false},"featured_media":0,"parent":1683,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2256","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2256","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=2256"}],"version-history":[{"count":5,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2256\/revisions"}],"predecessor-version":[{"id":5119,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2256\/revisions\/5119"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1683"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=2256"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}