Changing Apache MPM from Worker to Prefork  [SOLVED]

Discussions about the installation of KeyHelp.
Post Reply
User avatar
hakeryk
Posts: 8
Joined: Sat 3. Feb 2024, 21:29

Changing Apache MPM from Worker to Prefork

Post by hakeryk »

Hey,

Probably during installation, I set Apache MPM Worker for Event but I intended Prefork yet I am kind of scared to change something at the production server now. All my websites are using alternative PHP 7.4-FPM as an extra PHP Interpreter and there is 8.2 for Keyhelp as well.

As I mentioned before this is a live server and I don't have a spare development server to test it so can You confirm that the method used here: https://serverfault.com/a/1050801/440487 (pic below as well) will be ok?

Image

I am aware that it might be easy as it is but when something goes wrong then I am dead on arrival so if someone can confirm that the above method will work I will be very happy because I don't have to set up another testing machine just to do this.

Or maybe there is a built-in method that I simply can't find?

Have a great weekend!


Machine:
4 @ 3.32 GHz, 8 Gb RAM, 200GB SSD

Server version: Apache/2.4.57 (Debian 12.4)
Server built: 2023-04-13T03:26:51
Server loaded: APR 1.7.2, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11
Compiled using: APR 1.7.2, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Last edited by hakeryk on Sat 17. Feb 2024, 11:52, edited 1 time in total.
select name from me;
Posts: 586
Joined: Tue 9. Feb 2016, 16:44

Re: Changing Apache MPM from Worker to Prefork  [SOLVED]

Post by select name from me; »

Don't change it manually. It will break everything.
Just change the field Settings / Configuration / Web Server / Multi-processing module (MPN) in Keyhelp.

I changed it in the past without any trouble.
The Apache will restart though.
Viele Grüße, Christian
User avatar
hakeryk
Posts: 8
Joined: Sat 3. Feb 2024, 21:29

Re: Changing Apache MPM from Worker to Prefork

Post by hakeryk »

Oh, there it is! Ok, gonna give it a try and later comeback with the results. Thank You!
User avatar
hakeryk
Posts: 8
Joined: Sat 3. Feb 2024, 21:29

Re: Changing Apache MPM from Worker to Prefork

Post by hakeryk »

I cannot edit my previous post because it was "SOLVED" but all I want is just to confirm that the method using a panel is working correctly and I didn't even have to restart apache service.

Image

Thanks!
Post Reply