New build system (BETA)

Great...downloading and trying out the latest release today (1st April 07).
Hope it goes fine...
 
Hmm...seems I'm in great distress with apache 2.2
httpd isnt starting for me due to errors in httpd.conf.
the ./build convert also didnt fix things

Can you please guide me to have the correct settings in httpd.conf?
(I want to build the conf from fresh 2.2 conf)
 
Managed to start apache now...but needs some expert tuning.

Thanks in advance to smtalk.
 
ProFTPD support added :) We're going to release RC1 (Release Candidate) soon.
 
Martynas,

I second the motion for ProFTPD. Is there any reason why it shouldn't be added?

Jeff
 
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
./build all d
[...]
-lpng -lz -ljpeg -lcurl -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lssl -lcrypto -ldl -lz -lcrypt -lcrypt -o libphp4.la
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1
fresh installation attemp :(
 
You need this:
Code:
# cd /usr/local/directadmin/customapache
# tar xzf libmcrypt-2.5.7.tar.gz
# cd libmcrypt-2.5.7/libltdl
# ./configure --enable-ltdl-install
# make
# make install
# make clean
 
I'm noticing some difference in the menu system of beta build script...
proftpd wasn't compiling yesterday...but this is what i got now:

/usr/bin/install -c -o ftp -g ftp -m 0644 config.h /usr/include/proftpd/config.h
cd include/ && make install
make[1]: Entering directory `/usr/local/directadmin/customapache/proftpd-1.3.1rc2/include'
make[1]: Leaving directory `/usr/local/directadmin/customapache/proftpd-1.3.1rc2/include'
test -z """" || (cd locale/ && make install)
make: *** No rule to make target `echo'. Stop.
 
Last edited:
You need this:
Code:
# cd /usr/local/directadmin/customapache
# tar xzf libmcrypt-2.5.7.tar.gz
# cd libmcrypt-2.5.7/libltdl
# ./configure --enable-ltdl-install
# make
# make install
# make clean

it apeared to be fixed already :/

make[1]: Leaving directory `/usr/local/directadmin/customapache/zziplib-0.10.82/i686-pc-linux-gnu'
Done zZip
Found /usr/local/directadmin/customapache/php-4.4.6.tar.gz
Extracting ...
Done.
ln: `/usr/lib/libltdl.so': File exists
Configuring php-4.4.6...
./build: line 803: /usr/local/directadmin/customapache/configure/suphp/configure.php4: Permission denied

*** There was an error while trying to configure php. Check the configure.php4_suphp file
this is what i get now :/

edit:
just noticed the script was updated early this morning so i'm now trying it again :)
 
Last edited:
Code:
Found /usr/local/directadmin/customapache/php-4.4.6.tar.gz
Extracting ...
Done.
ln: `/usr/lib/libltdl.so': File exists
Configuring php-4.4.6...
./build: line 791: /usr/local/directadmin/customapache/configure/suphp/configure.php4: Permission denied

*** There was an error while trying to configure php. Check the configure.php4_suphp file

mrhat:/usr/local/directadmin/customapache# ls configure/suphp/ -l
total 12
-rw-r--r--  1 apache 1000 717 Apr  2 12:39 configure.php4
-rw-r--r--  1 apache 1000 717 Jan 28 19:00 configure.php5
-rw-r--r--  1 apache 1000 205 Feb 17 14:51 configure.suphp
strange :/
 
I'm going to fix it ASAP. Fix for that is:
Code:
# cd /usr/local/directadmin/customapache
# chmod 755 configure/*/configure*
 
I'm noticing some difference in the menu system of beta build script...
proftpd wasn't compiling yesterday...but this is what i got now:

It will be fixed today. For now the fix is:
Edit build file.

Find:
Code:
echo "Installing proftpd-${PROFTPD_VER}..."; make install echo "Done proftpd.";

Replace to:
Code:
echo "Installing proftpd-${PROFTPD_VER}...";
make install
echo "Done proftpd.";
 
@above:
another ";" between 'make install' and 'echo ..." would suffice to :)

@myquestion:
im testing it right now, thnx in advance smtalk :)

why are you using default_php=5 ? Does that mean all .php files are parsed as php5 and only .php4 is parsed as php4 ?
Wouldn't it be better to default to php4 and to allow php5 parsing on .php5 files only ?

edit:
Code:
checking return type of qsort... (cached) void
configure: error: Cannot find MySQL header files under /usr

*** There was an error while trying to configure php. Check the configure.php4_suphp file
Darn ! :p

edit2:
i guess it would be fixed by editting this file:
Code:
configure/suphp/configure.php[4|5]
and change the mysql line to /usr/local/mysql


edit3:
Code:
rl -lssl -lcrypto -ldl -lz -lcrypt -lcrypt  -o sapi/cgi/php
/usr/local/directadmin/customapache/php-4.4.6/libtool: line 351: syntax error near unexpected token `('
/usr/local/directadmin/customapache/php-4.4.6/libtool: line 351: `TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"'
make: *** [sapi/cgi/php] Error 2
DAMN!
 
Last edited:
PHP5 is used as default because PHP4 is very old :) PHP6 is going to be released at the end of this year, so I guess after 1-2 years PHP4 will be end of life and if it won't - it will be very old version of PHP.
 
will you include clamav and spamblocker in the final? i guess it would be simple to include...
 
ah ok, and yes i indeed already have SB :)

back to the build script:
i changed to php5-cli only and it builds fine, except fails to start httpd with complaints about mod_perl and after disabling that module it errors on
Code:
Starting httpd: httpd: Syntax error on line 69 of /etc/httpd/conf/httpd.conf: API module structure `suphp_module' in file /usr/lib/apache/mod_suphp.so is garbled - perhaps this is not an Apache module DSO?
 
Back
Top