Re: updated to 13.1 (i386). Apache won't run if php80 enabled

From: William Dudley <wfdudley_at_gmail.com>
Date: Wed, 05 Apr 2023 21:22:54 UTC
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 PM 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 PM Odhiambo Washington <odhiambo@gmail.com>
>> wrote:
>>
>>>
>>>
>>> On Wed, Apr 5, 2023 at 6:10 PM William Dudley <wfdudley@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 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 '^$|^.*#' ¯\_(ツ)_/¯ :-)
>>> [How to ask smart questions:
>>> http://www.catb.org/~esr/faqs/smart-questions.html]
>>>
>>