I am installating the Apache Module mod_systemd. I am using Arch Linux.
I have no idea where and how to start.

  • What makes you think you actually need this module? – jasonwryan Feb 14 '16 at 7:23

In this answer, we describe:

  • How to download and compile Apache trunk version (it is the first version with mod_systemd).
  • How to compile Apache with signatures of an older version.

When this answer was posted, the trunk version was Apache 2.5

Download and compile Apache trunk version

I recommend to do this in a testing environment. I've tested it on a debian minbase wheezy system. For arch linux the package names should be similar and instead of apt-get, pacman should be used. The configure script will prompt all missing build dependencies anyway.

Install build dependencies (debian minbase wheezy example)

apt-get install subversion
apt-get install autoconf
apt-get install libtool
apt-get install python
apt-get install libexpat1-dev
apt-get install libpcre3-dev
apt-get install libsystemd-daemon-dev
apt-get install g++
apt-get install make

Download apache development source code

mkdir trunk
cd trunk
svn co http://svn.apache.org/repos/asf/httpd/httpd/trunk ./
svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr

Configure apache

./configure --enable-systemd

Build and install

make install

Enable mod_systemd

echo "LoadModule systemd_module modules/mod_systemd.so" >> /usr/local/apache2/conf/httpd.conf

Check enabled modules

/usr/local/apache2/bin/apachectl -M

Compile Apache with signatures of an older version

If you want to use mod_systemd in an older version of Apache, you may try to compile Apache 2.5 with other version's signatures.

Check which version of Apache you have

apachectl -v

Download the source code of your Apache version


Uncompress its contents

tar xf httpd-version.tar.gz

Copy the signature's file to the trunk version folder

cp httpd-version/include/ap_mmn.h ~/trunk/include/

Compile the trunk version with other version's signatures

cd ~/trunk

Copy mod_systemd wherever you want

find . -name mod_systemd.so -exec cp {} destination/ \;
  • 1
    can you be more specific?I have mentioned my distribution. where can I find the actual module to download? secondly, I am using apache 2.4 and in the docs it does not mention any where about the version this mod needs – Edward Torvalds Feb 14 '16 at 4:40
  • @edwardtorvalds Sure :D ↑ – ncomputers Feb 14 '16 at 6:57
  • This may be the way to do it on debian, but it is a terrible idea for Arch... – jasonwryan Feb 14 '16 at 7:18
  • 1
    @ncomputers.org second question, does this module comes with apache source code? – Edward Torvalds Feb 14 '16 at 8:21
  • 1
    @ncomputers.org cant we build this module separately ? and insert in already install apache ? – Edward Torvalds Feb 14 '16 at 8:36

You can simply use apache25 (and php-apache25, if you need PHP) from AUR.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.