New build system (BETA)

It should read from /var/www/html :) Except virtual hosts (/etc/httpd/conf/extra/directadmin-vhosts.conf).

Hmmmm ok. But when I have create a reseller account I have got the domain where I have pointed to the domain have get the DA message "bla bla bla". But after this upgrade there is message "It works!". I dont get it ?
 
LionRock, you can change that page, it's not a problem.

CustomBuild 0.1.10 has been released
 
why does it sill NOT work for me :/

it looks like that php-handlers.conf file isnt included in httpd.conf...

including it doesn't make any difference though :/
 
LionRock, can I take a look at your server? If yes - please contact me.
 
Yes, you can :) Just use:
Code:
./build php5
If you are using apache2:
Code:
./build php5_ap2
If you will use:
Code:
./build php
It will ask you some questions (witch version of PHP do you want and what apache version are you using)


this very good.

i try it . now

blessing.....
 
And the following error is returned even when downloading the new build and starting out fresh.

Backing up certificate and key, and turning off httpd for DirectAdmins's check.
Found /usr/local/directadmin/custombuild/httpd-2.2.4.tar.gz
Extracting /usr/local/directadmin/custombuild/httpd-2.2.4.tar.gz...
Configuring httpd-2.2.4
./build: line 2732: /usr/local/directadmin/custombuild/configure/ap2/configure.apache: No such file or directory

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file
 
dovecot problems

./build dovecot has some problems, at least on Debian Etch.

1. ./build update / ./build update_data doesn't download

http://files.directadmin.com/services/custombuild/dovecot-1.0.0.tar.gz

and

http://files.directadmin.com/services/custombuild/exim.conf.dovecot.patch

2. After downloading those files manually to /usr/local/directadmin/custombuild there still are problems with building and deploying configuration:


make[1]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-1.0.0'
cp: cannot stat `/usr/local/directadmin/custombuild/dovecot.boot.debian': No such file or directory
chmod: cannot access `/etc/init.d/dovecot': No such file or directory
update-rc.d: /etc/init.d/dovecot: file does not exist
cp: cannot stat `/usr/local/directadmin/custombuild/configure/dovecot/dovecot.conf': No such file or directory

There's no /etc/dovecot.conf after the process is finished, only /etc/dovecot-*-example.conf files.

3. There is no /etc/init.d/dovecot startup script after script is done.
 
Last edited:
After running throught this installation all php4 fails

In options we only have php cli enabled but when a php site is accessed the file shows php code or it tries to download php instead of executing it. Big problem.

Also, if dav is enabled we get this

[root@server extra]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 15 of /etc/httpd/conf/extra/httpd-dav.conf:
DAVLockDB takes one argument, specify a lock database
[FAILED]
 
Security problem with phpinfo()

When installed as fastcgi, php function phpinfo() displays root's environment (I know that phpinfo() should rather be disabled, but sometimes it is necessary to turn it on at least for a while).

This is because apachectl script inherits the environment of a user that ran the script.

Solution is shown in this link:

http://lists.freebsd.org/pipermail/freebsd-isp/2003-November/001246.html

Replacing the following line in /etc/init.d/httpd :

httpd=/usr/sbin/httpd

with

httpd=`echo /usr/bin/env -i /usr/sbin/httpd`

solves the problem. apachectl script should be similarly updated.
 
After running throught this installation all php4 fails

Also, if dav is enabled we get this

Be careful with webdav. It writes files to disk as "apache" user, which obviously prevents a user from updating them via FTP, plus quota no longer works correctly.

webdav sucks. ;)

Seriously, however, there is a patch for Apache 2.0 (don't know if it works in 2.2) named "mod_dav_fs_diskquota" I think that supposedly takes care of the problem. DISCLAIMER: I haven't tested it and don't know what it's good for.
 
Didnt include webdav its just there when you run this script.

Still cant figure out why php doesnt run. It keeps asking to download the file or it shows the code of index.php in the browser. Im out of clues.
 
Last edited:
How do we undo uninstall and go back to the old method of compiling? I think i want to remove the entire installation.
 
Didnt include webdav its just there when you run this script.

Still cant figure out why php doesnt run. It keeps asking to download the file or it shows the code of index.php in the browser. Im out of clues.

See http://www.comfortnuts.com/shop/ and http://www.comfortnuts.com/phpinfo.php

You may not have handler for php files included in /etc/httpd/conf/httpd.conf, or php module isn't loaded, or it can't handle them, or...

Read logs of Apache to find out what happened.
 
You may not have handler for php files included in /etc/httpd/conf/httpd.conf, or php module isn't loaded, or it can't handle them, or...

Read logs of Apache to find out what happened.

The handlers are all included.

PHP 4.4.6 (cli) (built: Apr 19 2007 14:57:19)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

php.ini looks fine too. No errors on recompile. Its a mystery.

BTW i dont see httpd-php-handlers.conf included anywhere in httpd.conf :confused:
 
Last edited:
right, so, well, hmm...

i just compiled a build "Version 1.0.pre-rc1" with these options:
Code:
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no
apache_ver=2.2
dovecot=no
it compiles ok, but when starting httpd it says:
Code:
mrhat:/usr/local/directadmin/custombuild# apachectl start
Syntax error on line 99 of /etc/httpd/conf/extra/httpd-ssl.conf:
SSLCertificateFile: file '/etc/httpd/conf/ssl.crt/server.crt' does not exist or is empty
in fact, the whole ssl.crt dir is not available :/ (i always do 'rm -rf /etc/httpd' before building)

edit:
weird, it doesn't parse .php4 files :(
it does parse php5 files though, as .php and .php5 :)
 
Last edited:
Back
Top