Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2023 17:22:54 -0400
From:      William Dudley <wfdudley@gmail.com>
To:        Odhiambo Washington <odhiambo@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: updated to 13.1 (i386). Apache won't run if php80 enabled
Message-ID:  <CAFsnNZJu3eP9gXgVunNihA-q4qjMFaLuXefs=dQWaO0ktwWf7g@mail.gmail.com>
In-Reply-To: <CAAdA2WNbSb10pxwPa4WjoUbkSpxYxKabEwJjuRF%2BbWyrx0r4Qw@mail.gmail.com>
References:  <CAFsnNZJxHSFc-Tb2PmLq59HWNxD6SNjwQqnPneJfRXqMipUw8g@mail.gmail.com> <CAAdA2WOm4iJHYb7UZ4YtKeufB46K_PFqqJ3LXcMau_YmWhvEGQ@mail.gmail.com> <CAFsnNZKESK7oxpG-sxKuAczbZrq-gMZQGchHOoYnDWPbQ0JKjg@mail.gmail.com> <CAAdA2WNbSb10pxwPa4WjoUbkSpxYxKabEwJjuRF%2BbWyrx0r4Qw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <odhiambo@gmail.=
com>
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 <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         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 <odhiambo@gm=
ail.com>
>> wrote:
>>
>>>
>>>
>>> On Wed, Apr 5, 2023 at 6:10=E2=80=AFPM William Dudley <wfdudley@gmail.c=
om>
>>> 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

<div dir=3D"ltr">This is what is in messages at the times (3) that I tried =
to start apache:<div><br></div><div><font face=3D"monospace">Apr =C2=A05 16=
:04:41 dudley kernel: pid 15855 (httpd), jid 0, uid 0: exited on signal<br>=
=C2=A011 (core dumped)<br>Apr =C2=A05 16:04:50 dudley kernel: pid 15872 (ht=
tpd), jid 0, uid 0: exited on signal<br>=C2=A011 (core dumped)<br>Apr =C2=
=A05 16:04:55 dudley kernel: pid 15889 (httpd), jid 0, uid 0: exited on sig=
nal<br>=C2=A011 (core dumped)</font><br clear=3D"all"><div><div dir=3D"ltr"=
 class=3D"gmail_signature show" data-smartmail=3D"gmail_signature"><br></di=
v><div class=3D"gmail_signature show" data-smartmail=3D"gmail_signature">Wh=
at does &quot;sidebar&quot; mean?</div><div class=3D"gmail_signature show" =
data-smartmail=3D"gmail_signature"><br></div><div class=3D"gmail_signature =
show" data-smartmail=3D"gmail_signature">Bill Dudley</div><div dir=3D"ltr" =
class=3D"gmail_signature show" data-smartmail=3D"gmail_signature"><br></div=
></div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas=
s=3D"gmail_attr">On Wed, Apr 5, 2023 at 5:12=E2=80=AFPM Odhiambo Washington=
 &lt;<a href=3D"mailto:odhiambo@gmail.com">odhiambo@gmail.com</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"au=
to">This is not possible. Httpd will try to start and log the reason why it=
 can&#39;t.=C2=A0<div dir=3D"auto">And what do you have in /var/log/message=
s?</div><div dir=3D"auto"><br></div><div dir=3D"auto">Can you please sideba=
r?=C2=A0</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Wed, Apr 5, 2023, 23:08 William Dudley &lt;<a href=3D"ma=
ilto:wfdudley@gmail.com" target=3D"_blank">wfdudley@gmail.com</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"lt=
r">Good question, Odhiambo.<div><br></div><div>The answer is: nothing gets =
written in the log when I enable php, using this line<div>in httpd.conf:</d=
iv><div><br></div><div>LoadModule php_module =C2=A0 =C2=A0 =C2=A0 =C2=A0 li=
bexec/apache24/libphp.so</div><div><br></div><div>Nothing at all is written=
 in httpd-error.log.=C2=A0 When I &quot;start&quot; apache.</div><div>If I =
