mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Andreas Helmcke <ahelmcke@ela-soft.com>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/2] lighttpd: reenable PHP support via "fast cgi"
Date: Fri, 3 Jun 2022 08:23:36 +0200	[thread overview]
Message-ID: <20220603062336.GV16749@pengutronix.de> (raw)
In-Reply-To: <2192a0b7-00e1-1b7f-b40f-ec62ff39bf5f@ela-soft.com>

On Mon, May 30, 2022 at 06:57:39PM +0200, Andreas Helmcke wrote:
> With PHP8 at hand, the lighttpd's "fast cgi" feature can be used again.
> 
> Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
> Signed-off-by: Andreas Helmcke <ahelmcke@ela-soft.com>
> ---
>  rules/lighttpd.in | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/rules/lighttpd.in b/rules/lighttpd.in
> index 18827467f..ab8f41ca4 100644
> --- a/rules/lighttpd.in
> +++ b/rules/lighttpd.in
> @@ -17,6 +17,7 @@ menuconfig LIGHTTPD
>         select OPENSSL                  if LIGHTTPD_OPENSSL
>         select LUA                      if LIGHTTPD_LUA
>         select LUA_INSTALL_LIBLUA       if LIGHTTPD_LUA
> +       select PHP8                     if LIGHTTPD_MOD_FASTCGI_PHP && RUNTIME
>         select BUSYBOX_START_STOP_DAEMON                        if LIGHTTPD_STARTSCRIPT
>         select BUSYBOX_FEATURE_START_STOP_DAEMON_FANCY          if LIGHTTPD_STARTSCRIPT
>         select BUSYBOX_FEATURE_START_STOP_DAEMON_LONG_OPTIONS   if LIGHTTPD_STARTSCRIPT
> @@ -132,12 +133,14 @@ if LIGHTTPD_MOD_FASTCGI
>  config LIGHTTPD_MOD_FASTCGI_PHP
>         bool
> -       depends on BROKEN
>         prompt "setup php handling with fastcgi"
>         help
>           Enables the necessary packages and configuration files
>           to enable PHP support in lighttpd

add an empty line here.

> +comment "PHP CGI SAPI must be enabled"
> +       depends on LIGHTTPD_MOD_FASTCGI_PHP && !PHP8_SAPI_CGI

What happens if PHP8_SAPI_CGI is not enabled? I think it would be better to
have:

config LIGHTTPD_MOD_FASTCGI_PHP
	depends on !PHP8_SAPI_CGI
	[...]

comment "PHP CGI SAPI must be enabled for PHP support"
	depends on !PHP8_SAPI_CGI

This way, one of the two is visible and you cannot enable lighttpd PHP
support unless PHP is configured correctly.

Michael

> +
>  endif
>  config LIGHTTPD_MOD_MAGNET
> -- 
> 2.34.1
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2022-06-03  6:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-30 16:57 Andreas Helmcke
2022-06-03  6:23 ` Michael Olbrich [this message]
2022-06-03 15:09   ` [ptxdist] [PATCH v2 " Andreas Helmcke
2022-06-20  6:19     ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220603062336.GV16749@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ahelmcke@ela-soft.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox