cd /usr/local/directadmin/customapache
wget http://files.directadmin.com/services/customapache/php-5.2.4.tar.gz
nano build
change: PHP_VER=4.4.4./build clean
./build php n
./build clean
./build php_ap2 n
LoadModule php4_module modules/libphp4.so
LoadModule php5_module modules/libphp5.so
AddModule mod_php4.c
and replace with:AddModule mod_php5.c
replace with:
Find this:
AddType application/x-httpd-php-source .phps
(it might have AddHandler instead of AddType)
replace with:
AddHandler application/x-httpd-php .inc .php .php5 .php4 .php3 .phtml
AddHandler application/x-httpd-php-source .phps
If you get the following error while compiling php:
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.php file
--with-xml \
to: --disable-libxml \
--disable-dom \
--disable-xml \
--disable-simplexml \
--disable-xmlreader \
--disable-xmlwriter \
yum -y install libxml2-devel libxslt-devel
FreeBSD:pkg_add -r libxml2
pkg_add -r libxslt
wget http://files.directadmin.com/services/customapache/libxml2-2.6.30.tar.gz
tar xvzf libxml2-2.6.30.tar.gz
cd libxml2-2.6.30
./configure
make && make install