Custombuild is out of beta.

Is custombuild working fine on your system?


  • Total voters
    110
Ok I've been able to compile an older version of GD lib:
Code:
cd /usr/local/directadmin/custombuild
wget http://www.libgd.org/releases/oldreleases/gd-2.0.34.tar.gz
nano build
change GD version in build script to 2.0.34
./build gd

Where do I create the symlink? I tried:
Code:
link /usr/local/lib/libiconv.so.2 /etc/httpd/lib/libiconv.so.2
but this doesn't work. I still get this error when making php:
Code:
Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/sbin/apxs follows:
/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

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
 
Got a reply from support@directadmin:

Hello,
easy, but hidden fix:

# service httpd start
Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory [FAILED]
# ldconfig
# service httpd start
Starting httpd: [ OK ]

ldconfig tells the system "hey you, go take another look, you might have something new"
I've made a comment about it on the forum for others if they're affected.
I'll get smtalk to take a look and possibly add the ldconfig command into the build script if it's appropriate.
 
I'm kind of stuck with this new custombuild.

I upgraded DA to the latest version on Monday evening and tested it, all worked fine but now after apache restarted itself it wont start up again. Its something todo with suPHP Group settings in DA templates.

I've looked into the new custombuild script and wanted to try and use that to rebuild/install suPHP etc, but it fails on making suPHP.

I had suPHP installed before the new version following the howto on this forums.

The error message it spits out when making is the following:

