Update CentOS / DirectAdmin Server with custombuild 2.0

Here is how to use latest version of custombuild 2.0 . The commands for custombuild 2.0 are basically identical to custombuild 1.1 and 1.2, so all this stuff should look familiar. Here are instructions to custombuild 1.x.

Update server via custombuild

Download latest version of custombuild 2.0

cd /usr/local/directadmin
mv custombuild custombuild-01
wget http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build

Setup options.conf: Change PHP version to 5.5 (5.5 is stable, if your setup works with 5.3, it will likely work with 5.5), Apache to 2.4, and mysql to 5.6 (plus set it to install)

vi options.conf

now change to the following:

php1_release=5.5
apache_ver=2.4
mysql=5.6
mysql_inst=yes

Here is the entire options.conf

#PHP settings.
#Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4, 5.5, no. php1/php2_mode: mod_php, fastcgi, php-fpm or suphp)
php1_release=5.5
php2_release=no
php1_mode=mod_php
php2_mode=php-fpm
htscanner=yes
php_ini=yes
php_timezone=PST
#Possible values - production or development
php_ini_type=production
ioncube=no
x-mail-header=yes
zend=no

#HTTP server. Possible values: apache, nginx
webserver=apache

#Apache settings
#Possible value: 2.4
apache_ver=2.4
mod_ruid2=yes
secure_htaccess=no
harden-symlinks-patch=yes
use_hostname_for_alias=auto
redirect_host=23-252-123-226.static.webnx.com
redirect_host_https=yes

#Possible values - 5.1, 5.5, 5.6
mysql=5.6
mysql_inst=yes
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Web applications
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes

#Mail options
exim=no
eximconf=no
clamav=no
spamassassin=no
dovecot=yes
pigeonhole=no

#Statistics
awstats=no
webalizer=yes

#FTP options - possible values: proftpd, pureftpd
ftpd=pureftpd

#Jailed shell
jail=no

#Autoconf/automake/libtool options
autoconf=yes
automake=yes
libtool=yes
curl=yes

#versions of zlib, apr_util and libxml2 (experts only)
zlib=no
new_zlib=no
new_xml2=yes
new_pcre=no
new_suphp=no
old_apr_util=no

#Custombuild options
custombuild=2.0
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files.directadmin.com

#Cron settings
cron=no
cron_frequency=daily
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#Cloudlinux settings
cloudlinux=no
cagefs=no

Now do the following:

# this is required if you change options.conf
./build update

# this will display everything that will be updated
./build versions 

# this will install everything (but you should do ./build rewrite_confs after.
./build all d 

Or if you upgraded from an custombuild 1.x then the following is recommended:


 # these 3 are required if going from custombuild 1.x; but you should run them if you enable 'php-fpm', or if Apache doesn't work.
./build apache
./build php n
./build rewrite_confs

# or you can do the above on a single line
./build apache && ./build php -n && ./build rewrite_confs


Other custombuild commands

To start from scratch and remove all downloads and compiled data

./build clean
./build update

to see what updates are available for your system run:

./build versions

To see what your option.conf file is compiled as:

./build options

To install a specific app:

./build APPNAME

To update everything possible:

./build update_versions

To start from scratch and update everything possible:

./build clean && ./build update && ./build update_versions
Tags: linux server custombuild