I'm not sure why you would migrate php.conf?
This is not a part of the qmt migration.
On 2/23/2024 2:39 PM, Gary Bowling wrote:
Yes, and very importantly for apache, you to have to match the "php
files" and send them to a handler in a conf file with the FilesMatch
and SetHandler directives. That's actually the piece that got
overwritten when I sync'd over my configs from my old Centos 7 box and
caused things not to work.
Since I was unaware of the new way that was done in the Apache config
files, it took me a while to track it down. Since my php.conf file was
from an old box, it had the php5_module listed in it. Not knowing that
was no longer used, I had to go down the rabbit hole to figure it out.
Now that I beat my head against the wall for a couple of days, it
seems everyone knows all this :) Everyone but me, haha. I think
everyone was just enjoying the show and laughing at me, but that's ok
I was laughing at myself as well.
gb
On 2/23/2024 2:51 PM, Quinn Comendant wrote:
On 23 Feb 2024, at 9:10, Gary Bowling wrote:
<IfModule prefork.c> LoadModule php5_module modules/libphp5.so
</IfModule>
On my Rocky 9 box, this file does not exist and I cannot find
that it is even suppose to exist. But I'm not sure how php is
suppose to work on Apache without it.
Hi Gary,
Glad you worked it out, but just in case you're curious, the reason
you can't find a |libphp5.so| or |libphp8.so| file is because with
PHP 7 and 8 the preferred way to execute php scripts is via PHP-FPM,
and most distros will install PHP this way by default. PHP-FPM has
much better performance and security, and most PHP apps will run fine
without modification. The apache configuration to use PHP-FPM is
somewhat different, as you discovered.
Quinn
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]