Standard Install


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » DirectAdmin » Installation

Standard InstallLast Modified: Aug 3, 2019, 1:57 pm
For most people, you'd be using a standard install.   We have a full install guide listed here:
https://directadmin.com/installguide.php

but this will be an abbreviated guide, on the assumption you're already familiar with the install requirements.

  1. Start by installing all pre-install requirements.
  2. Check over your license information in https://www.directadmin.com/clients to see which OS the license is set to, and confirm the correct OS is set in the license.   This controls which binaries are downloaded, so it's important it's set correctly.
  3. Grab the setup.sh and install DirectAdmin:

    cd /root
    wget directadmin.com/setup.sh
    chmod 755 setup.sh
    ./setup.sh

    and follow the instructions and answer all questions.
  4. While the setup.sh is running, I like to open a 2nd ssh terminal to get the perl cpan modules going, if SpamAssassin is going to be installed.  This takes a while, and is unrelated to the main install, so the sooner the better.  Basically just step #1 of this guide for now:
    https://help.directadmin.com/item.php?id=36This step is not required (eg: rspamd is another option, compiles and runs much more quickly)
  5. After the setup.sh install is done, the login info should be displayed.  If you lose, it a copy of that output can be obtained by typing:

    tail -n 21 /var/log/directadmin/install.log

  6. At this point, you should have a vanilla install of DirectAdmin, but there are other steps we recommend.  I'll list the main ones here.
  7. Secure DA with https on 2222 using LetsEncrypt:
    https://help.directadmin.com/item.php?id=629
  8. Install CSF:

    cd /root
    wget http://files.directadmin.com/services/all/csf/csf_install.sh
    /bin/sh ./csf_install.sh

    Be sure to take note of the ssh port question, if you're not running on 22.
  9. Secure php's disable_functions:

    cd /usr/local/directadmin/custombuild
    ./build secure_php

  10. Setup CustomBuild to check for new versions weekly, but not update automatically (can be setup however you wish):

    cd /usr/local/directadmin/custombuild
    ./build set cron yes
    ./build set email your@email.com
    ./build cron

    More information on this in step #3 of the Basic System Security guide. Note that the CustomBuild 2.0 plugin should also be installed to new DA boxes by default now, so you'll see notices in the Admin Level interface.

There are many other things you can do, but this is a solid starting point.
 
Related Helpfiles
How to enable SpamAssassin on your server.
Basic system security
Common pre-install commands
I need a firewall. What are my options?
Installing an SSL certificate for your hostname using LetsEncrypt
Command-Line / Script installl

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST