First of all let’s find which configuration files are used by your system, navigate to:
This will show both your Apache configuration file location and your PHP5 config file
Apache configuration file: /usr/local/directadmin/custombuild/custom/ap2/configure.apache
PHP5 configuration file: /usr/local/directadmin/custombuild/configure/ap2/configure.php5
and add this tag as the last line, noting that the last line doesn’t have a backslash :
./build php n
/sbin/service httpd restart
That should be it. PHP should now be compiled with soap service.