Skip to content

Instantly share code, notes, and snippets.

@bor8
Last active July 22, 2016 10:20
Show Gist options
  • Save bor8/dfa4d00182de60b481322a496330fc73 to your computer and use it in GitHub Desktop.
Save bor8/dfa4d00182de60b481322a496330fc73 to your computer and use it in GitHub Desktop.
Install Feedvalidator with Ubuntu 14.04 LTS, lighttpd and CGI.
apt update
apt install git python python-iconvcodec lighttpd
cd /var/www
git clone https://github.com/rubys/feedvalidator.git
chown -R www-data:www-data /var/www/feedvalidator/
service lighttpd start
lighty-enable-mod cgi

Edit /etc/lighttpd/conf-enabled/10-cgi.conf...

...
$HTTP["url"] =~ "^/feedvalidator/" {
  cgi.assign = ( ".cgi" => "/usr/bin/python" )
}
...

Edit /etc/lighttpd/lighttpd.conf...

...
index-file.names            = ( "check.cgi", "index.php", "index.html", "index.lighttpd.html" )
...
static-file.exclude-extensions = ( ".cgi", ".php", ".pl", ".fcgi" )
...
service lighttpd force-reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment