If you get this error
/usr/lib/libexpat.so: could not read symbols: File in wrong format
add the following option to your apache configure file:--with-expat=builtin
You place that into:/usr/local/directadmin/custombuild/custom/ap2/configure.apache
as:"--with-expat=builtin" \
taking note of the \ character that must be present on all lines except for that last line.You'll need to copy this file to the above location:
/usr/local/directadmin/custombuild/configure/ap2/configure.apache
to ensure that your changes remain after updating custombuild.This is the related guide to make that change.