How-to Upgrade Apache to 2.2.x

http://www.directadmin.com/forum/showthread.php?s=78bb4e8b8b5deb41fdc7275bb87a051a&threadid=13173&perpage=20&pagenumber=1

http://www.directadmin.com/forum/showthread.php?s=70864a5c335e7705f268e661e0a6d78f&threadid=14285

cd /usr/local/directadmin/customapache
rm -fr build
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build clean
./build update_data_ap2
perl -pi -e 's/2.0.59/2.2.4/' build

or manually change any reference to old version to new

#vi ./build

change APACHE and PHP references according to the version downloaded below.


wget http://www.reverse.net/pub/apache/httpd/httpd-2.2.4.tar.gz
wget http://us2.php.net/get/php-5.2.0.tar.gz/from/this/mirror
./build apache_2
./build php_ap2 n

if you get xml error do this:
# yum install libxml2-devel

vi /etc/httpd/conf/httpd.conf
comment out:

#LoadModule php4_module modules/libphp4.so

add:

LoadModule php5_module modules/libphp5.so

add ".php5" to this line:

AddType application/x-httpd-php .inc .php .php5 .php4 .php3 .phtml

(see here for more help)


./build mod_perl_ap2
./build zend (optional)
/sbin/service httpd restart