Discussion about CustomBuild

I gotta tell you, I've had nothing but problems with this new build script.

1. We run all servers on Dovecot - by default, unless you look at the configuration specifically, it's setup with Dovecot=Off :( So everyone had screwed up mail when it was done, and we spent a couple hours tracking it down.

2. We've converted nine servers to php5 using this script, and every one has had an issue during the conversion.

Code:
> Starting httpd: httpd: Syntax error on line 17 of
> /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libphp5.so into
> server: libpng.so.0: cannot open shared object file: No such file or
> directory


and


Code:
> Starting httpd: Syntax error on line 30 of
> /usr/local/directadmin/data/users/scotiany/httpd.conf:
> Invalid command 'php_admin_flag', perhaps misspelled or defined by a
> module not included in the server configuration


We've ended up with totally fubar'd httpd.conf files - nothing that's not fixable, but still a PITA.

These errors are corrected, and the fixes are found in this, or other threads on these forums - and of course with the excellent help of John & crew at DA, but it's GOT to be simpler than this.

There should be a yes/no option to select what you want to install, php5_cli, php5, suphp, dovecot, headerpatch, mysql, etc

There also needs to be a default build that'll take a new box directly to mysql5, apache2 and php5 (with these setup options yes/no) on new server installs.

PHP4 is at EOL as of 12/31/07 - people are going to want to switch, soon. I'd really wait to see if this custombuild can get perfected a little more before the feint of heart dive into it.

We've got 90 some servers to convert eventually, I'm hoping this can go a little smoother, sooner rather than later.

Thanks for your hard work!

Joe
 
You could set dovecot=yes in options.conf :) options.conf won't get overwritten :) About php_admin_flag error - you're using old templates (custom) :) If you made them - it's not a DirectAdmin problem. Thank you for this post :)
 
About php_admin_flag error - you're using old templates (custom) :) If you made them - it's not a DirectAdmin problem. Thank you for this post :)

No, I'm not using anything other than the stock DA templates - never have. We've been using DA for 4+ years, never saw a need to use anything other than the ones they provided.
 
Then you were using old templates :) Maybe we need to add 1 more check for that..
 
1. What is custombuild?
12. When I restart apache I get this error: Invalid command 'suPHP_UserGroup'. How can I solve it?
Probably you had compiled suPHP manually with --with-setid-mode=owner. You need to compile it again with --with-setid-mode=paranoid, or do:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build suphp
[/QUOTE]

Ok, first, I've used the script on 2 boxes now (one live, one test) and it seems to work fine.  However, I want to install suphp on one.  I followed the instructions above (build suphp is an undocumented command?) do I need to do anything else? (bounce apache? rebuild apache? rebuild php?) to make this work?

TIA,
=C=
 
You just need to set php_cli to no and php_cgi to yes in options.conf :) then run "./build php"
 
When i use this script with php5 an cgi then php isn't working anymore. It will download de phpfiles.

[edit]

I solved the problem, i had a error in de options.conf.
 
Last edited:
Hey. I have tried installing custombuild using the instructions provided. It all goes fine until it tried to make GD. Here is the error:

Code:
** Configuration summary for gd 2.0.34:

   Support for PNG library:          yes
   Support for JPEG library:         yes
   Support for Freetype 2.x library: no
   Support for Fontconfig library:   no
   Support for Xpm library:          no
   Support for pthreads:             yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
Done. Making gd-2.0.35...
Trying to make gd...
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
 cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run automake-1.9 --foreign
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
make: *** [configure] Error 1

Due to this httpd etc wont start, i guess because its 1/2 installed. Help please :)
 
Hey. I have tried installing custombuild using the instructions provided. It all goes fine until it tried to make GD. Here is the error:

Code:
** Configuration summary for gd 2.0.34:

   Support for PNG library:          yes
   Support for JPEG library:         yes
   Support for Freetype 2.x library: no
   Support for Fontconfig library:   no
   Support for Xpm library:          no
   Support for pthreads:             yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
Done. Making gd-2.0.35...
Trying to make gd...
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
 cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run automake-1.9 --foreign
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
make: *** [configure] Error 1

Due to this httpd etc wont start, i guess because its 1/2 installed. Help please :)

Hey,

I've had the same error and tried everything I found in this topic to solve it. It didn't work out.
The only solution that's really working for me is editing the build file and editing line 134 to set GD_VER to 2.0.34. This version of GD compiles without any problems.

By the way, google-ing for AM_ICONV tells me that it has to be defined in iconv.m4, which should be found in some share-folder (/usr/local/share/aclocal or something). I can't find it, except one in /usr/share/aclocal, but that one is over a year old while I just installed iconv with ./build iconv..
Don't know whether that helps someone to resolve this problem; I couldn't figure it out anyway.

I'm working on a Debian 4.0 with DA 2.0.31 btw.

Good luck!
 
Ok im just trying compiling at that version now. Hope it works because my whole server is out of action atm :S
Im On Centos 4
 
Last edited:
Can you comment it out and skip it? and try installing by itself?

I was having a similiar problem with libz, I commented it out and then installed it later.
 
I've did a full update using custombuild to update to Apache 2 and PHP 5.

Now when I try loading a php script with a <?php phpinfo(); ?>, I get a

Code:
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: test.php

If you think this is a server error, please contact the webmaster.

Any ideas
 
Is it owned by the user? (and not root). What is the chmod of the file?
 
Yes, you're right :) What do you think about 1.0.17? :)

Looks very good update/build software :)

Just now using our production server, and works fantastics(OS DEBIAN 3.1), ever other combinations, like:

Option 1:apache 1.3 + mod_php4 + suphp 5
Option 2:apache 1.3 + suphp4 + suphp5
Option 3:apache 2 + suphp5 + mysql 5

One "if i remember" correct, when first time used custombuild, like option 1:, and later i wanna use again custombuild and upgrade to option 3, that custombuild script not create again /etc/httpd/conf files ?

i need test this, but is possible get later that can change configuration(option.conf) and build everyting again "clean table" ?
 
Last edited:
Hi

Silly question, to run files on php 5 do the file extensions need to be .php5?

Bashy
 
Last edited:
bashy, if you set default PHP - 5, then extensions need to be .php (.php5 works too) :)
 
Back
Top