If you want to add any extra modules to php, they'll most likely need to be compiled in. Any module that needs to be compiled in will have a –with-module type flag which will need to be used. To add this flag, run the following:
cd /usr/local/directadmin/customapache vi configure.php #add your --with-module line to the end of the file, # and make sure the \ character exists at the end of all lines except the last one. ./build clean ./build php
If you're using custombuild instead of customapache, see the link below for instructions.
Then restart apache: RedHat:
/sbin/service httpd restart
FreeBSD:
/usr/local/etc/rc.d/httpd restart