wok rev 1349

php: .php3 .php4 .php5 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 05 14:50:21 2008 +0000 (2008-09-05)
parents bd076f4e6d8b
children e7fa6384d0ce
files php/receipt
line diff
     1.1 --- a/php/receipt	Fri Sep 05 14:32:17 2008 +0000
     1.2 +++ b/php/receipt	Fri Sep 05 14:50:21 2008 +0000
     1.3 @@ -87,6 +87,9 @@
     1.4  	  grep -q mod_fastcgi $1/etc/lighttpd/lighttpd.conf || \
     1.5  	  	sed -e 's|server.modules = (|server.modules = (\n  "mod_fastcgi",|' \
     1.6  	  	    -i $1/etc/lighttpd/lighttpd.conf
     1.7 +	  grep -q php3 $1/etc/lighttpd/lighttpd.conf || \
     1.8 +	  	sed -e 's|for PHP|for PHP\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|'
     1.9 +
    1.10  	fi
    1.11  	# Start Web server.
    1.12  	if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]; then