Discussion about CustomBuild

Code:
./build rewrite_confs

I have updated all - ./build all d the CustomBuild 1.1 - after that does not start.

Does not operate ./build rewrite_confs


P.S. In what file now to connect libraries to PHP?
Earlier customapache/configure.php_ap2
 
Last edited:
Try:
Code:
cd /usr/local/directadmin/custombuild
rm -f /usr/local/directadmin/scripts/packages/squirrelmail-1.4.13.tar.gz
./build squirrelmail



[root@host ~]# cd /usr/local/directadmin/custombuild
[root@host custombuild]# rm -f /usr/local/directadmin/scripts/packages/squirrelmail-1.4.13.tar.gz
[root@host custombuild]# ./build squirrelmail

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error exit delayed from previous errors
cp: `/var/www/html/squirrelmail/data' and `/var/www/html/squirrelmail-1.4.13/data' are the same file
[root@host custombuild]#
 
Hello.

Try to run custombuild 1.1 on a new server clean server....
Run "./build all d". When program come to "./build libxslt" i received this error:

./build libxslt checking for libxml libraries >= 2.6.27... configure: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/. :confused:

custombuild 1.2 give the same error...but libxml2 are installed (2.6.30). I have run "./build libxml2" separately


OK, first fixed with "ldconfig". :)

Now I have almost the same problem on another server....
when "./build libxslt"
------
checking for libxml libraries >= 2.6.27... configure: error: Version 2.6.16 found.
You need at least libxml2 2.6.27 for this version of libxslt
Done. Making libxslt-1.1.22...
Trying to make libxslt...
make: *** No targets specified and no makefile found. Stop.
------
But libxml2 2.6.30 are installed?
/usr/include/libxml2/libxml

Where do you pick up 2.6.16 from?

I find:
/usr/share/doc/libxml2-python-2.6.16
and
/usr/share/doc/libxml2-devel-2.6.16
But this is something else? Or???

Have try custombuild 1.2, same error?

Any help?
 
Last edited:
I am getting this error when try ./build apache

checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file

I am on centos 5.

My configure/ap2/configure.apache:

#!/bin/sh
"./configure" \
"--prefix=/etc/httpd" \
"--exec-prefix=/etc/httpd" \
"--bindir=/usr/bin" \
"--sbindir=/usr/sbin" \
"--sysconfdir=/etc/httpd/conf" \
"--enable-so" \
"--enable-dav" \
"--enable-dav-fs" \
"--enable-dav-lock" \
"--enable-suexec" \
"--enable-deflate" \
"--enable-unique-id" \
"--with-suexec-caller=apache" \
"--with-suexec-docroot=/" \
"--with-suexec-gidmin=100" \
"--with-suexec-logfile=/var/log/httpd/suexec_log" \
"--with-suexec-uidmin=100" \
"--with-suexec-userdir=public_html" \
"--with-suexec-bin=/usr/sbin/suexec" \
"--with-included-apr" \
"--with-expat=builtin" \
"--with-pcre=/usr/local" \
"--includedir=/usr/include/apache" \
"--libexecdir=/usr/lib/apache" \
"--datadir=/var/www" \
"--localstatedir=/var" \
"--enable-logio" \
"--enable-ssl" \
"--enable-rewrite" \
"--with-ssl=/usr" \
"--enable-headers"
 
You don't need to run mod_fcgid module if you want to run PHP as CGI. If you want PHP to be served via FastCGI, Apache must be compiled with mod_fcgid support

Thanks smtalk.

So just for clarification, in the default build we're all running PHP as CGI and not FastCGI.

In order to obtain and use FastCGI (which will give us approx the speed of mod_php) we will need to enable mod_fcgid in Apache -- and obviously update the Apache configs to suit.

From my reading... FastCGI will work with suphp (for user separation) but will also ensure we get decent speed.

Something I'll investigate. Has anyone got any experience with this? :confused:
 
Just tried to rebuild everything, same problem as well. CentOS5, although mine says: "error: Version 2.6.26 found"

libxslt couldn't be compiled. Eventhough I did a ./build libxml2 just before.

OK, first fixed with "ldconfig". :)

Now I have almost the same problem on another server....
when "./build libxslt"
------
checking for libxml libraries >= 2.6.27... configure: error: Version 2.6.16 found.
You need at least libxml2 2.6.27 for this version of libxslt
Done. Making libxslt-1.1.22...
Trying to make libxslt...
make: *** No targets specified and no makefile found. Stop.
------
But libxml2 2.6.30 are installed?
/usr/include/libxml2/libxml

Where do you pick up 2.6.16 from?

I find:
/usr/share/doc/libxml2-python-2.6.16
and
/usr/share/doc/libxml2-devel-2.6.16
But this is something else? Or???

