[eduVPN-deploy] optimize Apache configuration

François Kooman fkooman at tuxed.net
Sat Oct 28 10:30:53 CEST 2017


Hi,

After reading the blog post [1] to optimize Apache/PHP on RHEL/CentOS I
modified the deploy script [2] to switch to MPM event by default to
increase performance.

You can manually make this change by modifying
/etc/httpd/conf.modules.d/00-mpm.conf to switch and restart Apache.

As root:

    # sed -i "s|^LoadModule mpm_prefork_module
modules/mod_mpm_prefork.so$|#LoadModule mpm_prefork_module
modules/mod_mpm_prefork.so|" /etc/httpd/conf.modules.d/00-mpm.conf
    # sed -i "s|^#LoadModule mpm_event_module
modules/mod_mpm_event.so$|LoadModule mpm_event_module
modules/mod_mpm_event.so|" /etc/httpd/conf.modules.d/00-mpm.conf
    # systemctl restart httpd

Let me know if you have any questions!

Cheers,
François

[1] https://developers.redhat.com/blog/2017/10/25/php-configuration-tips/
[2]
https://github.com/eduvpn/documentation/commit/a793e95b0ff35c0b38bcf2a0841b1bc97f7e7cef



More information about the eduVPN-deploy mailing list