New build system (BETA)

Yes, because it's the same (old) binary of php :) If you have compiled php5, then:
Code:
/usr/local/php5/bin/php -v

For php4:
Code:
/usr/local/php4/bin/php -v
 
Yes, because it's the same (old) binary of php :) If you have compiled php5, then:
Code:
/usr/local/php5/bin/php -v

For php4:
Code:
/usr/local/php4/bin/php -v
Ah. That's fancy :-)

How would I go to uninstall the old version? As it's not needed anymore.
 
for the record, i already pointed out the tar.gz.1 on files.directadmin.com :p

when will you upload the new version smtalk?
 
It's needed, because if you will uninstall it - DirectAdmin's interface will got broken. It's located in /usr/local/bin/php.
 
Oh. Gotcha.

Thanks for all the information, it's been very useful. I hope that you write up some detailed documentation later on about how this script works. I, for once, would enjoy to know the inner-workings of DA and how to update it's different components.
 
No, thanks for you, because you've reported some bugs :) It's still beta, that's why there are no documentation at all. Have a good day!
 
ok, started all over and here are some results:
Code:
cd /usr/local/directadmin
mv customapache customapache.old
wget http://files.directadmin.com/services/customapache/beta/customapache.tar.gz
tar xvzf customapache.tar.gz
cd customapache
Lets get to it:
Code:
mrhat:/usr/local/directadmin/customapache# ./build update_data
<downloading files>
And then a second run:
Code:
mrhat:/usr/local/directadmin/customapache# ./build update_data
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory
File already exists:    httpd-2.2.4.tar.gz
File already exists:    httpd_2
File already exists:    httpd_2_freebsd
File already exists:    httpd_2_debian
File already exists:    httpd.conf
File already exists:    ssl.conf
File already exists:    mime.types
File already exists:    mod_perl-2.0.3.tar.gz
File already exists:    curl-7.16.1.tar.gz
File already exists:    gd-2.0.34.tar.gz
File already exists:    libmcrypt-2.5.7.tar.gz
File already exists:    mhash-0.9.1.tar.gz
File already exists:    zziplib-0.10.82.tar.gz
File already exists:    php-4.4.6.tar.gz
File already exists:    php-5.2.1.tar.gz
File already exists:    webalizer-2.01-10-src.tgz
File already exists:    proftpd-1.3.1rc2.tar.gz
File already exists:    suphp-0.6.2.tar.gz
File already exists:    dovecot-1.0.rc29.tar.gz
File already exists:    dovecot.boot
File already exists:    dovecot.boot.freebsd
File already exists:    dovecot.boot.debian
File already exists:    dovecot.conf
File already exists:    exim.conf.dovecot.patch
Great :D

Code:
mrhat:/usr/local/directadmin/customapache# ./build all d
<compile everything>

whole thing took roughly 1 big hour on my Epia 933 :p
Code:
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

Make Complete
Copying php.ini..
/usr/local/lib/php.ini already exists, skipping.
Increasing memory limit to 20M...
Installing php...
Installing PHP SAPI module:       apache2handler
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' libphp5.la /usr/lib/apache
/var/www/build/libtool --mode=install cp libphp5.la /usr/lib/apache/
cp .libs/libphp5.so /usr/lib/apache/libphp5.so
cp .libs/libphp5.lai /usr/lib/apache/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/directadmin/customapache/php-5.2.1/libs'
chmod 755 /usr/lib/apache/libphp5.so
[activating module `php5' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Console_Getopt - already installed: 1.2.1
[PEAR] Archive_Tar    - already installed: 1.3.2
[PEAR] PEAR           - already installed: 1.5.0
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/include/php/ext/pdo/
PHP 5.2.1 Installed.
./build: line 2039: doModPerl2: command not found
ok, so lets restart apache now:
Code:
mrhat:/usr/local/directadmin/customapache# /etc/init.d/httpd stop
Stopping httpd:
mrhat:/usr/local/directadmin/customapache# /etc/init.d/httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd (pid 25911) already running

BTW: the /etc/init.d/httpd restart fails to kill the httpd processes... but i have 'killall' for that :p

opening /phpmyadmin/ fails :(
opening /webmail/ gives a popup to download a phtml file :(
also, php files dont get parsed but there contents are simply shown :(

i think the problem is httpd.conf since searching for 'php' only gives this:
Code:
LoadModule php5_module        /usr/lib/apache/libphp5.so
now where are the add-type lines etc....

edit2:
i think it wasn't moving the httpd.conf to /etc/httpd/conf/

However, i will reinstall DA first and after that i will test the new build script again :) (or ill put it somewhere inside the setup.sh progress :p)

edit3:
DA is installed and im now busy with ./build update_data

edit4:
teh ****:
Code:
customapache/httpd-2.2.4/srclib/apr-util/xml/expat/lib /usr/local/directadmin/customapache/httpd-2.2.4/srclib/apr-util/xml/expat/lib/libexpat.la /usr/local/directadmin/customapache/httpd-2.2.4/srclib/apr/libapr-1.la -lrt -lcrypt -lpthread -ldl
libtool: link: `/usr/local/directadmin/customapache/httpd-2.2.4/srclib/apr/libapr-1.la' is not a valid libtool archive
make[3]: *** [libaprutil-1.la] Error 1
make[3]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.2.4/srclib/apr-util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.2.4/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.2.4/srclib'
make: *** [all-recursive] Error 1
mrhat:/usr/local/directadmin/customapache#
VERY weird, lets just try again :)

edit5:
Noticed this:
Code:
mrhat:/usr/local/directadmin/customapache# ./build all d
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting libxslt1-dev instead of libxslt-dev
E: Couldn't find package libtool-libs
Backing up certificate and key, and turning off httpd for DirectAdmins's check.
Found /usr/local/directadmin/customapache/httpd-2.2.4.tar.gz
Extracting /usr/local/directadmin/customapache/httpd-2.2.4.tar.gz...
So, apt-get install libtool and keep trying :)

edit6:
i hate openvz:
Code:
/usr/local/directadmin/customapache/httpd-2.2.4/srclib/apr/libtool: fork: Cannot allocate memory
will reboot the vm AGAIN (4th time this afternoon) in order to reset the memcounters (hopefully)....
 
Last edited:
(@#%(*@^%($^%(@^*()(#$@#% !
Code:
Configuring extensions
checking whether to enable LIBXML support... yes
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.php5 file
:)

edit:
Code:
apt-get install libxml2-dev
fixed it
 
Last edited:
did that even before your post :p

its compiling now, after a clean, so ill post the results when its done.
 
hmm:
Code:
cp .libs/libphp5.lai /usr/lib/apache/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/directadmin/customapache/php-5.2.1/libs'
chmod 755 /usr/lib/apache/libphp5.so
[activating module `php5' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Console_Getopt - already installed: 1.2.1
[PEAR] Archive_Tar    - already installed: 1.3.2
[PEAR] PEAR           - already installed: 1.5.0
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/include/php/ext/pdo/
PHP 5.2.1 Installed.
./build: line 2039: doModPerl2: command not found




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

Type: /etc/init.d/httpd restart
mrhat:/usr/local/directadmin/customapache# /etc/init.d/httpd stop
Stopping httpd:
mrhat:/usr/local/directadmin/customapache# /etc/init.d/httpd start
Starting httpd:
 Apache 1.3 configuration directives found
 please read @docdir@/migration.html
/etc/init.d/httpd: line 37: failure: command not found

edit:
and
Code:
mrhat:/usr/local/directadmin/customapache# apachectl start
httpd: Syntax error on line 24 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_vhost_alias.so into server: /etc/httpd/modules/mod_vhost_alias.so: undefined symbol: ap_table_setn

edit2:
this is /etc/init.d/httpd
Code:
check13 () {
        CONFFILE=/etc/httpd/conf/httpd.conf
        GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
        GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
        GONE="${GONE}AccessConfig|ResourceConfig)"
        if grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
                echo
                echo 1>&2 " Apache 1.3 configuration directives found"
                echo 1>&2 " please read @docdir@/migration.html"
                failure "Apache 1.3 config directives test"
so, i checked /etc/httpd/conf/httpd.conf and deleted all the lines with stuff from the $GONE above.

Code:
mrhat:/usr/local/directadmin/customapache# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_vhost_alias.so into server: /etc/httpd/modules/mod_vhost_alias.so: undefined symbol: ap_table_setn
 
Last edited:
Yes, it's a known issue, and maybe the last one left, just change:
Code:
        if [ "${APACHE_OPT}" = "1.3" ]; then
                doModPerl;
        elif [ "${APACHE_OPT}" = "2.0" ] || [ "${APACHE_OPT}" = "2.2" ]; then
                doModPerl2;
        fi
to
Code:
doModPerl;
 
New configs for apache are ready and will be included as soon as possible to the script :) (I guess today) Structure is very different.
 
Back
Top