PHP feature: We ship it disabled per default.

- User needs to opt-in
 - Unrestricted, execution, currently

Fixed #130
This commit is contained in:
Matthias Strubel 2016-04-26 21:05:20 +02:00
parent 8fd815d1e5
commit 6c2c691b40
2 changed files with 7 additions and 26 deletions

View File

@ -1,25 +0,0 @@
#-------------------- FAST CGI stuff
server.modules += ( "mod_fastcgi" )
fastcgi.server = (
".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1
))
)
# Run a specific php script when the URL /generate_204 is requested.
# Android clients request this URL to check for a full working
# internet connection, we want to fake a reply. This config section is
# a hack to make a php script without the ".php" extension work when
# mod_rewrite is not available.
$HTTP["url"] =~ "^/generate_204$" {
fastcgi.server = (
"" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1
))
)
}

View File

@ -7,6 +7,7 @@ server.modules = (
"mod_redirect",
# "mod_rewrite",
"mod_setenv",
"mod_fastcgi"
)
server.document-root = "/opt/piratebox/www"
@ -114,4 +115,9 @@ $HTTP["useragent"] =~ "CaptiveNetworkSupport" {
server.error-handler-404 = "/success.html"
}
include "/opt/piratebox/conf/lighttpd/fastcgi.conf"
include "/opt/piratebox/conf/lighttpd/fastcgi-php-generate203.conf"
## Uncommenting the following line enables PHP for the
## complete PirateBox
#include "/opt/piratebox/conf/lighttpd/fastcgi-php.conf"