Skip to content

Installation on Debian Squeeze from Github

Daniel Rudolf edited this page Jul 13, 2016 · 6 revisions

Installation

$ sudo aptitude install lighttpd git php5-cgi php5-sqlite php5-gd

$ sudo lighty-enable-mod fastcgi-php
$ sudo /etc/init.d/lighttpd force-reload

cd /var/www chmod o+w .
$ git clone https://github.com/SSilence/selfoss.git .

$ chmod o+w public
$ chmod o+w data/*

Adjust lighttpd config file

at the top of the file, add those two modules to the list:

server.modules = (
        "mod_rewrite",
        "mod_fastcgi"
)

To the end, some rewrite rules (also see here):

url.rewrite-once += (
 "^/favicon.ico$" => "/public/favicon.ico",
 "^/favicons/(.*)$" => "/data/favicons/$1",
 "^/thumbnails/(.*)$" => "/data/thumbnails/$1",
 "^/public/" => "$0",
 "^/(.*.(js|ico|gif|jpg|png|css|asc|txt|eot|woff|ttf|svg))$" => "/public/$1",
 "^/(.*)" => "/index.php?$1"
 )

to effect the changes, run

$ sudo /etc/init.d/lighttpd force-reload