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
Code:
mrhat:/usr/local/directadmin/customapache# ./build all d
<compile everything>
whole thing took roughly 1 big hour on my Epia 933
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
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
)
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)....