New build system (BETA)

About the problem you've sent to the DirectAdmin support - you can post an aswer here for the community (if you want).

Of course, as soon as I get an answer. By the way, thank you for this script, it is a very a good participation for the entire DirectAdmin community :D
 
nzyme, because DirectAdmin uses RPMs for RedHat etc., it's not compiled from the source, but I can include it in 1.1. Make it as a feature request into the custombuild script forum. Thank you.
 
On my server, the new user's httpd.conf is not included in the main httpd.conf.
all of them are in conf/extra/directadmin-vhosts.conf
I don't seem to have problem with adding and deleting...

btw, i used
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
dovecot=no
 
Last edited:
On my server, the new user's httpd.conf is not included in the main httpd.conf.
all of them are in conf/extra/directadmin-vhosts.conf
I don't seem to have problem with adding and deleting...

btw, i used
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
dovecot=no

Hello,

can you run the following command please

cat /usr/local/directadmin/conf/directadmin.conf | grep apache_ver

Thank you !
 
Maniak, maybe you have /etc/httpd/conf/httpd.conf set into directadmin.conf? Change it to /etc/httpd/conf/extra/directadmin-vhosts.conf :) It should solve your problem (if you have /etc/httpd/conf/httpd.conf now).
 
Maniak, maybe you have /etc/httpd/conf/httpd.conf set into directadmin.conf? Change it to /etc/httpd/conf/extra/directadmin-vhosts.conf :) It should solve your problem (if you have /etc/httpd/conf/httpd.conf now).

Already done.

[root@web01 extra]# cat /usr/local/directadmin/conf/directadmin.conf | grep apacheconf
apacheconf=/etc/httpd/conf/extra/directadmin-vhosts.conf

It really confuse me ! :)
 
Maniak, no answer from John? :) P.S. have you restarted DirectAdmin after the custombuild conversation? (because if the file really has "apacheconf=/etc/httpd/conf/extra/directadmin-vhosts.conf" there should be no problems at all). Try "./build rewrite_confs" and after it "service directadmin restart", then try to add/remove your hosting accounts.
 
Maniak, no answer from John? :) P.S. have you restarted DirectAdmin after the custombuild conversation? (because if the file really has "apacheconf=/etc/httpd/conf/extra/directadmin-vhosts.conf" there should be no problems at all). Try "./build rewrite_confs" and after it "service directadmin restart", then try to add/remove your hosting accounts.
Yes, I got it.

Hello,

Yes, it's put into the directadmin-vhosts.conf in the new script.
Include lines should be removed from the main httpd.conf by the script.. smtalk will need to work out those bugs if they were not being removed.
There should be a completely new main httpd.conf when the new script is used... (I'm still learning how he's doing it as well)

Thank you,

John
--------------------------------------------------

DirectAdmin Web Control Panel
http://www.directadmin.com
 
The issue is fixed.


should only point to the directadmin-vhosts.conf
Also do a full restart of DA as if it's not restarted it will still be using the old path.

Thank you,

John

so just a little directadmin restart fixed that ;)

Thanks for the script and patience smtalk.
 
What's the goal? Firstly, if you don't want to use any virtualhosts - you can just use "echo > /etc/httpd/conf/extra/directadmin-vhosts.conf". Secondly, if you want to rewrite all the virtualhosts, you don't need to manually remove all the "Include" lines from httpd.conf and then use http://help.directadmin.com/item.php?id=121. Moreover, httpd.conf file is much smaller without these include lines and from apache 2.2 virtualhosts are included by default into the separate file (not httpd.conf).

Is the httpd.conf supposed to include all the comments from the basic apache template?

Example on the normal DA httpd.conf its small and easy to edit everything in one file.

For apache 2.2 on this build script everything is in seperate files (I understand this bit because apache 2.2.x changed to this system) so have to find the right file to edit. But also the config is like this.

#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.

And so on, so lots of commented documented stuff to scroll by so bloating the config file.
 
Not sure how much testing has been done with this on CentOS 5 so far, but an issue I have run into while using this has been with the zZipLib. The build script defaulted to 0.10.82 for CentOS 5 which kept erroring on the make process, I had to manually go download and install 0.13.47 and install it to get it working. Not sure why it was doing that but just a heads up for any CentOS 5 testers that are getting errors when they use script.


