4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
25 ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
27 ## In order to use PHP with Lighttpd you need to make sure that the
28 ## appropriate PHP packages are installed and that the paths to the
29 ## php-cgi binary and the php.ini file are correct. To facilite this
30 ## the variable "php_bin-path" has been provided. Set this variable
31 ## to the correct values for your setup.
33 ## To use this file, add an include directive to the lighttpd.conf file, i.e:
34 ## include "conf.d/fcgi-php.conf" (without the '##'))
36 var.php_bin-path = "/usr/php/bin/php-cgi"
39 server.modules += ("mod_fastcgi")
42 fastcgi.server = ( ".php" =>
45 "socket" => "/tmp/php-fastcgi.socket",
46 "bin-path" => php_bin-path