New build system (BETA)

http://help.directadmin.com/item.php?id=54
Code:
cp -f /etc/httpd/conf/httpd.conf.1.3.backup /etc/httpd/conf/httpd.conf
perl -pi -e 's/apache_ver=2.0/apache_ver=1.3/' /usr/local/directadmin/conf/directadmin.conf
echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue
 
got an error

[root@cm customapache]# ./build update_data
./build: line 1: !/bin/sh: No such file or directory
Setting up Install Process
Setting up repositories
 
the build script doesn't seem to download suphp, after finished building apache2, error occured

Installing header files
Installing build system files
Installing man pages and online manual
make[1]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.2.4'
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
*** Cannot find /usr/local/directadmin/customapache/suphp-0.6.2.tar.gz. Aborting ***
 
manually downloaded suphp-0.6.2.tar.gz starting building, got error:

-lcurl -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

I'm running out of idea.
This is the options.conf i'm using:
default_php=4
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no
apache_ver=2.2
 
I just ran the new beta build on FreeBSD 6.2 and the only issue was mod_perl-1.0 was not in the customapache directory so it stopped until I copied it over and rebuilt. Everything else ran great.
 
bjseiler, thank you for the bug report. I am going to fix it asap (function doUpdateDataAp1 isn't working correctly) :)
 
I just tried this on a test server... fix that one bug, and I think we've got a winner here!

Thanks for your hard work on this, it's going to make everyone's life a lot easier.

Joe
 
heads up:

./build all d
ran fine till:
PHP 5.2.1 Installed.
*** Cannot find /usr/local/directadmin/customapache/mod_perl-1.0-current.tar.gz. Aborting ***

It should be looking for mod_perl-2.0-current.tar.gz

Joe
 
Yes, you're right :) I'm going to update the script, for now do these changes:

Change:
Code:
doAll() {
	FORCE=1;

	#convert;

	if [ "${APACHE_OPT}" = "1.3" ]; then
		doApache;
	elif [ "${APACHE_OPT}" = "2.0" ] || [ "${APACHE_OPT}" = "2.2" ]; then
		doApache2;
	fi

	#Sorry debian, but zzip has far too many problems
	#one version works on one instance of 3.1, but not another instance.
	#another version work in the opposite manner. No solution. Removed.
	if [ -e /etc/debian_version ]; then
		mv -f $PHP5_CONFIGURE ${PHP5_CONFIGURE}.nozip
		cat ${PHP5_CONFIGURE}.nozip | grep -v zip > $PHP5_CONFIGURE
		chmod 755 $PHP5_CONFIGURE

		mv -f $PHP5_CONFIGURE_AP2 ${PHP5_CONFIGURE_AP2}.nozip
		cat ${PHP5_CONFIGURE_AP2}.nozip | grep -v zip > $PHP5_CONFIGURE_AP2
		chmod 755 $PHP5_CONFIGURE_AP2

	fi

	doPhp;
	doModPerl;

To:
Code:
doAll() {
	FORCE=1;

	#convert;

	if [ "${APACHE_OPT}" = "1.3" ]; then
		doApache;
	elif [ "${APACHE_OPT}" = "2.0" ] || [ "${APACHE_OPT}" = "2.2" ]; then
		doApache2;
	fi

	#Sorry debian, but zzip has far too many problems
	#one version works on one instance of 3.1, but not another instance.
	#another version work in the opposite manner. No solution. Removed.
	if [ -e /etc/debian_version ]; then
		mv -f $PHP5_CONFIGURE ${PHP5_CONFIGURE}.nozip
		cat ${PHP5_CONFIGURE}.nozip | grep -v zip > $PHP5_CONFIGURE
		chmod 755 $PHP5_CONFIGURE

		mv -f $PHP5_CONFIGURE_AP2 ${PHP5_CONFIGURE_AP2}.nozip
		cat ${PHP5_CONFIGURE_AP2}.nozip | grep -v zip > $PHP5_CONFIGURE_AP2
		chmod 755 $PHP5_CONFIGURE_AP2

	fi

	doPhp;
	if [ "${APACHE_OPT}" = "1.3" ]; then
		doModPerl;
	elif [ "${APACHE_OPT}" = "2.0" ] || [ "${APACHE_OPT}" = "2.2" ]; then
	        doModPerl2;
	fi
 
Just more feedback:

[root@fl03245 customapache]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 67 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_frontpage.so into server: /usr/lib/apache/mod_frontpage.so: cannot open shared object file: No such file or directory
[FAILED]
[root@fl03245 customapache]# nano /etc/httpd/conf/httpd.conf

<fixed issue with frontpage by commenting out that line>


[root@fl03245 customapache]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 68 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_perl.so into server: /usr/lib/apache/mod_perl.so: cannot open shared object file: No such file or directory
[FAILED]
[root@fl03245 customapache]#
 
With new customapache build system we are planning to add new configs too. About mod_frontpage - it's normal, because it's changed with mod_dav :) And it's written in http://files.directadmin.com/services/customapache/beta/.
http://files.directadmin.com/services/customapache/beta/ said:
After it's done, you will probably need to remove:
LoadModule frontpage_module /usr/lib/apache/mod_frontpage.so
and
LoadModule perl_module /usr/lib/apache/mod_perl.so
from your /etc/httpd/conf/httpd.conf.
mod_dav replaces frontpage (woohoo) and nobody seems to ever be using mod_perl.
 
Hello,

I would like to see a few things in the custom build script. First, can the name be changed from customapache to just custombuild or something more general? Currently, it works with more than just apache, so the name is misleading. Second, it would be great if there were a way that the build script can be executed through DirectAdmin to update itself and the different packages. :) Nice work on the new script, but I haven't used it yet. Thanks for your time.
 
There's currently a small bug in the new beta build script, there's a missing hash on the first line before "!/bin/sh".
 
Yes, it'll be fixed ASAP and maybe ProFTPD will be added to the script.
 
Back
Top