[Buildroot] [PATCH 1/1] PHP-FPM support

Gustavo Zacarias gustavo at zacarias.com.ar
Mon Jul 14 22:28:30 UTC 2014


On 07/14/2014 04:15 PM, Jordi Llonch wrote:

Hi, let's look at this.

> +config BR2_PACKAGE_PHP_SAPI_FPM
> +	bool "FPM"
> +	select BR2_PACKAGE_PHP_FPM
> +	help
> +	  PHP-FPM (FastCGI Process Manager)
> +

Pretty sure it depends on MMU just like CGI does.

> +config BR2_PACKAGE_PHP_SAPI_CLI_FPM
> +	bool "FPM and CLI"
> +	select BR2_PACKAGE_PHP_CLI
> +	select BR2_PACKAGE_PHP_FPM
> +	help
> +	  Command line and PHP-FPM (FastCGI Process Manager)
> +

Another option for FPM alone would be good too, not everyone needs CLI
and php binaries are somewhat big.

> +PHP_CONF_OPT += $(if $(BR2_PACKAGE_PHP_FPM),--enable-fpm --disable-cgi,--disable--fpm)

This should focus on just enable/disabling it's own option, cgi disables
itself via:

PHP_CONF_OPT += $(if $(BR2_PACKAGE_PHP_CGI),,--disable-cgi)

So no need to re-state that.
Regards.




More information about the buildroot mailing list