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, use the following configure file(s) then repeat the above steps, but use 'custombuild' instead of 'customapache' in the path:
|
/usr/local/directadmin/custombuild/configure/ap2/configure.php5
/usr/local/directadmin/custombuild/configure/ap2/configure.php4
|
Then restart apache:
RedHat:
|
/sbin/service httpd restart
|
FreeBSD:
|
/usr/local/etc/rc.d/httpd restart
|