Yea, it was really an accident. Your migration plans don't migrate web configs. But on my server I have many virtualhosts for different clients. Many of my clients originally wanted their web mail on their own domain, not on a single shared domain.

To handle this I have a bunch of virtualhosts with configurations that accomplish that. For my specific migration I needed to move those configs, so an rsync of the /etc/httpd/conf.d/ directory was done.

After I did that, I moved all those into a different directory to concentrate on just making the server work with only the one domain, but that also copied the php.conf.

This is I like about the new apache php-fpm implementation. In the past the only files in conf.d were essentially user files and these types of files were in conf.modules.d. I guess once php wasn't a module, they felt it should go in the conf.d dir.


gb


On 2/23/2024 4:44 PM, Eric Broch wrote:

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: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

Reply via email to