Recompile php in DirectAdmin
If you run into problems after Adding custom modules to apache for customapache, you may also need to recompile php as well:
cd /usr/local/directadmin/customapache
and then
Then restart apache:
/sbin/service httpd restart
And for FreeBSD:
/usr/local/etc/rc.d/httpd restart
Source : http://directadmin.com
Adding extra modules to Apache, by compiling in DirectAdmin.
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.apache_ssl
Add your –with-module line to the end of the file, where –with-module is to be replaced with required entry for the module you’re installing.
Make sure the character exists at the end of all lines except the last one.
./build clean
./build apache_mod_ssl
Then restart apache.
Source: http://directadmin.com/
When compiling receive the error et/com_err.h: No such file or directory
If you receive the error When compiling.
/usr/include/krb5.h:2606:24: et/com_err.h: No such file or directory
Then install the following to resolve.
yum install e2fsprogs-devel
or
up2date -u e2fsprogs-devel
Source : http://directadmin.com/
For apache 2.0 use the following methods.
cd /usr/local/directadmin/customapache
./build clean
rm -f configure.*
./build update
./build update_data_ap2
./build apache_2
./buld php_ap2 n
./build mod_perl_ap2
Once the update has completed, you’ll need to restart apache:
/sbin/service httpd restart
If you’re using apache 2.x, use “./build apache_2” instead of apache_mod_ssl.
cd /usr/local/directadmin/customapache
./build clean
./build update
./build apache_mod_ssl
This should update both the configure options and the version of apache to the most recent version.
Once the update has completed, you’ll need to restart apache
/sbin/service httpd restart
Source: http://directadmin.com