New build system (BETA)

Code:
mrhat:/usr/local/directadmin/custombuild# ./build
*** Cannot find /usr/local/directadmin/custombuild/autoconf-2.61.tar.gz. Aborting ***
errrr.....

edit:
Code:
wget http://files.directadmin.com/services/custombuild/autoconf-2.61.tar.gz
:)
 
nzyme, yes, you should run build_update for it, it's fixed in 1.0rc1 (but it is not released yet). How everything else is working?
 
Im using the old version and now I get next:

bash-2.05b# Syntax error on line 23 of /usr/local/directadmin/data/users/nean/httpd.conf:
User cannot occur within <VirtualHost> section


And also a errors for apache conf files in users directory. Like Port is changed with Listen etc...

Is this script working on freebsd or not ?

Regards

Yes, it's working, but it's still in beta. You're using an old version - that's why you get these error. Delete /etc/httpd and update your custombuild script.
 
nzyme, yes, you should run build_update for it, it's fixed in 1.0rc1 (but it is not released yet). How everything else is working?

build_update ? i tried ./build update_data but that fails with the above error.

anyway, im building atm so please be patience :)
 
Now I have the latest build script and I get this for every package:
*** Cannot find /usr/local/directadmin/custombuild/curl-7.16.2.tar.gz. Aborting ***

etc. For each package httpd, autoconf,....

So I must use wget ....

Regards
 
and it still isnt working for me :(

options.conf:
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
dovecot=no

the httpd-php-handlers.conf file wasn't included in httpd.conf by default though, so perhaps a little bug. But adding it didn't fix it. Why is loadmodule still in httpd.conf and not in that new php-handlers.conf?

Furthermore, i dont see any index.php or index.php5 reference anywhere..
 
It has nothing to do with LoadModule. It should write to the file, because of:
Code:
	# Writing data to httpd-php-handlers.conf
	echo -n "" > ${PHP_HANDLERS_HTTPD}
	if [ "${PHPOPT}" = "1" ] || [ "${PHPOPT}" = "4" ]; then
		echo "<IfModule mod_php4.c>" >> ${PHP_HANDLERS_HTTPD}
		if [ "${PHPOPT}" = "1" ] && [ "${DEFPHP}" = "4" ]; then
			echo "AddHandler application/x-httpd-php .inc .php .php4 .phtml" >> ${PHP_HANDLERS_HTTPD}
		elif [ "${PHPOPT}" = "1" ] && [ "${DEFPHP}" != "4" ]; then
			echo "AddHandler application/x-httpd-php .inc .php4 .phtml" >> ${PHP_HANDLERS_HTTPD}
		elif [ "${PHPOPT}" = "4" ]; then
			echo "AddHandler application/x-httpd-php .inc .php .php4 .phtml" >> ${PHP_HANDLERS_HTTPD}
		fi
		echo "AddHandler application/x-httpd-php-source .phps" >> ${PHP_HANDLERS_HTTPD}
		echo "</IfModule>" >> ${PHP_HANDLERS_HTTPD}
	fi
 
After I have installed all (except a webalizer) alache is reading from /var/www/... why ?

Code:
[Tue Apr 17 15:32:52 2007] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/htdocs/index.php

Did I forget something to set or ...?
 
Maybe you have an older version of httpd.conf. Try deleting /etc/httpd and run the script again.
 
Last edited:
I have done that and still the same thing. Apache is reading from /var/www... And I get on page "It works!" :/


Regards
 
It should read from /var/www/html :) Except virtual hosts (/etc/httpd/conf/extra/directadmin-vhosts.conf).
 
Code:
mrhat:/usr/local/directadmin/custombuild# ./build
*** Cannot find /usr/local/directadmin/custombuild/autoconf-2.61.tar.gz. Aborting ***

Still this error!, just download and install new machine ... (Debian 3.1)
 
Is this ok configuration ? (coming future ?)

### options.conf ###
default_php=4
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
apache_ver=1.3
dovecot=no

### error 1 ###
configure: error: Cannot find libzzip

*** There was an error while trying to configure php. Check the configure/suphp/configure.php4 file

why this is not configured for build all ? or some check is builded/installed ?

### error 2 ###

Starting httpd: Syntax error on line 42 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libperl.so into server: /usr/lib/apache/libperl.so: undefined symbol: Perl_Ipatchlevel_ptr

Missing this install on debian 3.1

# Install needed RPMs/DEBs #
why not and build script -> apt-get install libperl-dev

Starting httpd: Syntax error on line 42 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libperl.so into server: /usr/lib/apache/libperl.so: undefined symbol: Perl_Ipatchlevel_ptr

### error 3 ###

# in apache -> conf/extra/directadmin-vhosts.conf #
Starting httpd: fopen: No such file or directory
httpd: could not open document config file /usr/local/directadmin/data/users/admin/httpd.conf
 
Last edited:
No it's not. Its been said many times you need one CLI version of PHP.

Thanks,
Grant
 
Seems like the rewrite rules (mod_rewrite) don't work with Apache 2.2 config file.

Apache 2.2 + AP 2.2 config file = no mod rewrite
Apache 2.2 + old config file = mod rewrite

At least it happened to me in a few upgrades from AP 2.0
 
No it's not. Its been said many times you need one CLI version of PHP.

Thanks,
Grant

You only need to have it in /usr/local/php/bin :) You can use PHP4&PHP5 as CGI in the options.conf file.
 
Back
Top