New build system (BETA)

edit2:
Code:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

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: libaprutil-1.so.0: 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.php4 file
not good :(
trying it with these options:
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2

What's the output of:
Code:
ldd /usr/sbin/httpd | grep libaprutil
?
 
I just rebuilded Apache and PHP and still getting

2007:04:10-00:04:02: Unable to get lock on /etc/httpd/conf/extra/directadmin-vhosts.conf to add /usr/local/directadmin/data/users/tiedlie/httpd.conf
 
errrrrr:
Code:
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /tmp/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

*** There was an error while trying to configure php. Check the configure/suphp/configure.php5 file
old bugs die hard :p

but where did the apr error from some posts above go :/

This is btw with a clean build run from this morning.

edit:
ofcourse i fixed it with:
Code:
"--with-mysql=/usr/local/mysql" \
in configure.suphp5 (or something like that)

now trying:
Code:
./build php d
 
and when defaulting to php5 with php4 as cgi:
Code:
configure: error: Cannot find libzzip
and thats a known error, right :p
 
It would be great if I could get a chance to take a look at your servers.
 
Last edited:
Are you interested in looking at a server that compiled with no errors :P? but is not working like it should in handling php in cgi modus. (if so pm me your msn adres)

Btw i piped the compiling process to a text file, you want that, guess not cause it has no real errors :(
 
the new build script still gives me a:

Code:
./build: line 3105: syntax error: unexpected end of file

tried the old one and it still works
 
the new build script still gives me a:

Code:
./build: line 3105: syntax error: unexpected end of file

tried the old one and it still works

you can fix it by adding a '}' at the end of the doPhp() function. Its almost at the bottom of the file.

edit:
smtalk, why isnt that mysql include error in php5 not fixed :p
Code:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /tmp/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
i know howto fix since you told that already ;)
 
Last edited:
Really, I'm going to fix these things and maybe after them we will have a "release candidate" version :)
 
heres a little todolist as from how i see things:

todolist:
Code:
-- Release Candidate 1 --
* fix build script "missing }" bug 
* fix configure php5 missing /usr/local/mysql bug 
* default is php5 and no php4

Code:
-- Release Candidate 2 --
* integrate addtype stuff in httpd.conf
* run DA to regenerate ips.conf if its missing
* default is php4 and php5 is cgi


Code:
-- FINAL --
* default is php5 and php4 is cgi

but im sure i forgot some tiny things ;)
 
* run DA to regenerate ips.conf if its missing
This is fixed.

* fix build script "missing }" bug
* fix configure php5 missing /usr/local/mysql bug

I'm going to fix these as soon as possible.

* integrate addtype stuff in httpd.conf
Could you explain?

* default is php5 and no php4
* default is php4 and php5 is cgi
* default is php5 and php4 is cgi
It's not good to change the defaults :)
 
* run DA to regenerate ips.conf if its missing
>>This is fixed.
ah nice :)

* fix build script "missing }" bug
* fix configure php5 missing /usr/local/mysql bug
>> I'm going to fix these as soon as possible.
clear

* integrate addtype stuff in httpd.conf
>>Could you explain?
when doing a clean install or whatever, httpd.conf (sometimes) seems to mis these settings. I just did a new install and i always start with moving the old /etc/httpd to /tmp. Only problem is the newly generated httpd.conf doesnt have these values:
Code:
AddHandler application/x-httpd-php .php .php4
AddHandler application/x-httpd-php-source .phps
AddHandler application/x-httpd-php5 .php5

* default is php5 and no php4
* default is php4 and php5 is cgi
* default is php5 and php4 is cgi
>>It's not good to change the defaults :)
definately true, but thats not what i meant ;)
I mean configurations based on those should work perfectly and atm thats not the case with php4 as a default with php5 as cgi.
 
Only problem is the newly generated httpd.conf doesnt have these values:
Code:
AddHandler application/x-httpd-php .php .php4
AddHandler application/x-httpd-php-source .phps
AddHandler application/x-httpd-php5 .php5

You can find this in http://files.directadmin.com/services/custombuild/beta/custombuild/configure/ap2/conf/extra/:
Code:
    #
    # This is needed for PHP
    #
    <IfModule mod_php5.c>
        AddType application/x-httpd-php .inc .php .php3 .php4 .php5 .phtml
        AddType application/x-httpd-php-source .phps
    </IfModule>
    <IfModule mod_php4.c>
        AddType application/x-httpd-php .inc .php .php3 .php4 .phtml
        AddType application/x-httpd-php-source .phps
    </IfModule>
    <IfModule mod_php.c>
        AddType application/x-httpd-php .phtml
    </IfModule>

nzyme said:
I mean configurations based on those should work perfectly and atm thats not the case with php4 as a default with php5 as cgi.

The functions aren't very different so they are working without any problems.
 
those ifmodule lines dont seem to work all that good :( also, im missing the directadmin-vhosts.conf file in /etc/httpd/conf/extra/
Maybe that to can be regenerated as you do with ips.conf ?
also, im building a default php4 with php5 as cli. Lets see what happens now ;)

btw: did i mention its great that customapache has been renamed (before the weekend)? :D
 
Back
Top