Skip to content

Instantly share code, notes, and snippets.

@oskarnrk
Last active December 14, 2020 01:09
Show Gist options
  • Save oskarnrk/1c9e436408aacf7671c3 to your computer and use it in GitHub Desktop.
Save oskarnrk/1c9e436408aacf7671c3 to your computer and use it in GitHub Desktop.
Install mod_xml2enc for Apache2 in Ubuntu 13.10 or later
#!/bin/sh
sudo apt-get install apache2-prefork-dev libxml2 libxml2-dev apache2-dev
mkdir ~/modbuild/ && cd ~/modbuild/
wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.c
wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.h
sudo apxs2 -aic -I/usr/include/libxml2 ./mod_xml2enc.c
cd ~
sudo rm -rfd ~/modbuild/
sudo service apache2 restart
@sam159
Copy link

sam159 commented Aug 25, 2015

Also works for Debian 8

@max-maxymenko
Copy link

Thanks a lot 👍

@GeneralCan
Copy link

Gold!

@ryanhs
Copy link

ryanhs commented May 27, 2016

thanks a lot!!

@kannyd
Copy link

kannyd commented Jan 6, 2017

good..
thanks a lot !

@stone212
Copy link

Looks like I'm late to the party. That domain is not available. Does anyone have these files?

@joankent
Copy link

thanks a lot!

@RobMeerwijk
Copy link

RobMeerwijk commented Dec 14, 2020

Works for Debian 10 as well, just leave apache2-prefork-dev out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment