From nobody Wed Apr 05 20:08:16 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 4PsG0j1Jhnz4455X for ; Wed, 5 Apr 2023 20:08:37 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) (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 4PsG0h5JrGz4Kpf for ; Wed, 5 Apr 2023 20:08:36 +0000 (UTC) (envelope-from wfdudley@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qv1-xf33.google.com with SMTP id x8so26950316qvr.9 for ; Wed, 05 Apr 2023 13:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680725314; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aw12WpqZT54icN2V1/I3FNBEXdPIWIlo3eDYdoKGN2g=; b=JebliFjxa/j2eOzKvuQz1IbYBpiZxW2kBHzkH5SkQcHRPrI4yVOfHDF5tOI2h9f+iB wYlc3iqxX5wB68+XyKxVe4cIXJUAM+2kfiU7S2jSGyJXR7VJQQknT3TwNeQh2XQNzjJ0 Iu9Dp4nIl5M30OoCCsBsFPeKmA+cAHL/KIVTU9KqtvRHyO8Rs1bDbZla9nmvCzer6ECB RGTQP4Cyz0+vLqbyIK4vLt9n6la+uYko9vlhI3uf6pF2JeFh4mNZ48fkj6h0CgJSyrwB ldzugBxo6JtSVMqDI1VKwxF3OYhpqF9ZXe+74wpJpLNE46yUxun7cnyOsnPyPnA1eqRZ gbYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680725314; 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=aw12WpqZT54icN2V1/I3FNBEXdPIWIlo3eDYdoKGN2g=; b=Gvk/8Y+c5aJhg6qFVIRHG7S40zVn3yc8wyzmIp3DsZ/fUkuZL2T7Qcs+ryyNyI51gc 1bHvmLxsOKcWaGVc6VPQiCCCMEr/w/vZEXccUMpo/LJE4X9JCeUE5+B3uC4Yjgcc9e70 +d2xQSC62GFg/NEE0sCL73zud2ThGOknohojG4bu56vozeFdk0kA5funVM+s53D9RCFm qnx0N31iDeIB92TAVipCnDtt7Mnlw5WZ+M8T0DnqwqllPUn4EmUBH1qy0Rt4uP2ZBE/W aqPYT1JAJ4oET3S1hH1YDdM/hrYzZr5F8WWifUoKvkugGhZzFTOH1gcRpbcS6B0LDYvm TSyg== X-Gm-Message-State: AAQBX9dkgGfK3DeIzrD/e+iIBskQqq4r4RvC8BdUtmfxGQmHbxp9/ajo iIxus+6xH2+3nG2ojbxA/ZHB2hr+pHpKiungohOMnN/RCYU= X-Google-Smtp-Source: AKy350bmxgSf7de7yZz+V/BxeyT328C85C62+iPCXXHMRGWT8O3e9I7islChvqDUem4CiooeWTyZOlmz4XiGIwcZlEs= X-Received: by 2002:a05:6214:5617:b0:5a8:6ec7:b5ef with SMTP id mg23-20020a056214561700b005a86ec7b5efmr104646qvb.9.1680725314523; Wed, 05 Apr 2023 13:08:34 -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 16:08:16 -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="00000000000056586d05f89c5b82" X-Rspamd-Queue-Id: 4PsG0h5JrGz4Kpf 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 --00000000000056586d05f89c5b82 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 php80 >> 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] > --00000000000056586d05f89c5b82 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 libexec/apache24/libphp.so

Nothing a= t 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_prefork:notice] [pid 15922] AH00163: Apache/2.4.56 (FreeBSD) Ope= nSSL/1.1.1o-freebsd configured -- resuming normal operations
[Wed Apr 05= 16:05:08.155576 2023] [core:notice] [pid 15922] AH00094: Command line: = 9;/usr/local/sbin/httpd -D NOHTTPACCEPT'


Thanks,
Bill Dudley



On Wed, Apr 5, 2023 at 12:40=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">


On Wed, Apr 5, 2023 at 6:10=E2=80=AFPM William Dudley <wfdudley@gmail.com&= gt; wrote:
Since 12.3 is EOL, I upgraded to 13.1 yesterday on an i386 syst= em.

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

I have another machine running 13.1, but it's amd64.= =C2=A0 It happily runs
Apache with php80, so I downgraded the i38= 6 machine to php80
so the two machines would be "the same&qu= ot;.

Except this didn't fix the problem.=C2=A0= Apache won't run with either php80
OR php81 enabled, using t= his stanza in httpd.conf:

LoadModule php_module = =C2=A0 =C2=A0 =C2=A0 =C2=A0 libexec/apache24/libphp.so

pkg info | 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 Script= ing 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 o= f Apache web server

uname -a
F= reeBSD dudley 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC i386

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 look at and share with us so that we can h= elp you.
You should actually be running php82 :-)
=C2= =A0


--
Best regards,
Odhiambo = WASHINGTON,
Nairobi,KE
+254 7 3200 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 smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.h= tml]
--00000000000056586d05f89c5b82--