edit - I notice theres a check in the script that looks for fedora release and if found will use 13.47 but for some reason wasnt being triggered by CentOS 5, not sure why.
 
Last edited:
Not sure how much testing has been done with this on CentOS 5 so far, but an issue I have run into while using this has been with the zZipLib. The build script defaulted to 0.10.82 for CentOS 5 which kept erroring on the make process, I had to manually go download and install 0.13.47 and install it to get it working. Not sure why it was doing that but just a heads up for any CentOS 5 testers that are getting errors when they use script.


edit - I notice theres a check in the script that looks for fedora release and if found will use 13.47 but for some reason wasnt being triggered by CentOS 5, not sure why.

Thank you for the report. I'm fixing it now.
 
Is the httpd.conf supposed to include all the comments from the basic apache template?

Example on the normal DA httpd.conf its small and easy to edit everything in one file.

For apache 2.2 on this build script everything is in seperate files (I understand this bit because apache 2.2.x changed to this system) so have to find the right file to edit. But also the config is like this.



And so on, so lots of commented documented stuff to scroll by so bloating the config file.

Maybe I'll remove these comments for the next release. Thank you for the "feature" request :)
 
Not sure how much testing has been done with this on CentOS 5 so far, but an issue I have run into while using this has been with the zZipLib. The build script defaulted to 0.10.82 for CentOS 5 which kept erroring on the make process, I had to manually go download and install 0.13.47 and install it to get it working.

smtalk, same here with Debian Etch, and since DA is going to be released for Etch anywa, you might just as well update ./build script now, right?

Marshall, you don't have to manually dl zzip, it's enough to replace version in a build script a as I always do:

perl -pi -e "s/ZZIP_VER=0.10.82/ZZIP_VER=0.13.47/g" /usr/local/directadmin/custombuild/build

before compiling anything with ./build, but even this gets tedious pretty fast.
 
smtalk, same here with Debian Etch, and since DA is going to be released for Etch anywa, you might just as well update ./build script now, right?

Marshall, you don't have to manually dl zzip, it's enough to replace version in a build script a as I always do:

perl -pi -e "s/ZZIP_VER=0.10.82/ZZIP_VER=0.13.47/g" /usr/local/directadmin/custombuild/build

before compiling anything with ./build, but even this gets tedious pretty fast.

I'm going to add a check for Debian version (/etc/debian_version), and if there "4.0" exists - it will use 0.13.47 version of zZip. Thank you.
 
From now you can use custombuild at the install time: http://www.directadmin.com/features.php?id=774

I'm going to release 1.0.6 version of it soon. Changelog:
  • ZZIP_VER has been changed to 0.13.49 and is used on all OS'es.
  • ZEND_VER has been changed to 3.2.8.
  • MHASH_VER has been changed to 0.9.9.
  • "fixing zzip/zzip.h and zziplib/zzip-conf.h" has been removed, because it's not needed from libzZip >=0.13.49.
  • doRestartDA function has been added.
  • doRestartDA is used when changing directadmin.conf file.
 
From now you can use custombuild at the install time: http://www.directadmin.com/features.php?id=774

I'm going to release 1.0.6 version of it soon. Changelog:
  • ZZIP_VER has been changed to 0.13.49 and is used on all OS'es.
  • ZEND_VER has been changed to 3.2.8.
  • MHASH_VER has been changed to 0.9.9.
  • "fixing zzip/zzip.h and zziplib/zzip-conf.h" has been removed, because it's not needed from libzZip >=0.13.49.
  • doRestartDA function has been added.
  • doRestartDA is used when changing directadmin.conf file.

Perfect script, thank you !
 
A weird error appears now after d/l of custombuild.tar.gz, unpacking, setting options.conf and doing:

./build update
./build all d

checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/

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

I can see curl-7.16.2.tar.gz, but there's no folder for it after ./build all d - curl was not unpacked and built before ./build tries to compile php, hence an above error.

Several times I have deleted the entire custombuild folder, redownloaded custombuild.tar.gz and tried to recompile, but the above error happens every time.
 
Back
Top