Have try custombuild 1.2, same error?

Any help?
 
Try to remove libxml2-dev and run: ./build libxml2; ./build libxslt
 
jayzee, regarding:
Code:
checking for zlib location... not found

checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

 

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file
Type:
Code:
cd /usr/local/directadmin/custombuild
./build clean
./build update
./build zlib
./build all d
John
 
[root@host ~]# cd /usr/local/directadmin/custombuild
[root@host custombuild]# rm -f /usr/local/directadmin/scripts/packages/squirrelmail-1.4.13.tar.gz
[root@host custombuild]# ./build squirrelmail

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error exit delayed from previous errors
cp: `/var/www/html/squirrelmail/data' and `/var/www/html/squirrelmail-1.4.13/data' are the same file
[root@host custombuild]#


any help for this ?
 
Try:

./build update_data

John


[root@host ~]# cd /usr/local/directadmin/custombuild
[root@host custombuild]# ./build clean
[root@host custombuild]# ./build update_data
File already exists: httpd-2.2.6.tar.gz
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.3.tar.gz
File already exists: curl-7.17.1.tar.gz
File already exists: pcre-7.4.tar.gz
File already exists: libmcrypt-2.5.8.tar.gz
File already exists: mhash-0.9.9.tar.gz
File already exists: freetype-2.3.5.tar.gz
File already exists: libiconv-1.12.tar.gz
File already exists: php-4.4.8.tar.gz
File already exists: php-5.2.5.tar.gz
File already exists: php-4.4.8-mail-header.patch
File already exists: php-5.2.5-mail-header.patch
File already exists: webalizer-2.01-10-src.tgz
File already exists: proftpd-1.3.1.tar.gz
File already exists: suphp-0.6.2.tar.gz
File already exists: dovecot-1.0.10.tar.gz
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
File already exists: autoconf-2.61.tar.gz
File already exists: automake-1.10.tar.gz
File already exists: libtool-1.5.24.tar.gz
File already exists: ZendOptimizer-3.2.8-linux-glibc21-i386.tar.gz
[root@host custombuild]# ./build squirrelmail

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error exit delayed from previous errors
cp: `/var/www/html/squirrelmail/data' and `/var/www/html/squirrelmail-1.4.13/data' are the same file
 
What's the output of:
Code:
ls -la squirrel*
We want to make sure that the squirrelmail file is deleted.

John
 
Just tried to rebuild everything, same problem as well. CentOS5, although mine says: "error: Version 2.6.26 found"

libxslt couldn't be compiled. Eventhough I did a ./build libxml2 just before.


I give up. I reinstall the whole server, now it works fine again.
First Customapache, then Custombuild, Custombuild don't work from the beginning, received some php error.
 
What's the output of:
Code:
ls -la squirrel*
We want to make sure that the squirrelmail file is deleted.

John

[root@host html]# ls -la squirrel*
lrwxrwxrwx 1 root root 19 Jan 17 21:41 squirrelmail -> squirrelmail-1.4.13
-rw-r--r-- 1 root root 617035 Dec 15 01:06 squirrelmail-1.4.13.tar.gz
 
At last i have to del the /var/www/html squirrelmail folder then going to :



Code:
[root@host custombuild]# ./build squirrelmail
--03:43:24--  [url]http://files.directadmin.com/services/all/squirrelmail-1.4.13.tar.gz[/url]
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 617035 (603K) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/squirrelmail-1.4.13.tar.gz'

100%[===========================================================================================>] 617,035      162K/s   in 3.7s   

03:43:28 (162 KB/s) - `/usr/local/directadmin/custombuild/squirrelmail-1.4.13.tar.gz' saved [617035/617035]


But when i send email got error is :

Code:
ERROR: 
Message not sent. Server replied: 
Requested action aborted: error in processing
451 Temporary local problem - please try later
 
Last edited:
I give up. I reinstall the whole server, now it works fine again.
First Customapache, then Custombuild, Custombuild don't work from the beginning, received some php error.

This issue is fixed for me after a

yum update

... it updated 72 items and installed 7...

All builds fine now.
 
Migrated from customapache to custombuild

Truly great work on this script guys.

Had problems with customapache in installing php 5.2.5. libphp5.so simply wouldn't get built. Tried everything mentioned like making sure apxs is correctly specified, recompiling libxml-devel etc. Nothing worked.

I'm sure it could have been solved. But i couldn't wait longer, since i'm currently in the army and can only fix stuff in the weekends.

So i threw in the towel. Downloaded custombuild, did a ./build all and amazingly, everything works.
 
I've a custombuild 1.1 in a vps with php 4.4.7 and I'd like to update to php 4.4.8

Can I run ./build update or ./build php d
 
Back
Top