-
Notifications
You must be signed in to change notification settings - Fork 345
Installation on Debian Squeeze from Github
Jan Tojnar edited this page Apr 9, 2017
·
6 revisions
$ sudo aptitude install lighttpd git php5-cgi php5-sqlite php5-gd
$ sudo lighty-enable-mod fastcgi-php
$ sudo /etc/init.d/lighttpd force-reloadcd /var/www chmod o+w .
$ git clone https://github.com/SSilence/selfoss.git .$ chmod o+w public
$ chmod o+w data/*
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