update server with custombuild

source: http://www.directadmin.com/forum/showthread.php?t=19221

cd /usr/local/directadmin
wget http://files.directadmin.com/services/custombuild/1.2/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build

When you edit options.conf file, run:

./build update_data

to update to latest version (of whatever you downloaded 1.1 or 1.2)

./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 everything on option.conf:

./build all d

to install a specific app:

./build APPNAME

to update everything possible:

./build update_versions

sample options.conf:

#PHP settings. default_php possible values - 5 or 6
default_php=5
php5_cli=yes
php5_cgi=no
php6_cli=no
php6_cgi=no
php_ini=no
#Possible values - recommended or dist
php_ini_type=recommended
zend=no

#Possible values - 5.0, 5.1
mysql=5.1
mysql_inst=yes
mysql_backup=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
atmail=no
squirrelmail=yes
roundcube=yes
uebimiau=no

#Mail options
exim=yes
mail-header-patch=yes
dovecot=yes
eximconf=yes

#Statistics
awstats=no
webalizer=yes

#FTP options
proftpd=yes

#Jailed shell
jail=no

#Custombuild options
custombuild=1.2
autover=no
bold=yes
clean=yes
cleanapache=no
clean_old_webapps=no
fileserver=1

#Cron settings
cron=no
email=[email protected]
notifications=yes
updates=no

Troubleshooting

if you run into ssl or ssh errors try this:

e.g. I ran into ... " undefined reference to `EVP_CIPHER_CTX_block_size' " after upgrading SSL with latest version... so i had to downgrade before upgrading php to 5.2.7

# yum install openssl openssl-devel -y
# yum install openssh -y

after this, i re-ran custombuild 1.2 and everything worked.

Also had to recompile eaccelerator after upgrading php ....

also, if you upgrade to mysql 5.1 directadmin will still need a missing library file

source: http://help.directadmin.com/item.php?id=236

error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file

If you're running a DA server, recently updated mysql to version 5.1, you'll still need your old libmysqlclient.so files from mysql 5.0.

This would be the error you're seeing:

[root@server directadmin]# service directadmin restart
Stopping DirectAdmin: [FAILED]
Starting DirectAdmin: /usr/local/directadmin/directadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory [FAILED]
To resolve the issue, simply grab the old libmysqlclient.so.15 file from our server.

Example, for CentOS 5 - 64-bit, run:

wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15
chmod 755 /usr/lib64/libmysqlclient.so.15
ldconfig

On non-64-bit systems, the file would go into /usr/lib/libmysqlclient.so.15

Tags: Linux DirectAdmin custombuild upgrade