Upgrade to CustomBuild 2.0 >> httpd won't restart

ntix

New member
Joined
Nov 16, 2017
Messages
3
Hi,

We've followed exactly the following post/tread from smtalk to update Custombuild 2.0:
http://forum.directadmin.com/showthread.php?t=44743

After several attempts we constantly get the following error message at ./build apache:

Restarting apache.
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/e
xtra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined sym
bol: unixd_config
[FAILED]

We've done this commands:

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio \
libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed \
autoconf automake libtool which patch mailx bzip2-devel lsof glibc-headers kernel-devel expat-devel db4-devel

cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_da
./build update
./build apache
./build php n
./build mod_ruid2
./build rewrite_confs

After the ./build php n install we've get the following error returned:

/bin/sh /usr/local/directadmin/custombuild/php-5.6.32/libtool --silent --preserve-dup-deps --mode=compile cc -I/usr/local
/directadmin/custombuild/php-5.6.32/ext/fileinfo/libmagic -Iext/fileinfo/ -I/usr/local/directadmin/custombuild/php-5.6.32
/ext/fileinfo/ -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/php-5.6.32/include -I/usr/local/directadmin/custombuil
d/php-5.6.32/main -I/usr/local/directadmin/custombuild/php-5.6.32 -I/usr/local/directadmin/custombuild/php-5.6.32/ext/dat
e/lib -I/usr/local/directadmin/custombuild/php-5.6.32/ext/ereg/regex -I/usr/local/include/libxml2 -I/usr/local/include -I
/usr/local/include/freetype2 -I/usr/local/icu/include -I/usr/local/directadmin/custombuild/php-5.6.32/ext/mbstring/onigur
uma -I/usr/local/directadmin/custombuild/php-5.6.32/ext/mbstring/libmbfl -I/usr/local/directadmin/custombuild/php-5.6.32/
ext/mbstring/libmbfl/mbfl -I/usr/local/directadmin/custombuild/php-5.6.32/ext/sqlite3/libsqlite -I/usr/local/directadmin/
custombuild/php-5.6.32/ext/zip/lib -I/usr/local/directadmin/custombuild/php-5.6.32/TSRM -I/usr/local/directadmin/custombu
ild/php-5.6.32/Zend -I/usr/local/include -g -O2 -fvisibility=hidden -c /usr/local/directadmin/custombuild/php-5.6.32/
ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo
cc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

Also libtool is properly installed.

Can somebody help us out?

Thanks in advance!

Joeri
 
How much of RAM do you have on the system? Please check:
Code:
free -m
 
RAM Output

How much of RAM do you have on the system? Please ch

This is the mem output:

total used free shared buffers cached
Mem: 994 916 78 6 36 356
-/+ buffers/cache: 523 470
Swap: 0 0 0
 
Please add swap memory, or increase RAM, and you should be able to compile then.
 
SOLVED: Upgrade to Custombuild 2.0 >> httpd won't restart

Please add swap memory, or increase RAM, and you should be able to compile then.

Thank you very much, Smtalk. After we've increased the RAM memory of the server up to 2 GB with + an extra CPU core, the installation went very smoothly.

Thanks again!
 
Back
Top