Learn about Centmin Mod LEMP Stack today
Register Now

DirectAdmin

Discussion in 'Virtual Private Server (VPS) hosting' started by Matt, Jun 4, 2014.

  1. Matt

    Matt Well-Known Member

    926
    414
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +669
    Local Time:
    6:33 AM
    1.5.15
    MariaDB 10.2
    Just had my first job working on a directadmin VPS today. It's like a very badly done centminmod setup!

    Just some of the config options (it defaults to the PHP5.3 and installs ioncube and zend)

    Code:
    #PHP settings. default_php possible values - 5 or 6, php5_ver - 5.2, 5.3, 5.4 or 5.5
    default_php=5
    php5_ver=5.4
    php5_cli=no
    php5_cgi=yes
    php6_cli=no
    php6_cgi=no
    php_ini=no
    #Possible values - recommended or dist
    php_ini_type=recommended
    ioncube=no
    zend=no
    php-devel=yes
    
    
    #Possible values - 5.0, 5.1, 5.5, 5.6
    mysql=5.5
    mysql_inst=no
    mysql_backup=yes
    mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
    
    #Possible values - 1.3, 2.0, 2.2, 2.4
    apache_ver=2.2
    secure_htaccess=yes
    harden-symlinks-patch=yes
    
    #Web applications
    phpmyadmin=yes
    phpmyadmin_ver=3
    atmail=yes
    squirrelmail=yes
    roundcube=yes
    uebimiau=yes
    
    #Mail options
    exim=yes
    eximconf=no
    clamav=no
    mailman=no
    spamassassin=no
    mail-header-patch=no
    dovecot=yes
    I had to re-build PHP just to enable php-devel to I could phpize xcache and built that.

     
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,069
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    8:33 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Thanks for the info :)

    I am already in love with this forum :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @pamamolf glad you like :)

    @Matt never looked into Direct Admin internals, but interesting indeed.
     
  4. Matt

    Matt Well-Known Member

    926
    414
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +669
    Local Time:
    6:33 AM
    1.5.15
    MariaDB 10.2
    I first logged in through the web page, and could see no options to do anything in there to update/rebuild/install anything. It's all done on the command line, via the options.conf.

    You set the options you want, and then update it:

    Code:
    [root@srv custombuild]# ./build update
    --2014-06-03 08:54:49--  http://files6.directadmin.com/services/custombuild/1.2/custombuild.tar.gz
    Resolving files6.directadmin.com... 62.148.181.110, 2001:16e8:1:4:62:148:181:110
    Connecting to files6.directadmin.com|62.148.181.110|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 116423 (114K) [application/x-gzip]
    Saving to: `./custombuild.tar.gz'
    
    100%[===================================================================================================================================================================================================>] 116,423     --.-K/s   in 0.01s  
    
    2014-06-03 08:54:50 (11.5 MB/s) - `./custombuild.tar.gz' saved [116423/116423]
    
    extracting custombuild.tar.gz ...
    custombuild/
    custombuild/build
    custombuild/configure/
    custombuild/configure/dovecot/
    custombuild/configure/dovecot/dovecot.conf
    custombuild/configure/pureftpd/
    custombuild/configure/pureftpd/configure.pureftpd
    custombuild/configure/suphp/
    custombuild/configure/suphp/configure.php6
    custombuild/configure/suphp/configure.php5
    custombuild/configure/suphp/configure.suphp
    custombuild/configure/proftpd/
    custombuild/configure/proftpd/configure.proftpd
    custombuild/configure/ap1/
    custombuild/configure/ap1/configure.apache_ssl
    custombuild/configure/ap1/configure.php6
    custombuild/configure/ap1/conf/
    custombuild/configure/ap1/conf/extra/
    custombuild/configure/ap1/conf/extra/httpd-userdir.conf
    custombuild/configure/ap1/conf/extra/httpd-vhosts.conf
    custombuild/configure/ap1/conf/extra/httpd-languages.conf
    custombuild/configure/ap1/conf/extra/httpd-autoindex.conf
    custombuild/configure/ap1/conf/extra/httpd-ssl.conf
    custombuild/configure/ap1/conf/extra/httpd-default.conf
    custombuild/configure/ap1/conf/extra/httpd-alias.conf
    custombuild/configure/ap1/conf/extra/httpd-multilang-errordoc.conf
    custombuild/configure/ap1/conf/extra/httpd-deflate.conf
    custombuild/configure/ap1/conf/extra/httpd-info.conf
    custombuild/configure/ap1/conf/extra/directadmin-vhosts.conf
    custombuild/configure/ap1/conf/mime.types
    custombuild/configure/ap1/conf/magic
    custombuild/configure/ap1/conf/httpd.conf
    custombuild/configure/ap1/configure.php5
    custombuild/configure/ap2/
    custombuild/configure/ap2/cert_config
    custombuild/configure/ap2/configure.php6
    custombuild/configure/ap2/conf/
    custombuild/configure/ap2/conf/extra/
    custombuild/configure/ap2/conf/extra/httpd-userdir.conf
    custombuild/configure/ap2/conf/extra/httpd-vhosts.conf
    custombuild/configure/ap2/conf/extra/httpd-languages.conf
    custombuild/configure/ap2/conf/extra/httpd-autoindex.conf
    custombuild/configure/ap2/conf/extra/httpd-ssl.conf
    custombuild/configure/ap2/conf/extra/httpd-default.conf
    custombuild/configure/ap2/conf/extra/httpd-alias.conf
    custombuild/configure/ap2/conf/extra/httpd-dav.conf
    custombuild/configure/ap2/conf/extra/httpd-directories-old.conf
    custombuild/configure/ap2/conf/extra/httpd-mpm.conf
    custombuild/configure/ap2/conf/extra/httpd-directories-new.conf
    custombuild/configure/ap2/conf/extra/httpd-multilang-errordoc.conf
    custombuild/configure/ap2/conf/extra/httpd-deflate.conf
    custombuild/configure/ap2/conf/extra/httpd-mpm.conf_2.0
    custombuild/configure/ap2/conf/extra/httpd-info.conf
    custombuild/configure/ap2/conf/extra/directadmin-vhosts.conf
    custombuild/configure/ap2/conf/extra/httpd-manual.conf
    custombuild/configure/ap2/conf/mime.types
    custombuild/configure/ap2/conf/magic
    custombuild/configure/ap2/conf/httpd.conf
    custombuild/configure/ap2/conf/httpd.conf_2.0
    custombuild/configure/ap2/configure.php5
    custombuild/configure/ap2/configure.apache
    --2014-06-03 08:54:50--  http://files6.directadmin.com/services/custombuild/versions.txt
    Resolving files6.directadmin.com... 62.148.181.110, 2001:16e8:1:4:62:148:181:110
    Connecting to files6.directadmin.com|62.148.181.110|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 7789 (7.6K) [text/plain]
    Saving to: `./versions.txt'
    
    100%[===================================================================================================================================================================================================>] 7,789       --.-K/s   in 0.001s 
    
    2014-06-03 08:54:50 (11.8 MB/s) - `./versions.txt' saved [7789/7789]
    
    File already exists:    servers.txt
    MD5 Checksum on servers.txt passed.
    File already exists:    httpd-2.2.27.tar.gz
    MD5 Checksum on httpd-2.2.27.tar.gz passed.
    File already exists:    apr-1.5.0.tar.gz
    MD5 Checksum on apr-1.5.0.tar.gz passed.
    File already exists:    apr-util-1.5.3.tar.gz
    MD5 Checksum on apr-util-1.5.3.tar.gz passed.
    File already exists:    httpd_2
    File already exists:    httpd_2_freebsd
    File already exists:    httpd_2_debian
    File already exists:    mime.types
    File already exists:    mod_perl-2.0.8.tar.gz
    MD5 Checksum on mod_perl-2.0.8.tar.gz passed.
    File already exists:    curl-7.37.0.tar.gz
    MD5 Checksum on curl-7.37.0.tar.gz passed.
    File already exists:    pcre-8.20.tar.gz
    MD5 Checksum on pcre-8.20.tar.gz passed.
    File already exists:    libmcrypt-2.5.8.tar.gz
    MD5 Checksum on libmcrypt-2.5.8.tar.gz passed.
    File already exists:    mhash-0.9.9.9.tar.gz
    MD5 Checksum on mhash-0.9.9.9.tar.gz passed.
    File already exists:    freetype-2.5.3.tar.gz
    MD5 Checksum on freetype-2.5.3.tar.gz passed.
    File already exists:    libiconv-1.14.tar.gz
    MD5 Checksum on libiconv-1.14.tar.gz passed.
    File already exists:    libxml2-2.7.6.tar.gz
    MD5 Checksum on libxml2-2.7.6.tar.gz passed.
    File already exists:    libxslt-1.1.28.tar.gz
    MD5 Checksum on libxslt-1.1.28.tar.gz passed.
    File already exists:    icu4c-4_8_1_1-src.tgz
    MD5 Checksum on icu4c-4_8_1_1-src.tgz passed.
    Downloading             php-5.4.29.tar.gz...
    --2014-06-03 08:54:51--  http://files6.directadmin.com/services/custombuild/php-5.4.29.tar.gz
    Resolving files6.directadmin.com... 62.148.181.110, 2001:16e8:1:4:62:148:181:110
    Connecting to files6.directadmin.com|62.148.181.110|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 15372263 (15M) [application/x-gzip]
    Saving to: `/usr/local/directadmin/custombuild/php-5.4.29.tar.gz'
    
    100%[===================================================================================================================================================================================================>] 15,372,263  11.2M/s   in 1.3s   
    
    2014-06-03 08:54:52 (11.2 MB/s) - `/usr/local/directadmin/custombuild/php-5.4.29.tar.gz' saved [15372263/15372263]
    
    MD5 Checksum on php-5.4.29.tar.gz passed.
    File already exists:    webalizer-2.23-08-src.tgz
    MD5 Checksum on webalizer-2.23-08-src.tgz passed.
    File already exists:    suphp-0.7.1.tar.gz
    MD5 Checksum on suphp-0.7.1.tar.gz passed.
    File already exists:    exim-4.82.1.tar.gz
    MD5 Checksum on exim-4.82.1.tar.gz passed.
    File already exists:    exim
    File already exists:    exim_freebsd
    File already exists:    exim_debian
    File already exists:    dovecot-2.2.13.tar.gz
    MD5 Checksum on dovecot-2.2.13.tar.gz passed.
    File already exists:    dovecot.boot
    File already exists:    dovecot.boot.freebsd
    File already exists:    dovecot.boot.debian
    File already exists:    dovecot.conf
    File already exists:    exim.conf.dovecot.patch
    MD5 Checksum on exim.conf.dovecot.patch passed.
    File already exists:    autoconf-2.68.tar.gz
    MD5 Checksum on autoconf-2.68.tar.gz passed.
    File already exists:    automake-1.13.1.tar.gz
    MD5 Checksum on automake-1.13.1.tar.gz passed.
    File already exists:    m4-1.4.16.tar.gz
    MD5 Checksum on m4-1.4.16.tar.gz passed.
    File already exists:    libtool-2.4.2.tar.gz
    MD5 Checksum on libtool-2.4.2.tar.gz passed.
    [root@srv custombuild]# 
    and then build all / php / mysql / apache etc:

    Code:
    [root@srv custombuild]# ./build php d
    File already exists:    php-5.4.29.tar.gz
    MD5 Checksum on php-5.4.29.tar.gz passed.
    File already exists:    curl-7.37.0.tar.gz
    MD5 Checksum on curl-7.37.0.tar.gz passed.
    Found /usr/local/directadmin/custombuild/curl-7.37.0.tar.gz
    Extracting ...
    Done.
    Configuring curl-7.37.0...
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether to enable debug build options... no
    checking whether to enable compiler optimizer... (assumed) yes
    checking whether to enable strict compiler warnings... no
    checking whether to enable compiler warnings as errors... no
    checking whether to enable curl debug memory tracking... no
    checking whether to enable hiding of library internal symbols... yes
    checking whether to enable c-ares for DNS lookups... no
    checking for path separator... :
    checking for sed... /bin/sed
    checking for grep... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ar... /usr/bin/ar
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah sort of like centmin.sh in Centmin Mod :)
     
  6. Matt

    Matt Well-Known Member

    926
    414
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +669
    Local Time:
    6:33 AM
    1.5.15
    MariaDB 10.2
    Yep, but I don't see the point in having a front end panel, when they make you do things on the command line like that. Defeats the object IMO, so might as well go full panel-less
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    True... although I prefer no front end panel for Centmin Mod = one less security concern for me as a developer :D