New build system (BETA)

Hi

Now while I have updated DA build script works like a charm!!!! ;) No problems until now :)

Regards
 
hi,

is it possible with this new configuration to enable register_globals for php for only one user (since adding this option via .htaccess doesn't work with suphp)?

thnx
 
ScOuT, set a different suPHP_ConfigPath in httpd.conf of the user and place php.ini insted of .htaccess with this content:
Code:
register_globals=on

Good luck!
 
I've just upgrade two servers with the 1.0.6 build script :)
All went fine (again) except it doesn't read the .htaccess files anymore.

Must be something in the httpd.conf, but can't find it.
 
Mr. Jinx, if you use PHP as CGI it shouldn't read them for php_value or php_flag values.
 
Hi,

I think that maybe a check should be added to see if the user has custom virtual* templates in the /usr/local/directadmin/data/templates/custom directory.

If they have then maybe warn them that suPHP requires the new ones or something.

Thanks,
Grant
 
GranTW, suggestion is good, but I don't think it's needed now, because it require some code changes.. It's wasn't included by default with DirectAdmin till 1.295, this version has new templates, so maybe it's not a big problem.. Maybe we should add this to the documentation.. Thank you for this advice :)
 
Hello,

I just setup a new server. I have tried to this script, here are my problems :

OS : CentOS 4.4

1. Apache made error while compiling (not able to tell more about now)
2. Once the setup was done, Apache wasn't starting (tryint to include autoconf-xxxx/httpd-xxxx.conf
3. Did a clean and reinstall of all (./build clean ./build update all ./build all n).
4. Apache not starting error :

[root@vegas custombuild]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Wed May 09 18:38:42 2007] [warn] module php5_module is already loaded, skipping
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
[FAILED]

The file httpd.conf contain many ''^M" everywhere inside...
 
Try this for SSL:
Code:
mkdir -p /etc/httpd/conf/ssl.key
mkdir -p /etc/httpd/conf/ssl.crt
/usr/bin/openssl req -x509 -newkey rsa:1024 -keyout /etc/httpd/conf/ssl.key/server.key -out /etc/httpd/conf/ssl.crt/server.crt -days 9999 -nodes -config ./configure/ap2/cert_config

P.S. are you using the latest version of custombuild?
 
Try this for SSL:
Code:
mkdir -p /etc/httpd/conf/ssl.key
mkdir -p /etc/httpd/conf/ssl.crt
/usr/bin/openssl req -x509 -newkey rsa:1024 -keyout /etc/httpd/conf/ssl.key/server.key -out /etc/httpd/conf/ssl.crt/server.crt -days 9999 -nodes -config ./configure/ap2/cert_config

P.S. are you using the latest version of custombuild?

Yes, it was a fresh server CentOS 4.4 server and a fresh install of DA.

#### NEW SERVER ####

yum update
yum remove samba samba-client samba-common bind-libs
yum install gcc gcc-c++
yum install freetype freetype-devel freetype-libs libxslt libxslt-devel expat expat-devel
chkconfig --level 2345 iptables off

#### DIRECTADMIN ####

touch /root/.custombuild
wget http://www.directadmin.com/setup.sh
sh setup.sh
 
Yes, found one mistype with SSL :)
Code:
        if [ ! -d /etc/httpd/conf/ssl.key ] || [ ! -d /etc/httpd/conf/ssl.crt ]; then
                mkdir -p /etc/httpd/conf/ssl.key
                mkdir -p /etc/httpd/conf/ssl.crt
                #install the cert/key
                /usr/bin/openssl req -x509 -newkey 
rsa:1024 -keyout /etc/httpd/conf/ssl.key/server.key -out /etc/httpd/conf/ssl.crt/server.crt -days 
9999 -nodes -config ./configure/ap2/cert_config
        fi

Needs to be:
Code:
                if [ ! -d /etc/httpd/conf/ssl.key ] || [ ! -d /etc/httpd/conf/ssl.crt ]; then
                        cd ${WORKDIR}
                        mkdir -p /etc/httpd/conf/ssl.key
                        mkdir -p /etc/httpd/conf/ssl.crt
                        #install the cert/key
                        /usr/bin/openssl req -x509 -newkey rsa:1024 -keyout /etc/httpd/conf/ssl.key/server.key -out /etc/httpd/conf/ssl.crt/server.crt -days 9999 -nodes -config ./configure/ap2/cert_config
                        cd ${CWD}
                fi

Thank you.
 
It's fixed now. If you'll have any further problems - just let me know. Thank you.
 
Latest custombuild :

[root@vegas custombuild]# ./build update_script
cat: /etc/debian_version: No such file or directory
--23:28:44-- http://files.directadmin.com/services/custombuild/custombuild/build
=> `/usr/local/directadmin/custombuild/build.new'
Resolving files.directadmin.com... 199.237.54.170
Connecting to files.directadmin.com|199.237.54.170|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
23:28:45 ERROR 404: Not Found.

[root@vegas custombuild]# ./build
[root@vegas custombuild]#
 
It's still in beta folder, that's why you can't use this. Please email support[at]directadmin.com about the files movement from the beta folder.
 
I've re-added the "beta" into the update path.
It's still going to live there until we get it fully integrated into the DA install process and it's tested thorough in that state.

To fix your build file (if it's empty), type:
Code:
wget -O /usr/local/directadmin/custombuild/build http://files.directadmin.com/services/custombuild/beta/custombuild/build

John
 
Back
Top