View Full Version : CustomBuild 1.1.16 and 1.2.10
smtalk
01-08-2009, 10:55 AM
Many new features and bugfixes, huge code clean-up :)
Changelog:
* Merged doVersions() and doVersionsUpdate().
* Added setOpt() function. So, now options can be changed this this way: ./build set option_name value.
* Dramatic speed improvement on servers with more than 1 CPU (using make -j cores instead of make for Apache, PHP and exim).
* It's now possible to use custom apache configuration files (just place them in custom/ap1(or 2)/conf.
* Support for FreeBSD 7.1.
* More 'silent' RoundCube installation.
* If default PHP is installed as CGI - .'/build squirrelmail/roundcube/atmail/uebimiau' doesn't chown any files/folders to apache user.
* Fixed MySQL installation bug on Debian systems. If MySQL package is not downloaded - script does not try to install it.
These versions should be uploaded to DA servers soon. If you want to try them now:
1.1.16
cd /usr/local/directadmin/custombuild
wget -O build http://www.custombuild.eu/build-1.1.16
1.2.10
cd /usr/local/directadmin/custombuild
wget -O build http://www.custombuild.eu/build-1.2.10
Not Found
The requested URL /build-1.1.16 was not found on this server.
smtalk
01-08-2009, 11:04 AM
Try again :) It was named after 1.1.17 (mistype..), sorry.
Might want to change:
if [ "`cat /proc/cpuinfo | grep 'core id' | wc -l`" -gt 0 ]; then
CPU_CORES="`cat /proc/cpuinfo | grep 'core id' | wc -l`"
fi
To:
if [ -f /proc/cpuinfo ]; then
if [ "`cat /proc/cpuinfo | grep 'core id' | wc -l`" -gt 0 ]; then
CPU_CORES="`cat /proc/cpuinfo | grep 'core id' | wc -l`"
fi
fi
Because we get "cat: /proc/cpuinfo: No such file or directory" on FreeBSD.
Also noticed a ./build update drops it back to 1.1.15
smtalk
01-08-2009, 11:50 AM
Might want to change:
if [ "`cat /proc/cpuinfo | grep 'core id' | wc -l`" -gt 0 ]; then
CPU_CORES="`cat /proc/cpuinfo | grep 'core id' | wc -l`"
fi
To:
if [ -f /proc/cpuinfo ]; then
if [ "`cat /proc/cpuinfo | grep 'core id' | wc -l`" -gt 0 ]; then
CPU_CORES="`cat /proc/cpuinfo | grep 'core id' | wc -l`"
fi
fi
Because we get "cat: /proc/cpuinfo: No such file or directory" on FreeBSD.
It's not a huge problem (you can ignore it). I'll add "sysctl -a | grep cpu" for FreeBSD soon.
Also noticed a ./build update drops it back to 1.1.15
That's normal, because 1.1.16 is not on DA servers yet.
jw00dy
01-08-2009, 04:02 PM
What is the difference between the 1.2.x version and hte 1.1.x version?
smtalk
01-09-2009, 12:28 AM
1.2 supports PHP6.
Amazing release smtalk, the cores thing will surely help on building on new machines (I guess a lot of people here have at least dual core)
Thank you smtalk! Greata script. Made my life much easier!
Just a note:
#./build update
switched my custombuild back to 1.2.9
i think it could go with 1.2.10 because its stable now!
smtalk
01-13-2009, 01:45 AM
AxlF, thanks.
Both 1.1.16 and 1.2.10 have been uploaded to DA servers.
smtalk
01-13-2009, 08:54 AM
Because we get "cat: /proc/cpuinfo: No such file or directory" on FreeBSD.
As I've told you it's not a problem, but CPU cores detection on FreeBSD has been included to CustomBuild 1.1.17 and 1.2.11 ( http://directadmin.com/forum/showthread.php?t=29301 ) :)
Not Found
The requested URL /build-1.1.17 was not found on this server. www.custombuild.eu
:P
smtalk
01-13-2009, 12:40 PM
I didn't tell you it has been uploaded to custombuild.eu :) But per your request it's there now.
Samplex
04-01-2009, 01:24 AM
I update van 1.1.18 to 1.2.10 but i got an error..
wget -O build http://www.custombuild.eu/build-1.2.10
--09:16:37-- http://www.custombuild.eu/build-1.2.10
Resolving www.custombuild.eu... 77.79.12.73
Connecting to www.custombuild.eu|77.79.12.73|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 216688 (212K) [text/plain]
Saving to: `build'
100%[=====================================================>] 216,688 359K/s in 0.6s
09:16:42 (359 KB/s) - `build' saved [216688/216688]
[root@custombuild]# ./build
Wrong php_ini_type set in options.conf.
What wrong with the php ini type?
smtalk
04-01-2009, 04:17 AM
If you want to upgrade 1.1 to 1.2 then set custombuild=1.2 in the options.conf. Set php_ini_type=recommended.
Scolpy
04-01-2009, 01:33 PM
Thanks! Upgraded :)
Samplex
04-02-2009, 12:53 PM
If you want to upgrade 1.1 to 1.2 then set custombuild=1.2 in the options.conf. Set php_ini_type=recommended.
Change the version from 1.1 to 1.2 but no it doesnt work anymore at all.. :(
Oke redownloaded the 1.20.10 and if i run it now it says:
[root@ custombuild]# ./build
Can not install PHP6 and PHP5 as CLI.
What am i doing wrong? Is 1.2 still beta or should ik stick to 1.1?
smtalk
04-02-2009, 01:31 PM
./build set php6_cli no
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.