[solved] Does Virtualmin Pro support mpm event?

hello team, planning to get pro version however, i found out prefork was default mpm on ubuntu 18.04 apache.

i tried changing to event, however no progress yet. maybe pro version allow event mpm instead? if i will purchase one.

Regards, Kurt

Status: 
Closed (fixed)

Comments

kurtobando's picture
Submitted by kurtobando on Sun, 06/02/2019 - 04:08

Assigned: » Unassigned

Howdy -- thanks for contacting us!

Yeah I believe both Ubuntu and CentOS ship with prefork as the default.

The only reason you'd need that though is if you're planning to use mod_php.

We don't do much testing with the Event MPM, I can't speak too much to that, but would the Worker MPM do what you're after?

As I know Worker MPM works just fine, and I use that on many of my personal servers.

It should just be a matter of disabling the prefork MPM (a2dismod mpm_prefork), and then enabling the worker MPM (a2enmod mpm_worker).

kurtobando's picture
Submitted by kurtobando on Sun, 06/02/2019 - 09:27

@andreychek

Thank you for enlightenment.

Yes, I would like to get the worker then, however, I am just puzzled how to go about this, consider, I have tried your suggestion below:

root@webcloud:~# a2dismod mpm_prefork ERROR: The following modules depend on mpm_prefork and need to be disabled first: php7.2

So, I tried these approach instead, https://helgeklein.com/blog/2018/11/enabling-http-2-in-apache-on-ubuntu-...

root@webcloud:~# sudo apt-get install php7.2-fpm Reading package lists... Done Building dependency tree Reading state information... Done php7.2-fpm is already the newest version (7.2.17-0ubuntu0.18.04.1). php7.2-fpm set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.

root@webcloud:~# sudo a2enmod proxy_fcgi Considering dependency proxy for proxy_fcgi: Module proxy already enabled Module proxy_fcgi already enabled

root@webcloud:~# sudo a2enconf php7.2-fpm Enabling conf php7.2-fpm. To activate the new configuration, you need to run: systemctl reload apache2

root@webcloud:~# sudo a2dismod php7.2 Module php7.2 disabled. To activate the new configuration, you need to run: systemctl restart apache2

root@webcloud:~# sudo a2dismod mpm_prefork Module mpm_prefork disabled. To activate the new configuration, you need to run: systemctl restart apache2

root@webcloud:~# sudo a2enmod mpm_worker Considering conflict mpm_event for mpm_worker: Considering conflict mpm_prefork for mpm_worker: Enabling module mpm_worker. To activate the new configuration, you need to run: systemctl restart apache2

root@webcloud:~# sudo service apache2 restart Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

root@webcloud:~# journalctl -xe Jun 02 14:26:01 webcloud apachectl[3880]: AH00526: Syntax error on line 37 of /etc/apache2/sites-enabled/digitalbeards.asia.conf: Jun 02 14:26:01 webcloud apachectl[3880]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration Jun 02 14:26:01 webcloud apachectl[3880]: Action 'start' failed. Jun 02 14:26:01 webcloud apachectl[3880]: The Apache error log may have more information. Jun 02 14:26:01 webcloud systemd[1]: apache2.service: Control process exited, code=exited status=1 Jun 02 14:26:01 webcloud sudo[3874]: pam_unix(sudo:session): session closed for user root Jun 02 14:26:01 webcloud systemd[1]: apache2.service: Failed with result 'exit-code'. Jun 02 14:26:01 webcloud systemd[1]: Failed to start The Apache HTTP Server.

The issue is, I have to use HTTP2 , however, prefork does not support this any longer, this is the reason I wish to move away from prefork to worker or event.

Do you have any suggestion before I will get pro version of virtualmin.

I can offer that it's definitely possible to get Apache working with the Worker MPM. And while I haven't personally used it, Ubuntu 18.04 also appears to have HTTP2 support, there's no reason why you shouldn't be able to get that working with Ubuntu 18.04 as well.

Additionally, if you have any general pre-sales questions about Virtualmin's capabilities, I'd be happy to help with those!

We unfortunately can't provide technical support here unless you've actually purchased a license.

However, note that if you're unsure about Virtualmin, we do offer a 30 day guarantee... if Virtualmin Pro isn't for you, just let us know within 30 days and we'll issue you a refund, no questions!

I will offer the short answer that you'll need to remove those "php_admin_value" references in the Apache config -- but if you have any additional technical questions, we're happy to help! You'd just need to pick up a license first and then we'll help sort out what's going on there.

kurtobando's picture
Submitted by kurtobando on Sun, 06/02/2019 - 11:24

@andreychek

I appreciate the help, will register for a licence, then see where to go about this.

kurtobando's picture
Submitted by kurtobando on Sun, 07/21/2019 - 00:54

switch to ubuntu 16.04 instead and mpm event is working as expected, in addition to this case. was able to use http2 without any issue.

kurtobando's picture
Submitted by kurtobando on Sun, 07/21/2019 - 00:56

Title: Does Virtualmin Pro support mpm event? » [solved] Does Virtualmin Pro support mpm event?