DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

How to use a custom patch to build software with custombuild on Directadmin server

| 01:02:56 31.07.2015

Let's say you want to use a 3rd party or your own patch for Apache, Exim, etc before to compile a software by custombuild script on a Directadmin server and here is a way for you to go.

Custom patch for Apache

For example, if you'd like to patch apache with your own patch, run the following code:

cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -p configure/ap2/configure.apache custom/ap2/configure.apache
mkdir patches/custom/

Save your patch into /usr/local/directadmin/custombuild/patches/custom/apache.patch

vi /usr/local/directadmin/custombuild/patches/custom/apache.patch

Now edit custom/ap2/configure.apache and add the following before "./configure":

if [ -f ${patch} ]; then patch -p1 < ${patch}; fi;

That's it. Every time you build apache, your own patch will get applied.

P.S. Thanks to smtalk  for this idea.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.

All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition