Custombuild is out of beta.

Is custombuild working fine on your system?


  • Total voters
    110
Everything should be fixed in the latest version :) Please test it! Thank you.

### OS DEBIAN 3.1 ###

### FIRST PROBLEM ###

If Using SUPHP on php5 and version is 5.2.3 or newer, they have changed naming on PHP.

suphp as php handler should be php-cgi, no php ! if php5 and version is 5.2.2 or lower, then name is php.

### /usr/local/suphp/etc/suphp.conf ###

# Only php5 + php 5.2.2 or lower #
x-httpd-php5=php:/usr/local/php5/bin/php

# Only php5 + php 5.2.5 or newer #
x-httpd-php5=php:/usr/local/php5/bin/php-cgi


### Second Problem ###

Directadmin version 1.301 have new templates, and it wont work with php4(cgi) and php5(cgi)

# options.conf #

default_php=4
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no

# And #

default_php=5
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no

# And #

default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no


Starting httpd: Syntax error on line 39 of /usr/local/directadmin/data/users/tempreseller/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps mis-spelled or defined by a module not included in the server configuration

Found few times in google, that only work with apache 2.x version, but not sure ... (not tested with 2.x, only 1.3 version of apache)

So, problems are new templates ...
Need use custom templates: http://help.directadmin.com/item.php?id=2
 
Last edited:
### OS DEBIAN 3.1 ###

### FIRST PROBLEM ###

If Using SUPHP on php5 and version is 5.2.3 or newer, they have changed naming on PHP.

suphp as php handler should be php-cgi, no php ! if php5 and version is 5.2.2 or lower, then name is php.

### /usr/local/suphp/etc/suphp.conf ###

# Only php5 + php 5.2.2 or lower #
x-httpd-php5=php:/usr/local/php5/bin/php

# Only php5 + php 5.2.5 or newer #
x-httpd-php5=php:/usr/local/php5/bin/php-cgi

PHP 5.2.5 is not released yet :) And from PHP 5.2.3 the path is /usr/local/php5/bin/php/php-cgi. PHP 5.2.2 is an old release and not set into the custombuild script. The problem could exist when you have both PHPs as CGI, this is a known problem and will be fixed soon.

### Second Problem ###

Directadmin version 1.301 have new templates, and it wont work with php4(cgi) and php5(cgi)

# options.conf #

default_php=4
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no

# And #

default_php=5
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no

# And #

default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no


Starting httpd: Syntax error on line 39 of /usr/local/directadmin/data/users/tempreseller/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps mis-spelled or defined by a module not included in the server configuration

Found few times in google, that only work with apache 2.x version, but not sure ... (not tested with 2.x, only 1.3 version of apache)

So, problems are new templates ...
Need use custom templates: http://help.directadmin.com/item.php?id=2

You need to recompile suphp, do:
Code:
./build update
./build clean
./build suphp
service httpd restart
 
You need to recompile suphp, do:
Code:
./build update
./build clean
./build suphp
service httpd restart
[/QUOTE]

./build update
./build clean
./build autoconf

Then

./build suphp


Trying to make suPHP...
cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run aclocal-1.9
/usr/local/directadmin/custombuild/suphp-0.6.2/config/missing: line 52: aclocal-1.9: command not found
WARNING: `aclocal-1.9' is missing on your system. You should only need it if
you modified `acinclude.m4' or `configure.ac'. You might want
to install the `Automake' and `Perl' packages. Grab them from
any GNU archive site.
cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run automake-1.9 --gnu
/usr/local/directadmin/custombuild/suphp-0.6.2/config/missing: line 52: automake-1.9: command not found
WARNING: `automake-1.9' is missing on your system. You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.

cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run autoconf

Still errors about automake1.9,

But now Default Templates on 1.301 work :), why needed again manually recompling suphp ?
 
Last edited:
You don't need automake for suphp :) You just needed to build it again, because the mode of it was "owner" and needed to be "paranoid". (configuration has been changed).
 
Last edited:
It's libiconv-${ICONV_VER} :) Try "./build update". What's in your options.conf? Try "./build clean", "./build suphp", "./build php", "./build rewrite_confs" after update. :)
 
option.conf :
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no

i have the same error 500 :( and log file /var/log/suphp.log is empty :eek:

thank's
 
You're welcome. I've just looked at the whole source and didn't find any issues. How about you? :) Anyone is having problems now?
 
I have had trouble in the past, with the options.conf looking

Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
mail-header-patch=yes
dovecot=no

Will .php files be parsed as php4 and .php5 be parsed as php5?
 
Hi,

these option.conf files work ok, on debian 3.1, now look very good :)

default_php=4
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no

and

default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=1.3
mail-header-patch=yes
dovecot=no
 
welch, everything is working fine with your configuration.

welch said:
Will .php files be parsed as php4 and .php5 be parsed as php5?
Yes, they will.
 
./build php d on my system (Etch) produces this, every time, ./build all d is the same:

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


I've done ./build clean before and ./build update, setting options in options.conf, even deleting custombuild folder and redownloading custombuild from scratch. It always ends up the same - "make" error on GD.
 
I tried updating using custombuild but my apache refuses to start now!!

My config:
Code:
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
apache_ver=2.2
mail-header-patch=yes
dovecot=no

I do:
Code:
./build update
./build update_data
./build rewrite_confs
rm -rf /etc/httpd
./build all d

I get:
Code:
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

I have installed m4 using yum. When I do ./build gd I get the same error.

When I try to start Apache I get:
Code:
Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

so I do ./build iconv - this works fine, but Apache still bombs with the same error :(

I edit /usr/local/directadmin/custombuild/configure/ap2/configure.php5 and remove iconv and gd from it (and magic quotes :) )

Try to rebuild php to solve the errors:
./build php n

Code:
/usr/sbin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/sbin/httpd'..
configure: error: Aborting

but --enable-so is listed in configure/ap2/configure.apache!! :confused:

ok rebuild apache: ./build apache
rebuild php: ./build php n - same error

change first line of configure/ap2/configure.php5 to --with-apxs2=/usr/sbin/apxs

rebuild php: ./build php n - same error

try to rebuild perl: ./build mod_perl - output:
Code:
[  error] '/usr/sbin/apxs -q INCLUDEDIR' failed:
[  error] /usr/sbin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/sbin/httpd'..
[  error] Unable to determine server version, aborting.
[  error] Invalid MP_APXS specified?
Done. Making mod_perl-2.0.3...
Trying to make mod_perl...
make: *** No targets specified and no makefile found.  Stop.

I'm stuck now, any idea how I can get my Apache back up??
 
I get nothing but errors regarding apx now. SMTalk, if your around maybe something you can find wrong on this test.
 
So, the problem is with GD :) P.S. you need to fix iconv library too, try to make a symlink to libiconv.so.2. For any other issues please email DirectAdmin support, unless it's a problem of the script (coding). Thank you.
 
Back
Top