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
@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