Results 1 to 13 of 13

Thread: how to check latest version?

  1. #1
    Join Date
    Oct 2007
    Posts
    81

    how to check latest version?

    Is there a way to check the latest DA version by script?

    I am using the API to get the current version of DA, I am looking for a way to check the latest version by script without to having to look on the DA website.

    Is there a simple way to retrieve this?

  2. #2
    Join Date
    Feb 2010
    Location
    Meerlo, The Netherlands
    Posts
    295
    How about a ./build versions in the CLI?

  3. #3
    Join Date
    Mar 2005
    Posts
    5,283
    Just to be a little more specific

    /usr/local/directadmin/custombuild/build versions
    Floyd Morrissette Little Creek Hosting
    Web Hosting Solutions. Virtual Private Servers
    DirectAdmin Administration and Support
    Our focus is on quality customer support

  4. #4
    Join Date
    Feb 2010
    Location
    Meerlo, The Netherlands
    Posts
    295
    Quote Originally Posted by floyd View Post
    Just to be a little more specific

    /usr/local/directadmin/custombuild/build versions
    Correct

  5. #5
    Join Date
    Oct 2007
    Posts
    81
    As i wrote: i need to check this by a (website) script, this means not by the DA server itself
    Found it: http://www.directadmin.com/version.php
    Last edited by B3rt; 10-19-2010 at 06:41 AM.

  6. #6
    Join Date
    Mar 2005
    Posts
    5,283
    Quote Originally Posted by B3rt View Post
    As i wrote: i need to check this by a (website) script, this means not by the DA server itself
    And that is what we gave you. We gave a command line option that does not use directadmin itself.

    I think you meant versions.php. Using this would require you to parse and extract from the html the version, not a very easy thing to do. Whereas the command line gives you a simple:

    Code:
    /usr/local/directadmin/custombuild/build versions | grep "Latest version of DirectAdmin"
    Latest version of DirectAdmin: 1.36.2
    This is a lot easier to use data from that than a web page.
    Floyd Morrissette Little Creek Hosting
    Web Hosting Solutions. Virtual Private Servers
    DirectAdmin Administration and Support
    Our focus is on quality customer support

  7. #7
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,119
    Floyd, before doing this check don't you have to make sure that custombuild has the most current information?

    Jeff
    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  8. #8
    Join Date
    Mar 2005
    Posts
    5,283
    You may need to run ./build update_versions first.

    I set up the cron job to do that already anyway so I don't have to think about it.
    Floyd Morrissette Little Creek Hosting
    Web Hosting Solutions. Virtual Private Servers
    DirectAdmin Administration and Support
    Our focus is on quality customer support

  9. #9
    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    1,190
    If you want to check the version with php, it is easier to fetch this url then to execute from command line to a path a website shouldn't have access to. Removing the javascript is also not that big a trouble.

    PHP Code:
    <?php

    $version 
    file_get_contents('http://www.directadmin.com/version.php');
    $version str_replace("document.write('"''$version);
    $version str_replace("');"''$version);

    print 
    $version;

    ?>

  10. #10
    Join Date
    Mar 2005
    Posts
    5,283
    Quote Originally Posted by Arieh View Post
    If you want to check the version with php, it is easier to fetch this url then to execute from command line to a path a website shouldn't have access to.
    Nobody said anything about doing it form a web site. The OP wanted to do it with a script without using DA on his server or accessing the DA web site, according to the original post.
    Floyd Morrissette Little Creek Hosting
    Web Hosting Solutions. Virtual Private Servers
    DirectAdmin Administration and Support
    Our focus is on quality customer support

  11. #11
    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    1,190
    Starting post was vague indeed, but he replied that he found 'it', giving the vesion.php url and saying "(website) script".

  12. #12
    Join Date
    Mar 2005
    Posts
    5,283
    Yes without knowing exactly what he is trying to accomplish and how, its hard to give the best answer. Whoever comes across this thread now has 2 ways to choose from.
    Floyd Morrissette Little Creek Hosting
    Web Hosting Solutions. Virtual Private Servers
    DirectAdmin Administration and Support
    Our focus is on quality customer support

  13. #13
    Join Date
    Sep 2018
    Posts
    2

    Directadmin emails show version

    To find out which version of Direct Admin is running just look at the email notification after making a backup, in the bottom it says; Automated Message Generated by DirectAdmin 1.51.3

Similar Threads

  1. Manually updating DA, but not to latest version.
    By lindavdz in forum General Technical Discussion & Troubleshooting
    Replies: 3
    Last Post: 12-29-2007, 12:46 PM
  2. upgrade expat from version 1.95.6 to latest one
    By goldeneyes in forum 3rd Party Software Version Updates
    Replies: 3
    Last Post: 08-07-2007, 01:43 PM
  3. Updateing to latest version
    By netearth in forum General Technical Discussion & Troubleshooting
    Replies: 1
    Last Post: 08-31-2005, 01:54 PM
  4. The latest stable version of the Linux kernel is: 2.6.11.8
    By servertweak in forum System-Level Technical Discussion
    Replies: 11
    Last Post: 05-13-2005, 04:20 PM
  5. Redhat Enterprise 3 to latest version?
    By manny2008 in forum General Technical Discussion & Troubleshooting
    Replies: 2
    Last Post: 03-31-2005, 12:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •