New build system (BETA)

*************************************
* *
* All parts have been installed *
* *
*************************************

Type: /sbin/service httpd restart
[root@server custombuild]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 424 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf/extra/httpd-suphp.conf: No such file or directory
[FAILED]

oops!
rebuilding...

failed:

Trying to make mod_perl...
make: *** No targets specified and no makefile found. Stop.

rebuilding...
went fine
but
[root@server custombuild]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 27 of /etc/httpd/conf/extra/httpd-deflate.conf:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

seems like need to add
–enable-headers when building apache2

rebuilding...
went fine
but
[root@server httpd]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 30 of /etc/httpd/conf/extra/httpd-deflate.conf:
DeflateFilterNote not allowed here
[FAILED]
not sure what's wrong with these
Code:
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog /var/log/httpd/deflate_log deflate

commented out.
apache started fine.

remove everything in /etc/httpd/ and /usr/local/lib/php.ini
and rebuilt
seems mod_deflate is not included after finished...strange...

tried to use DA to create a user, error:
Could not include user's httpd file to the main httpd.conf
 
Last edited:
smtalk, just noticed this msg flying by:
Code:
al/directadmin/custombuild/mhash-0.9.1'
Done mhash.
doing extra /libltdl for mhash..
./build: line 1902: cd: libltdl: No such file or directory
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
 
Thank you for more reports :) I'm going to release 0.1.2 version of custombuild soon. Changelog:
* Version has been changed to 0.1.2
* From now httpd-suphp.conf is emptied if no CGI version of PHP is being
builded.
* Libltdl extra install in moved to libmcrypt function.
* Changed httpd-deflate.conf.
* Added MySQLi support to PHP.
 
i dont get it. With these options php is NOT parsed either as php4 or php5. In fact, the only line regarding php is a loadmodule php4 line.
Furthermore, i am missing the directadmin-vhosts.conf file in /extra/.

Before this clean try i completely removed the /etc/httpd dir.

Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2

btw, i always thought mysqli was something from php5 only. Am i right ?
 
This is because you've deleted /etc/httpd directory :) It checks /usr/local/directadmin/conf/directadmin.conf and if there is /etc/httpd/con/extra/directadmin-vhosts.conf set it doesn't create directadmin-vhosts.conf file again :)
 
lol, and thats exactly why i asked before if it gets rewritten like ips.conf ;)
 
I'm adding one check for it, if it doesn't exist - it will be rewritten.
 
I'm attaching 0.1.3 version, it will be uploaded to files.directadmin.com/services/custombuild/beta soon.
 

Attachments

another bug I noticed earlier this code isnt present in httpd.conf or in any of the included configs.

Code:
<Directory /home/*>
        AllowOverride All
        Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
        <Limit GET POST OPTIONS PROPFIND>
                Order allow,deny
                Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS PROPFIND>
                Order deny,allow
                Deny from all
        </LimitExcept>
</Directory>
 
Ive got the next errer when restarting httpd:

[root@sun custombuild]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 16 of /etc/httpd/conf/ips.conf:
User cannot occur within <VirtualHost> section
[FAILED]


Im testing PHP5 cgi.
 
Try
Code:
echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue
 
Hi,

trying this custombuild on debian 3.1:

option.conf

default_php=4
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
apache_ver=1.3

then trying build, get this error:

checking for ZIP support... yes
configure: error: Cannot find libzzip

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

Need manually configure ? (./build zzip)
 
Also (debian 3.1 / 1.3 / su_php4 / su_php5)

when complile php5_cgi get this error:

checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.

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

Need itself install:
apt-get install libxml2-dev

### NOTE ###
In buil script have that install this, but not work:

#apt-get install -y libxml2-dev libxslt-dev libtool-libs
Reading Package Lists... Done
Building Dependency Tree... Done
libxml2-dev is already the newest version.
Note, selecting libxslt1-dev instead of libxslt-dev
E: Couldn't find package libtool-libs

So debian not have any libtool-libs ? so thats why not install others too ...
 
Last edited:
No i trying it wit php_cgi and apache 1.3.

When i restart apache i got:
Starting httpd: Syntax error on line 22 of /etc/httpd/conf/extra/httpd-multilang-errordoc.conf:
Invalid command 'Alias', perhaps mis-spelled or defined by a module not included in the server configuration

On line 22 i have:

Alias /error/ "/var/www/error/"
 
(Debian 3.1 / apache 1.3 / suphp4 / suphp5)
More problems with php5/mysql:

checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution

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

### note ###
Found on default DA install:
/usr/local/mysql-standard-4.1.10-pc-linux-gnu-i686/bin/mysql_config
 
Last edited:
spirit, do
Code:
echo > /etc/httpd/conf/extra/httpd-multilang-errordoc.conf
, I am going to fix it as soon as possible.
 
(Debian 3.1 / apache 1.3 / suphp4 / suphp5)
More problems with php5/mysql:

checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution

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

What version of MySQL you are using?
 
Back
Top