Problem with custombuild build on new install

am_dj

New member
Joined
Jan 16, 2015
Messages
3
Hi All

I'm hoping someone can assist me in running custom build on a fresh install of Direct Admin.

When running ./build i'm getting the following errors, halting operation:
./build: line 2170: [: : integer expression expected
.ustomBuild 2.0 does support Apache 2.4 only. Please check your apache_ver value in the options.conf file: 2.4

Line at 2170 =
Code:
# Minimal required version of Apache 2.4
		if [ "${AP2_MINOR_VER}" -lt 9 ]; then
			do_exit 1 "Minimal required version of Apache is 2.4.9. Please uncustomize your versions.txt file."
		fi

A search on the second error gives the snippet:
Code:
		if [ "${APACHE_VER_OPT}" != "2.4" ]; then
			echo "CustomBuild 2.0 does support Apache 2.4 only. Please check your apache_ver value in the options.conf file: ${APACHE_VER_OPT}."
			exit 1;
		fi

I did some outputting of vars in the build script and have the following values:

Code:
AP2_MINOR_VER : .
APACHE2_VER : .
APACHE_VER_OPT : .2.4
APACHE_VER_DEF : .2.4

Server is
Debian 7.8 64bit
Apache/2.4.10

I'm not very experienced in Server admin so any help you could provide would be great :)
 
My options file I am using

Code:
#PHP Settings
php1_release=5.3
php1_mode=mod_php
php2_release=5.5
php2_mode=fastcgi
php3_release=5.4
php3_mode=fastcgi
opcache=no
htscanner=no
php_ini=no
php_timezone=Europe/London
php_ini_type=production
ioncube=no
zend=no
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.6
mysql_inst=yes
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=apache
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
secure_htaccess=no
harden_symlinks_patch=yes
use_hostname_for_alias=auto
redirect_host=<my host>
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=no
roundcube=yes

#ClamAV-related Settings
clamav=yes
clamav_exim=yes
proftpd_uploadscan=no
pureftpd_uploadscan=no
suhosin_php_uploadscan=no

#Mail Settings
exim=no
eximconf=no
spamassassin=yes
dovecot=yes
pigeonhole=no

#Jail Settings
jail=no

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=no
webalizer=yes

#CustomBuild Settings
custombuild=2.0
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files4.directadmin.com

#Cronjob Settings
cron=no
cron_frequency=weekly
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
slibtool=yes
curl=yes

#Expert Settings (!)
zlib=no
new_zlib=no
new_xml2=yes
new_pcre=no
new_suphp=no
old_apr_util=no

modsecurity=no
modsecurity_ruleset=comodo
dovecot_conf=no
eximconf_release=2.1
blockcracking=no
easy_spam_fighter=no
webapps_inbox_prefix=yes
 
Your versions.txt file seems to be broken. Please try "./build update".
 
I've managed to overcome the issue by running /build update and making sure the download server was set correctly (files.directadmin.com) in my options.conf. It then allowed the update to complete and fix my problem. :)
 
Back
Top