[OE-core] [PATCH] lighttpd: fix FastCGI configuration for PHP

Koen Kooi koen at dominion.thruhere.net
Mon Jun 25 09:56:58 UTC 2012


Op 25 jun. 2012, om 11:13 heeft Marcin Juszkiewicz het volgende geschreven:

> /usr/local/bin/php was set as PHP interpreter so lighttpd failed to run.
> Also uncommented FastCGI configuration block to make mod_fastcgi
> enablement easier for user.
> 
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz at linaro.org>
> ---
> meta/recipes-extended/lighttpd/files/lighttpd.conf |   16 ++++++++--------
> meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb  |    2 +-
> 2 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/meta/recipes-extended/lighttpd/files/lighttpd.conf b/meta/recipes-extended/lighttpd/files/lighttpd.conf
> index 3342470..0838da8 100644
> --- a/meta/recipes-extended/lighttpd/files/lighttpd.conf
> +++ b/meta/recipes-extended/lighttpd/files/lighttpd.conf
> @@ -211,14 +211,14 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
> #### fastcgi module
> ## read fastcgi.txt for more info
> ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
> -#fastcgi.server             = ( ".php" =>
> -#                               ( "localhost" =>
> -#                                 (
> -#                                   "socket" => "/tmp/php-fastcgi.socket",
> -#                                   "bin-path" => "/usr/local/bin/php"
> -#                                 )
> -#                               )
> -#                            )
> +fastcgi.server             = ( ".php" =>
> +                               ( "localhost" =>
> +                                 (
> +                                   "socket" => "/tmp/php-fastcgi.socket",
> +                                   "bin-path" => "/usr/bin/php-cgi"
> +                                 )

How does this work with DISTROs that set ${prefix}=""?

regards,

Koen



More information about the Openembedded-core mailing list