From nobody Wed Apr 05 21:12:37 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 4PsHQr5dWnz449bp for ; Wed, 5 Apr 2023 21:12:52 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 4PsHQr3rgMz3DJX for ; Wed, 5 Apr 2023 21:12:52 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x235.google.com with SMTP id bx10so20340125ljb.8 for ; Wed, 05 Apr 2023 14:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680729170; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jwXRIzzqqW5vpIzTtwT7m874LIa9zmbiLuCk4ak0Zxw=; b=h8FEJusM5B/8XgZFOc20vyc0q4Vuu5gvLZrWq2SsHCqxg9tE3p5x8/X1zojOl7+Zom LXn0osBGWhCuqPm7kQYN7jmZ12UEy8vfGsDOBqUslnfmrv4ixXET0Uh1sf4cKKIctBgg +TsgrilxAKj56gCM5zgkRqlzMGjcHxceU+0pW7BGmdMxzCQx/NsASFOKBdnwS/bFrXD4 jPok5OJLM/RiMdAx98+IvqJi4t3VatTTxbLXPEw4+BvxUNvC9sGlNpAzmLdeYwTJSS+L 4Uxxpxe+VT7lJt1UnJ8vLg/fwf06ebEe7DbS5OEZ5wCPGJLAYxwQsM0/v1hpIWkNr9km KF6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680729170; 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=jwXRIzzqqW5vpIzTtwT7m874LIa9zmbiLuCk4ak0Zxw=; b=hXZ0dW65Bcqquy5we/ZuuaGt8MNJb2YNHzdUZmlh8vjkPaSX5GH9fEKb03ksJricDQ f/UwUKQBmPjMzT7BUJkYPzvmNKiraS+uT0xTEjf9y9mN1l46csfx7ojlDDoyvxOwYBhL MUYmU8iK8Yckuirgjo6oeFx8CjFQOstviz4q2TiQQTh1U4DamaK9JbdMgsjxpTRLJ1e1 Vi8Jb3pMSw/fdGjeZSffCSxQECshbpauBNmeGUXGe6n3/u2EN7xfgiL5XVspkgdmNOzt VFReJKedywUqRGdbdXcNzweeda5cwuQGDqWRNf8yPKRIC/e29Ux6IfViXhAIDQ4fE8uY PKRw== X-Gm-Message-State: AAQBX9dOP2EhnYK4JhtyNEWbYuka9+ndYcchoJaTsOFI5nnKLBl4G46Q DVSpyrPd2z09iZyy4sCVgoRKQ7pf91tOzxxj1gM= X-Google-Smtp-Source: AKy350aAO85hLqgYxCbkRZEDLM+z9d4e1mBKyL34yGTEaD85QefYcNavKTuvLRAubTK9DND/Hvdx6C889AV9U78391w= X-Received: by 2002:a05:651c:8a:b0:2a4:c1fc:9722 with SMTP id 10-20020a05651c008a00b002a4c1fc9722mr2640858ljq.10.1680729169253; Wed, 05 Apr 2023 14:12:49 -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: Odhiambo Washington Date: Thu, 6 Apr 2023 00:12:37 +0300 Message-ID: Subject: Re: updated to 13.1 (i386). Apache won't run if php80 enabled To: William Dudley Cc: freebsd-questions Content-Type: multipart/alternative; boundary="00000000000018dbf305f89d41c1" X-Rspamd-Queue-Id: 4PsHQr3rgMz3DJX X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --00000000000018dbf305f89d41c1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 ca= n >> 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] >> > --00000000000018dbf305f89d41c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 /v= ar/log/messages?

Can you= please sidebar?=C2=A0

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

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.s= o

Nothing at all is written in httpd-error.log.=C2= =A0 When I "start" apache.
If I comment out the php lin= e, 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 -- resum= ing normal operations
[Wed Apr 05 16:05:08.155576 2023] [core:notice] [p= id 15922] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT= '


Thanks,
Bill Dudley



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


On Wed, Apr 5, 2023 at 6:10=E2=80=AFPM William Dudley <wfdudle= y@gmail.com> 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 http= d.conf.

I have another machine running 13.1, but i= t's amd64.=C2=A0 It happily runs
Apache with php80, so I down= graded the i386 machine to php80
so the two machines would be &qu= ot;the same".

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

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

pkg info | grep php
mod_ph= p80-8.0.28_1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PHP Scripting Langua= ge
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<= br>apache24-2.4.56 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0V= ersion 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?=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?<= /div>
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 :-)
=C2=A0


--
Best regards,<= br>Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223<= br>"Oh, the cruft.",=C2=A0= egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83= =84)_/=C2=AF=C2=A0:-)
<= div>[How to ask smart questions:=C2=A0http://www.cat= b.org/~esr/faqs/smart-questions.html]
--00000000000018dbf305f89d41c1--