How to Add Custom Modules to php in DirectAdmin
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
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
/usr/local/directadmin/custombuild/configure/ap2/configure.php4
Then restart apache
Leave a Reply
You must be logged in to post a comment.