Code:
Done Configuration.Trying to make suPHP...cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run aclocal-1.9acinclude.m4:43: warning: underquoted definition of APR_FIND_APR run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/a...ending-aclocalaclocal:configure.ac:24: warning: macro `AM_PROG_LIBTOOL' not found in library cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run automake-1.9 --gnusrc/apache/Makefile.am:8: Libtool library used but `LIBTOOL' is undefinedsrc/apache/Makefile.am:8:src/apache/Makefile.am:8: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'src/apache/Makefile.am:8: to `configure.ac' and run `aclocal' and `autoconf' again.src/apache2/Makefile.am:10: Libtool library used but `LIBTOOL' is undefinedsrc/apache2/Makefile.am:10:src/apache2/Makefile.am:10: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'src/apache2/Makefile.am:10: to `configure.ac' and run `aclocal' and `autoconf' again.make: *** [Makefile.in] Error 1*** The make has failed, do you want to try to make again? (y,n):
Is there anything anyone could help me with this please?
 
A new version of custombuild has been released. Function "./build all" has been a bit changed, automake and libtool has been added to the script. PhilipL problem was that he hadn't installed automake on his system.
 
Hi,

I got a notification that my httpd is down, so I checked it, and when tried to restart I got followingmessage:
Code:
[root@us2 machine]# /etc/init.d/httpd start
Starting httpd: [Thu Jun 28 06:29:05 2007] [warn] module php4_module is already loaded, skipping
Syntax error on line 37 of /usr/local/directadmin/data/users/username/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]

Only that one user (whose httpd.conf made start of apache fail had
Code:
<IfModule mod_suphp.c>
      suPHP_Engine ON
      [B]suPHP_UserGroup username username[/B]
</IfModule>

in his httpd.conf, and when I removed suPHP_UserGroup username username from his httpd.conf, apache was started again without problems.

Is it safe to remove suPHP_UserGroup |USER| |GROUP| from /usr/local/directadmin/data/templates/virtual_host2.conf and virtual_host2_sub.conf since this appears to make a problem with apache?

I'm using custombuild with apache 2.2.4, PHP 5.2.3 and suPHP
 
Ive just used the custombuild script with a fresh directadmin install, there is only 1 problem, i want to use a custom options.conf. How would i use my own options.conf when the install just continues after the UID LID and hostname are entered?
 
iceuk626, it's still impossible to do that on the install time, but it is on DirectAdmin plans (maybe they have done a new installation script). I suggest you to contact DirectAdmin support.
 
Well i want to install php4 and php5 both as CGI but use apache 1.3. So the best way to do it is to use the normal DA installation then use custombuild afterwards?

Also when i have installed php4 and 5 as cgi and i do #php -v it still shows the cli version of php4 DA installed. What is the best way to remove the cli version of php which was installed with DA?
 
PHP as CLI is needed for DirectAdmin, so you can't remove it. If you want to see PHP (CGI) versions:
Code:
/usr/local/php4/bin/php -v
/usr/local/php5/bin/php -v
 
after upgraded to DA v1.30.1.
Can't access phpmyadmin, webmail, etc... by using http://domain.com/application or
http://IP/application
basically alias are not working.
Code:
error:
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. 

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

Error 500

error log shows "No user or group set - set suPHP_UserGroup"

after I put
Code:
        <IfModule mod_suphp.c>
                suPHP_Engine ON
                suPHP_UserGroup webapps webapps
        </IfModule>
inside httpd-vhosts.conf, http://IP/application can be access again, but still not http://domain.com/application, same error.

running php5 in cgi.

help needed.
 
Last edited:
jakc, it was a known issue ant it's fixed now (~1week ago). Could you post an output of:
Code:
ls -la /var/www/html
?
 
after I upgraded DA, I deleted phpMyAdmin, squirrelmail and webmail, then I ran their installation scripts to get the newest version, so here is the output:

Code:
drwxr-xr-x   7 root    root        4096 Jul  3 08:40 .
drwxr-xr-x   9 root    root        4096 Apr 28 21:39 ..
-rw-r--r--   1 root    root         284 Aug 28  2005 404.shtml
-rw-rw-r--   1 admin   admin       2326 Jan  6  2005 apache_pb.gif
-rw-r--r--   1 root    root        8953 Jun 11  2006 back.GIF
-rw-r--r--   1 webapps webapps       24 May  8 16:30 .bash_logout
-rw-r--r--   1 webapps webapps      191 May  8 16:30 .bash_profile
-rw-r--r--   1 webapps webapps      124 May  8 16:30 .bashrc
-rw-r--r--   1 root    root        2961 Aug 12  2006 bg.png
-rw-r--r--   1 root    root         426 Jun 24  2006 css.css
-rw-r--r--   1 root    root           0 Apr 26 16:37 favicon.ico
-rw-r--r--   1 root    root        2080 Aug 12  2006 index.htm
-rw-rw-r--   1 admin   admin       1884 Jan  6  2005 index.html.ca
-rw-rw-r--   1 admin   admin       1583 Jan  6  2005 index.html.cz
-rw-rw-r--   1 admin   admin       2274 Jan  6  2005 index.html.de
-rw-rw-r--   1 admin   admin       1557 Jan  6  2005 index.html.dk
-rw-rw-r--   1 admin   admin       1877 Jan  6  2005 index.html.ee
-rw-rw-r--   1 admin   admin       1677 Jan  6  2005 index.html.el
-rw-rw-r--   1 root    root        2673 Apr 26 16:37 index.html.en
-rw-rw-r--   1 admin   admin       1799 Jan  6  2005 index.html.es
-rw-rw-r--   1 admin   admin       1525 Jan  6  2005 index.html.fr
-rw-rw-r--   1 admin   admin       3706 Jan  6  2005 index.html.he.iso8859-8
-rw-rw-r--   1 admin   admin       2585 Jan  6  2005 index.html.hu
-rw-rw-r--   1 admin   admin       1847 Jan  6  2005 index.html.it
-rw-rw-r--   1 admin   admin       1799 Jan  6  2005 index.html.ja.jis
-rw-rw-r--   1 admin   admin       1333 Jan  6  2005 index.html.kr.iso-kr
-rw-rw-r--   1 admin   admin       1896 Jan  6  2005 index.html.lb.utf8
-rw-rw-r--   1 admin   admin       2007 Jan  6  2005 index.html.nl
-rw-rw-r--   1 admin   admin       1534 Jan  6  2005 index.html.nn
-rw-rw-r--   1 admin   admin       1526 Jan  6  2005 index.html.no
-rw-rw-r--   1 admin   admin       1497 Jan  6  2005 index.html.po.iso-pl
-rw-rw-r--   1 admin   admin       1842 Jan  6  2005 index.html.pt
-rw-rw-r--   1 admin   admin       2035 Jan  6  2005 index.html.pt-br
-rw-rw-r--   1 admin   admin       1591 Jan  6  2005 index.html.ru.cp-1251
-rw-rw-r--   1 admin   admin       1585 Jan  6  2005 index.html.ru.cp866
-rw-rw-r--   1 admin   admin       1589 Jan  6  2005 index.html.ru.iso-ru
-rw-rw-r--   1 admin   admin       1585 Jan  6  2005 index.html.ru.koi8-r
-rw-rw-r--   1 admin   admin       3134 Jan  6  2005 index.html.ru.ucs2
-rw-rw-r--   1 admin   admin       6268 Jan  6  2005 index.html.ru.ucs4
-rw-rw-r--   1 admin   admin       2318 Jan  6  2005 index.html.ru.utf8
-rw-rw-r--   1 admin   admin       1700 Jan  6  2005 index.html.se
-rw-rw-r--   1 admin   admin       1062 Jan  6  2005 index.html.zh-tw.big5
drwxr-xr-x   8 root    root        4096 Apr 26 16:37 manual
lrwxrwxrwx   1 root    root          31 Jul  3 07:49 phpMyAdmin -> phpMyAdmin-2.10.2-all-languages
drwxr-xr-x  11 webapps webapps     4096 Jul  3 07:49 phpMyAdmin-2.10.2-all-languages
-rwxr-xr-x   1 root    root          65 Apr 26 16:34 redirect.php
lrwxrwxrwx   1 root    root          21 Jul  3 08:40 roundcube -> roundcubemail-0.1-rc1
drwxr-xr-x   9 webapps webapps     4096 Jul  3 08:40 roundcubemail-0.1-rc1
lrwxrwxrwx   1 root    root          20 Jul  3 07:49 squirrelmail -> squirrelmail-1.4.10a
drwxr-xr-x  16 webapps webapps     4096 May 10 16:30 squirrelmail-1.4.10a
-rw-r--r--   1 root    root      139333 Aug 12  2006 star.mp3
-rw-r--r--   1 root    root    20480000 May 29 09:41 test.bin
drwxr-xr-x  11 webapps webapps     4096 Jul  3 07:49 webmail
 
Try:
Code:
cd /var/www/html
chown -h webapps:webapps phpMyAdmin roundcube squirrelmail
 
Back
Top