In this example, we'll name the user myuser. For example, if your name is Alice, you could choose the username alice. Choose a one-word name with lowercase letters. #Install collabora code nextcloud ubuntu 18.04 apache update#apt update & apt -y upgradeĬreate a regular (non-root) user account. Update the system using the apt package manager. When you log in, you'll see the command prompt for your server. Warning: Permanently added '198.74.58.146' to the list of known hosts. #Install collabora code nextcloud ubuntu 18.04 apache password#You'll then be prompted for the root password of your VPS. The authenticity of host ' (123.45.67.89)' can't be established.ĮCDSA key fingerprint is SHA256:asdfPZq159216hjklgRBhD412b3PvkEjKBf0h352mZp.Īre you sure you want to continue connecting (yes/no)? If this is the first time you're connecting to the server, you'll be asked to verify the authenticity of the server's encryption key. If you can't connect using your domain name, use your IP address instead. Sudo echo "" > /etc/apache2/conf-available/http2.If you recently updated your DNS records, the information may not yet have propagated to your DNS servers. Sudo echo "H2Direct on" > /etc/apache2/conf-available/nf Sudo echo "Protocols h2 h2c http/1.1" > /etc/apache2/conf-available/nf Sudo echo "" > /etc/apache2/conf-available/nf All in one command (you still have to edit your VirtualHost and ssl config): sudo apt update H2PushPriority application/javascript interleaved Step 6 create nf for entire Server HTTP2Ĭreate a new nf sudo nano /etc/apache2/conf-available/nfĮnable the nf by running sudo a2enconf http2Ĭheck Apache2 config and if no errors, restart your Apache2 sudo apachectl configtest & sudo service apache2 restartĪnd enhance your ssl-vhost file (nf): sudo nano /etc/apache2/sites-available/nf Now you can enable the http2 module in Apache: sudo a2enmod http2Ĭheck Apache2 config and if no errors, restart Apache: sudo apachectl configtest & sudo service apache2 restart Step 5: Enable the mod_http2 Apache module Having http/1.1 at the end of the line provides a fallback to HTTP/1.1, while h2c is not strictly necessary. Protocols h2 h2c http/1.1Įxplanation: h2 is TLS-encrypted HTTP/2, h2c is cleartext HTTP/2, and http/1.1 is ordinary HTTP/1.1. If you want to serve HTTP/2 for all your sites, add this to your global /etc/apache2/nf file instead of per each individual site’s Virtual Host file. Step 4: Add a line to your Virtual Host fileĪdd the following line to your site’s current Virtual Host config file. Restart Apache2 and PHP 7.2: sudo service apache2 restart & sudo service php7.2-fpm restart ![]() That said, smaller servers with low traffic may not see much difference in performance.įirst, disable the "prefork" MPM: sudo a2dismod mpm_preforkĮnable the "event" MPM: sudo a2enmod mpm_event Keep in mind that your server requires more horsepower for HTTP/2 than for HTTP/1.1, due to the multiplexing feature and other factors. ![]() This is shown by the error message in Apache versions greater than 2.4.27 as – AH10034: The mpm module (prefork.c) is not supported by mod_http2. Since the default "prefork" MPM (Multi-Processing Module) is not fully compatible with HTTP/2, you’ll need to change Apache’s current MPM to "event" (or "worker"). Step 3: Change MPM from "prefork" to "event" Restart Apache: sudo service apache2 restart #Install collabora code nextcloud ubuntu 18.04 apache install#Install PHP FastCGI module for PHP 7.2, it is default version for Ubuntu 18.04 sudo apt install php7.2-fpmĮnable required modules, proxy_fcgi and setenvif: sudo a2enmod proxy_fcgi setenvifĮnable php7.2-fpm: sudo a2enconf php7.2-fpmĭisable the mod_php module: sudo a2dismod php7.2 If your website or app breaks on FastCGI, you can always revert back to mod_php until further troubleshooting. You want to make Apache use a compatible PHP implementation by changing mod_php to php-fpm (PHP FastCGI). Per default it will be apache2 version 2.4.29 what is enought for http2 support. HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |