From nobody Wed Apr 5 21:22:54 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PsHfn6zXmz44BT1 for ; Wed, 5 Apr 2023 21:23:13 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PsHfn5BHRz3JsH for ; Wed, 5 Apr 2023 21:23:13 +0000 (UTC) (envelope-from wfdudley@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x733.google.com with SMTP id u4so5776334qkp.11 for ; Wed, 05 Apr 2023 14:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680729793; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YtiBqaUqEIsWAo3pLAWiutnK4bTLcG7704TUXyUYvZA=; b=J/7HmvEtAf2jl08hBCvXiFwD57tk3LnpPQlMDii95k+9JnH8MjCMTNSrAsaDAzBJOB ApkT5tB5uioU+W4YF3phJiSwz1Ob7QXpaCRK6tj+FqYoGmYRd2sBE/qrDcsQuG4Lb47n akhCMJFbuEB03/7HS80eqLv2ngB3WzTgk41TSl7OiKl7T/C/BMbJRyGrvr1GMBvObcr4 I+2UV/qC5vpaIPlrCwmPk8KqfjsH6D2m4ydI37Wx1eMYgYCrM7+/ySPLUCaNtCppJvEj oYF7IxNZV2HYIV3k1NLz7c77Mj3uHwVL11ELdLmExl0Wry2grWJ383M/4Hj4C5IPUcir P69g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680729793; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YtiBqaUqEIsWAo3pLAWiutnK4bTLcG7704TUXyUYvZA=; b=DOJC3P0hcUVyP4zYvpP5tgANc/AxNy1bf9YaGZbRUPpqQbOhjKbA022RVFh1EX/vw/ BBZq1mXyUz/8UVoRbva47Sb9GVXSCFQvo4Y4u0/14qLCDSK4KchFMLZfkSSkf4FbseGM IzVfISthgR5UK3caZ5HM21vouwz8JT5TyZoByAM28SLzU+b8EX8eZdQQgrrYUtHCBbwK jQFYLUv1OcLQbTDaP4jN+FlQW53t8FUytphZOn4xQWeCt4S2S6D6rCLILFz2QiZtBL8A prXyaURbcBg9+EZI32JP5+CsZSMOs+fmGzhUE4+NnrusRMwh8nZsgxnYPoA9gfKOFHuR EisA== X-Gm-Message-State: AAQBX9eiKg8eZKAwHXeEzuFH/Enn6xUH3355Kt1WmZEiRbG0fjXucBOc o2sy5DLjG+AhKxq70QqserS8hw38NMFvS0q9/Nw= X-Google-Smtp-Source: AKy350btOvBXY5Lv+vut907fvsMzHP8Xtvpjok+T8awZf97Euv50grPH3KoHei0IM1JWW3LZQYY8Sp12zLYa/A1feDk= X-Received: by 2002:a05:620a:2482:b0:746:7cf1:d918 with SMTP id i2-20020a05620a248200b007467cf1d918mr1567619qkn.12.1680729792794; Wed, 05 Apr 2023 14:23:12 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: William Dudley Date: Wed, 5 Apr 2023 17:22:54 -0400 Message-ID: Subject: Re: updated to 13.1 (i386). Apache won't run if php80 enabled To: Odhiambo Washington Cc: freebsd-questions Content-Type: multipart/alternative; boundary="0000000000004355f505f89d6633" X-Rspamd-Queue-Id: 4PsHfn5BHRz3JsH X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000004355f505f89d6633 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is what is in messages at the times (3) that I tried to start apache: Apr 5 16:04:41 dudley kernel: pid 15855 (httpd), jid 0, uid 0: exited on signal 11 (core dumped) Apr 5 16:04:50 dudley kernel: pid 15872 (httpd), jid 0, uid 0: exited on signal 11 (core dumped) Apr 5 16:04:55 dudley kernel: pid 15889 (httpd), jid 0, uid 0: exited on signal 11 (core dumped) What does "sidebar" mean? Bill Dudley On Wed, Apr 5, 2023 at 5:12=E2=80=AFPM Odhiambo Washington wrote: > This is not possible. Httpd will try to start and log the reason why it > can't. > And what do you have in /var/log/messages? > > Can you please sidebar? > > On Wed, Apr 5, 2023, 23:08 William Dudley wrote: > >> Good question, Odhiambo. >> >> The answer is: nothing gets written in the log when I enable php, using >> this line >> in httpd.conf: >> >> LoadModule php_module libexec/apache24/libphp.so >> >> Nothing at all is written in httpd-error.log. When I "start" apache. >> If I comment out the php line, then I see this normal thing: >> >> [Wed Apr 05 16:05:08.154090 2023] [mpm_prefork:notice] [pid 15922] >> AH00163: Apache/2.4.56 (FreeBSD) OpenSSL/1.1.1o-freebsd configured -- >> resuming normal operations >> [Wed Apr 05 16:05:08.155576 2023] [core:notice] [pid 15922] AH00094: >> Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT' >> >> Thanks, >> Bill Dudley >> >> >> >> On Wed, Apr 5, 2023 at 12:40=E2=80=AFPM Odhiambo Washington >> wrote: >> >>> >>> >>> On Wed, Apr 5, 2023 at 6:10=E2=80=AFPM William Dudley >>> wrote: >>> >>>> Since 12.3 is EOL, I upgraded to 13.1 yesterday on an i386 system. >>>> >>>> I had php81 installed (and some web apps used it), but Apache >>>> won't run if php is enabled in httpd.conf. >>>> >>>> I have another machine running 13.1, but it's amd64. It happily runs >>>> Apache with php80, so I downgraded the i386 machine to php80 >>>> so the two machines would be "the same". >>>> >>>> Except this didn't fix the problem. Apache won't run with either php8= 0 >>>> OR php81 enabled, using this stanza in httpd.conf: >>>> >>>> LoadModule php_module libexec/apache24/libphp.so >>>> >>>> pkg info | grep php >>>> mod_php80-8.0.28_1 PHP Scripting Language >>>> php80-8.0.28_1 PHP Scripting Language >>>> >>>> pkg info | grep apache >>>> apache24-2.4.56 Version 2.4.x of Apache web server >>>> >>>> uname -a >>>> FreeBSD dudley 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC i386 >>>> >>>> Am I doing something stupid? (Wouldn't be the first time.) >>>> How best to debug this? A web search did not enlighten me. >>>> >>> >>> What do you have in /var/log/httpd-error.log? >>> That's the clue that you need to look at and share with us so that we >>> can help you. >>> You should actually be running php82 :-) >>> >>> >>> >>> -- >>> Best regards, >>> Odhiambo WASHINGTON, >>> Nairobi,KE >>> +254 7 3200 0004/+254 7 2274 3223 >>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) >>> [How to ask smart questions: >>> http://www.catb.org/~esr/faqs/smart-questions.html] >>> >> --0000000000004355f505f89d6633 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is what is in messages at the times (3) that I tried = to start apache:

