|
| 1 | +--- |
| 2 | +title: v23.12.02 > Apache2 HTTP/2 Support |
| 3 | +category: System Administrator > Installation Version Notes |
| 4 | +redirect_from: |
| 5 | + - /system_admin/version_notes/v23.12.02 |
| 6 | +--- |
| 7 | + |
| 8 | +Release [v23.12.02](https://github.com/Submitty/Submitty/releases/v23.12.02) |
| 9 | +includes an update to the Apache2 server's module and configuration to |
| 10 | +disable `php8.1` and `mpm_prefork` and enable `mpm_event` and `http2`. |
| 11 | +Note: Submitty uses `php8.1-fpm` NOT `php8.1`. |
| 12 | + |
| 13 | + |
| 14 | +1. If you have load balancers and firewalls in front of the Apache |
| 15 | + server for Submitty, please make sure they support HTTP/2 |
| 16 | + redirections. |
| 17 | + |
| 18 | +2. Disable `php8.1` and `mpm_prefork`: |
| 19 | + |
| 20 | + ``` |
| 21 | + a2dismod php8.1 mpm_prefork |
| 22 | + ``` |
| 23 | + |
| 24 | +3. Enable `mpm_event` and `http2`: |
| 25 | + |
| 26 | + ``` |
| 27 | + a2enmod mpm_event http2 |
| 28 | + ``` |
| 29 | + |
| 30 | +4. If you are not already using TLS/SSL HTTPS encryption for Submitty, |
| 31 | + we strongly recommend enabling it. See |
| 32 | + [System Administrator Installation Instructions](https://submitty.org/sysadmin/installation/index). |
| 33 | + |
| 34 | +5. Review your current performance tuning for `php-fpm`. |
| 35 | + ``` |
| 36 | + /etc/php/8.1/fpm/pool.d/submitty.conf |
| 37 | + ``` |
| 38 | + You will probably not need to change these settings. |
| 39 | + |
| 40 | +6. With the switch from `mpm_prefork` to `mpm_event`, you will probably want to take any customization from this file: |
| 41 | + ``` |
| 42 | + /etc/apache2/mods-available/mpm_prefork.conf |
| 43 | + ``` |
| 44 | + |
| 45 | + And adapt it to this file: |
| 46 | + ``` |
| 47 | + /etc/apache2/mods-available/mpm_event.conf |
| 48 | + ``` |
| 49 | + |
| 50 | +6. Final check for Apache2's configuration; |
| 51 | + ```sh |
| 52 | + apachectl -t |
| 53 | + ``` |
| 54 | + |
| 55 | +7. Reload Apache2 to apply changes. |
| 56 | + |
| 57 | + ``` |
| 58 | + sudo systemctl restart apache2.service |
| 59 | + sudo systemctl restart php8.1-fpm |
| 60 | + ``` |
| 61 | + |
| 62 | +8. Run the update script. |
| 63 | + |
| 64 | + ``` |
| 65 | + sudo /usr/local/submitty/.setup/INSTALL_SUBMITTY.sh |
| 66 | + ``` |
| 67 | + |
| 68 | +--- |
| 69 | + |
| 70 | +NOTE: If you need to downgrade from HTTP/2 back to HTTP/1.1 and re-enable `mpm_prefork`, |
| 71 | +please follow the steps below: |
| 72 | + |
| 73 | +1. Disable `http2` and `mpm_event`: |
| 74 | + |
| 75 | + ``` |
| 76 | + a2dismod http2 mpm_event |
| 77 | + ``` |
| 78 | + |
| 79 | +2. Enable `mpm_prefork`: |
| 80 | + |
| 81 | + ``` |
| 82 | + a2enmod mpm_prefork |
| 83 | + ``` |
| 84 | + |
| 85 | +3. Alternatively, if the PHP does not use a `fpm` server, consider enabling |
| 86 | + `php8.1` by `a2enmod php8.1`. |
| 87 | + |
| 88 | + |
0 commit comments