comment out the php line, then I see this normal thing:</div><div><br></div=
><div><font face=3D"monospace">[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<br>[Wed Apr 05 16:05:08.155576=
 2023] [core:notice] [pid 15922] AH00094: Command line: &#39;/usr/local/sbi=
n/httpd -D NOHTTPACCEPT&#39;</font><br></div><div><br></div><div>Thanks,</d=
iv><div>Bill Dudley</div><div><br></div><div><br></div></div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Apr 5,=
 2023 at 12:40=E2=80=AFPM Odhiambo Washington &lt;<a href=3D"mailto:odhiamb=
o@gmail.com" rel=3D"noreferrer" target=3D"_blank">odhiambo@gmail.com</a>&gt=
; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div di=
r=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote"><div di=
r=3D"ltr" class=3D"gmail_attr">On Wed, Apr 5, 2023 at 6:10=E2=80=AFPM Willi=
am Dudley &lt;<a href=3D"mailto:wfdudley@gmail.com" rel=3D"noreferrer" targ=
et=3D"_blank">wfdudley@gmail.com</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"ltr">Since 12.3 is EOL, I upgr=
aded to 13.1 yesterday on an i386 system.<div><br></div><div>I had php81 in=
stalled (and some web apps used it), but Apache</div><div>won&#39;t run if =
php is enabled in httpd.conf.</div><div><br></div><div>I have another machi=
ne running 13.1, but it&#39;s amd64.=C2=A0 It happily runs</div><div>Apache=
 with php80, so I downgraded the i386 machine to php80</div><div>so the two=
 machines would be &quot;the same&quot;.</div><div><br></div><div>Except th=
is didn&#39;t fix the problem.=C2=A0 Apache won&#39;t run with either php80=
</div><div>OR php81 enabled, using this stanza in httpd.conf:</div><div><br=
></div><div>LoadModule php_module =C2=A0 =C2=A0 =C2=A0 =C2=A0 libexec/apach=
e24/libphp.so<br></div><div><br></div><div><font face=3D"monospace">pkg inf=
o | grep php<br>mod_php80-8.0.28_1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 PHP Scripting Language<br>php80-8.0.28_1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 PHP Scripting Language</font></div><div><font f=
ace=3D"monospace"><br></font><div><div dir=3D"ltr"><font face=3D"monospace"=
>pkg info | grep apache<br>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<br></font></div>=
<div dir=3D"ltr"><font face=3D"monospace"><br></font></div><div dir=3D"ltr"=
><font face=3D"monospace">uname -a<br>FreeBSD dudley 13.1-RELEASE-p3 FreeBS=
D 13.1-RELEASE-p3 GENERIC i386</font><br></div><div dir=3D"ltr"><br></div><=
div>Am I doing something stupid?=C2=A0 (Wouldn&#39;t be the first time.)</d=
iv><div>How best to debug this?=C2=A0 A web search did not enlighten me.</d=
iv></div></div></div></blockquote><div><br></div><div>What do you have in /=
var/log/httpd-error.log?</div><div>That&#39;s the clue that you need to loo=
k at and share with us so that we can help you.</div><div>You should actual=
ly be running php82 :-)</div><div>=C2=A0</div></div><br clear=3D"all"><div>=
<br></div><span>-- </span><br><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D=
"ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 32=
00 0004/+254 7 2274 3223<br>&quot;<span style=3D"font-size:12.8px">Oh, the =
cruft.</span><span style=3D"font-size:12.8px">&quot;,=C2=A0</span><span sty=
le=3D"font-size:12.8px">egrep -v &#39;^$|^.*#&#39;=C2=A0</span><span style=
=3D"background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot=
;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monospace;font-size:=
13.6px">=C2=AF\_(=E3=83=84)_/=C2=AF</span><span style=3D"font-size:12.8px">=
=C2=A0:-)</span></div><div><span style=3D"font-size:12.8px">[How to ask sma=
rt questions:=C2=A0</span><span style=3D"font-size:12.8px"><a href=3D"http:=
//www.catb.org/~esr/faqs/smart-questions.html" rel=3D"noreferrer" target=3D=
"_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></di=
v></div></div></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>

--0000000000004355f505f89d6633--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFsnNZJu3eP9gXgVunNihA-q4qjMFaLuXefs=dQWaO0ktwWf7g>