Apr =C2=A05 16= :04:41 dudley kernel: pid 15855 (httpd), jid 0, uid 0: exited on signal
= =C2=A011 (core dumped)
Apr =C2=A05 16:04:50 dudley kernel: pid 15872 (ht= tpd), jid 0, uid 0: exited on signal
=C2=A011 (core dumped)
Apr =C2= =A05 16:04:55 dudley kernel: pid 15889 (httpd), jid 0, uid 0: exited on sig= nal
=C2=A011 (core dumped)


Wh= at does "sidebar" mean?

Bill Dudley



On Wed, Apr 5, 2023 at 5:12=E2=80=AFPM Odhiambo Washington= <odhiambo@gmail.com> wrote= :
This is not possible. Httpd will try to start and log the reason why it= can't.=C2=A0
And what do you have in /var/log/message= s?

Can you please sideba= r?=C2=A0

On Wed, Apr 5, 2023, 23:08 William Dudley <wfdudley@gmail.com> wrote= :
Good question, Odhiambo.

The answer is: nothing gets = written in the log when I enable php, using this line
in httpd.conf:

LoadModule php_module =C2=A0 =C2=A0 =C2=A0 =C2=A0 li= bexec/apache24/libphp.so

Nothing at all is written= in httpd-error.log.=C2=A0 When I "start" apache.
If I = comment out the php line, then I see this normal thing:

[Wed Apr 05 16:05:08.154090 2023] [mpm_prefo= rk:notice] [pid 15922] AH00163: Apache/2.4.56 (FreeBSD) OpenSSL/1.1.1o-free= bsd configured -- resuming normal operations
[Wed Apr 05 16:05:08.155576= 2023] [core:notice] [pid 15922] AH00094: Command line: '/usr/local/sbi= n/httpd -D NOHTTPACCEPT'


Thanks,
Bill Dudley



On Wed, Apr 5,= 2023 at 12:40=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com>= ; wrote:


On Wed, Apr 5, 2023 at 6:10=E2=80=AFPM Willi= am Dudley <wfdudley@gmail.com> wrote:
Since 12.3 is EOL, I upgr= aded to 13.1 yesterday on an i386 system.

I had php81 in= stalled (and some web apps used it), but Apache
won't run if = php is enabled in httpd.conf.

I have another machi= ne running 13.1, but it's amd64.=C2=A0 It happily runs
Apache= with php80, so I downgraded the i386 machine to php80
so the two= machines would be "the same".

Except th= is didn't fix the problem.=C2=A0 Apache won't run with either php80=
OR php81 enabled, using this stanza in httpd.conf:
LoadModule php_module =C2=A0 =C2=A0 =C2=A0 =C2=A0 libexec/apach= e24/libphp.so

pkg inf= o | grep php
mod_php80-8.0.28_1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 PHP Scripting Language
php80-8.0.28_1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 PHP Scripting Language

pkg info | grep apache
apache24-2.4.56 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0Version 2.4.x of Apache web server
=

uname -a
FreeBSD dudley 13.1-RELEASE-p3 FreeBS= D 13.1-RELEASE-p3 GENERIC i386


<= div>Am I doing something stupid?=C2=A0 (Wouldn't be the first time.)
How best to debug this?=C2=A0 A web search did not enlighten me.

What do you have in /= var/log/httpd-error.log?
That's the clue that you need to loo= k at and share with us so that we can help you.
You should actual= ly be running php82 :-)
=C2=A0

=
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 32= 00 0004/+254 7 2274 3223
"Oh, the = cruft.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF= =C2=A0:-)
[How to ask sma= rt questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]
--0000000000004355f505f89d6633--