Lighttpd Home Ref: https://www.howtoforge.com/tutorial/install-lighttpd-with-php-fpm-and-mysql-on-debian/
sudo /etc/init.d/lighttpd start
#www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin www-data:x:33:33:www-data:/home/usr/www:/bin/bash
fastcgi config.
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi -c /etc/lighttpd/php.ini"
)
)
)
DokuWiki will run just fine with Lighttpd and PHP through FastCGI.
/etc/dokuwiki/lighttpd.confcd /etc/lighttpd/conf-availableln /etc/dokuwiki/lighttpd.conf 50-dokuwiki.conf/etc/lighttpd/conf-available/50-dokuwiki.conf -> /etc/dokuwiki/lighttpd.conf
lighttpd-enable-mod dokuwiki/etc/init.d/lighttpd force-reloadalias.url += ("/dokuwiki" => "/usr/share/dokuwiki")
$HTTP["url"] =~ "^/dokuwiki" {
server.follow-symlink = "enable"
}
$HTTP["url"] =~ "/(\.|_)ht" {
url.access-deny = ( "" )
}
$HTTP["url"] =~ "^/dokuwiki/(bin|data|inc|conf)" {
url.access-deny = ( "" )
}
# DokuWiki configuration
# We assume here that the wiki is accessible via http://wiki.example.com/dokuwiki/
var.dokudir = "/dokuwiki"
# make sure those are always served through FastCGI and never as static files
static-file.exclude-extensions = ( ".php" )
# deny access completely to these
$HTTP["url"] =~ "/(\.|_)ht" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + var.dokudir + "/(bin|data|inc|conf)/" { url.access-deny = ( "" ) }
# rewrites for dokuwiki
$HTTP["url"] =~ "^" + var.dokudir { index-file.names = ("doku.php") }
url.rewrite-once = (
"^" + var.dokudir + "/lib/.*$" => "$0",
"^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
"^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
"^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
"^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
"^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
"^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
"^" + var.dokudir + "/doku.php.*" => "$0",
"^" + var.dokudir + "/feed.php.*" => "$0",
"^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
"^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
)