i have perfect server ubuntu 18.04+apache , now i read about MPM for first time and i like to know wich is the best for handle trafic , default setting in this perfect server and if i need to change, a good guide to do it
It is enabled by default in ISPConfig 3. Code: # sudo apachectl -M | grep 'mpm' mpm_event_module (shared) You don't have to do anything here. However a quick search leads to this: https://www.woktron.com/secure/knowledgebase/133/How-to-optimize-Apache-performance.html Note: I did not read the article, but i don't think it is necessary to change any options if you don't experience any issues.
when i try this sudo apachectl -M | grep 'mpm'i get this AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.vhost:7 mpm_prefork_module (shared)
Thats ok as you see "mpm_prefork_module (shared)" is configured. The warning "AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.vhost:7" just tells you that you use the option "NameVirtualHost" in your 000-ispconfig.vhost file on line 7. In the next apache2 release this option is not necessary anymore, no need to worry. The line probaly looks something like this: Code: NameVirtualHost xxx.xxx.xxx.xxx:80 which translates to: Code: <VirtualHost xxx.xxx.xxx.xxx:80> or <VirtualHost *:80>
if i have MPM prefork, is i a good idea to change to event in my apache?, do i get more transaction performance?
I don't have any deeper expirience with this, but this seems like a good read on the topic: https://www.datadoghq.com/blog/monitoring-apache-web-server-performance/#prefork-mpm it goes into details on the inner workings of the 3 MPMs.
Just as explanation, older systems use prefork mpm but since a while we switched to mpm_event. When switching away from prefork, you must be aware that mod_php stops working, so depending on how you set up your websites, you might break the system. So before switching the apache mpm, check that no sites uses mod_php and uninstall apache mod_php module. Also, some applications like phpmyadmin and Roundcube use mod_php, they will stop working and you must configure php-fpm for them.
thanks, till, if i update my system to ubuntu 20 o 22, do i fix this problem?, or i need to create a new server with this ubuntu´s versions? , and, if i need to create a new server, can i use your tool for moving all data from old to new w/o fear?. tx a lot
For newer systems, we use the auto installer: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ There is no issue, so nothing that needs to be fixed. You ant to change the mpm, which you wont probably notice unless you have a highly loaded web server that runs large sites anyway. And if you change the mpm, you must adjust your setup to be compatible with the new mpm. Moving to a new server is possible as well of course, but there is no need to unless you want to use newer hardware anyway.
yes, really i think in a new disk (not a entire server) for replace in my actual server, about your aswer "There is no issue, so nothing that needs to be fixe..." i was talking about your comment "..older systems use prefork mpm but since a while we switched to mpm_event...."