How to install an SVN version of Apache using Directadmin Custombuild

This is a quick guide to help out those trying to install an NON-RELEASE version of apache. It was made due to intermittent crashes of apache 2.4.25 with HTTP2 on CentOS with DirectAdmin.

You can see the changelog here:

https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x/CHANGES

Here is the DirectAdmin discussion this was first reported on:

https://forum.directadmin.com/showthread.php?t=52590&page=3

Anyhow...

Here's the fix:

cd /usr/local/directadmin/custombuild
echo "apache2.4:2.4.26:" >> custom_versions.txt #We need to use numbers for versions, since a string, e.g. "x" or "svn" wont work
svn checkout https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x
mv 2.4.x httpd-2.4.26
cd httpd-2.4.26
svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr
./buildconf
cd ..
tar cfvz httpd-2.4.26.tar.gz httpd-2.4.26
./build apache ; ./build php -n ; ./build rewrite_confs
Tags: apache http2 DirectAdmin centos