{"id":1695,"date":"2019-10-01T22:00:57","date_gmt":"2019-10-01T20:00:57","guid":{"rendered":"https:\/\/markus-blog.de\/?p=1695"},"modified":"2023-04-03T08:43:58","modified_gmt":"2023-04-03T06:43:58","slug":"how-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2","status":"publish","type":"post","link":"https:\/\/markus-blog.de\/index.php\/2019\/10\/01\/how-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2\/","title":{"rendered":"How to install Nextcloud 17 on Debian Buster with MariaDB php7.3-fpm Apache2 and HTTP\/2"},"content":{"rendered":"<p>Nextcloud 17 was released, so here is a manual to install it on a Debian Buster VPS, secure it with LetsEncrypt and deploy it via Apache2 with php-fpm and HTTP\/2.<\/p>\n<p><strong>Requirements:<\/strong><\/p>\n<p>&#8211; an VPS with Debian Buster installed<br \/>\n&#8211; shell access and appropriate rights<br \/>\n&#8211; One DNS A and possibly AAAA record for our Apache vhost<\/p>\n<p><strong>Step 1: Install MariaDB<\/strong><\/p>\n<p>First, we install the MariaDB as Database-Server:<\/p>\n<pre>apt install -y mariadb-server mariadb-client<\/pre>\n<p>and we secure the MariaDB installation:<\/p>\n<pre>mysql_secure_installation<\/pre>\n<blockquote><p>NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<br \/>\nSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!<\/p>\n<p>In order to log into MariaDB to secure it, we&#8217;ll need the current<br \/>\npassword for the root user. If you&#8217;ve just installed MariaDB, and<br \/>\nyou haven&#8217;t set the root password yet, the password will be blank,<br \/>\nso you should just press enter here.<\/p>\n<p>Enter current password for root (enter for none):<br \/>\nOK, successfully used password, moving on&#8230;<\/p>\n<p>Setting the root password ensures that nobody can log into the MariaDB<br \/>\nroot user without the proper authorisation.<\/p>\n<p>Set root password? [Y\/n] y<br \/>\nNew password:your-password<br \/>\nRe-enter new password:your-password<br \/>\nPassword updated successfully!<br \/>\nReloading privilege tables..<br \/>\n&#8230; Success!<\/p>\n<p>By default, a MariaDB installation has an anonymous user, allowing anyone<br \/>\nto log into MariaDB without having to have a user account created for<br \/>\nthem. This is intended only for testing, and to make the installation<br \/>\ngo a bit smoother. You should remove them before moving into a<br \/>\nproduction environment.<\/p>\n<p>Remove anonymous users? [Y\/n] y<br \/>\n&#8230; Success!<\/p>\n<p>Normally, root should only be allowed to connect from &#8218;localhost&#8216;. This<br \/>\nensures that someone cannot guess at the root password from the network.<\/p>\n<p>Disallow root login remotely? [Y\/n] y<br \/>\n&#8230; Success!<\/p>\n<p>By default, MariaDB comes with a database named &#8218;test&#8216; that anyone can<br \/>\naccess. This is also intended only for testing, and should be removed<br \/>\nbefore moving into a production environment.<\/p>\n<p>Remove test database and access to it? [Y\/n] y<br \/>\n&#8211; Dropping test database&#8230;<br \/>\n&#8230; Success!<br \/>\n&#8211; Removing privileges on test database&#8230;<br \/>\n&#8230; Success!<\/p>\n<p>Reloading the privilege tables will ensure that all changes made so far<br \/>\nwill take effect immediately.<\/p>\n<p>Reload privilege tables now? [Y\/n] y<br \/>\n&#8230; Success!<\/p>\n<p>Cleaning up&#8230;<\/p>\n<p>All done! If you&#8217;ve completed all of the above steps, your MariaDB<br \/>\ninstallation should now be secure.<\/p>\n<p>Thanks for using MariaDB!<\/p><\/blockquote>\n<p><strong>Step 2: Install Apache2<\/strong><\/p>\n<p>With the following command we will install the Apache-Webserver:<\/p>\n<pre>apt install -y apache2 apache2-utils<\/pre>\n<p><strong>Step 3: Install php7.3-fpm an recommended moduls<\/strong><\/p>\n<p>Installation of nextcloud needs a few php-modules and other packages, which we install with the following command:<\/p>\n<pre>apt install -y php7.3-cli php7.3-common php7.3-mbstring php7.3-gd php-imagick php7.3-intl php7.3-bz2 php7.3-xml php7.3-mysql php7.3-zip php7.3-dev php7.3-curl php7.3-fpm php-dompdf redis-server php-redis php-smbclient php7.3-ldap<\/pre>\n<p><strong>Step 4: Configure Apache2 and php7.3-fpm<\/strong><\/p>\n<p>Now we enable the needed modules in Apache2 with:<\/p>\n<pre>a2enmod proxy_fcgi setenvif mpm_event rewrite headers env dir mime ssl http2<\/pre>\n<p>and after that we activate <code>php7.3-fpm<\/code>:<\/p>\n<pre>a2enconf php7.3-fpm<\/pre>\n<p>now we have edit the <code>apache2.conf<\/code> to allow the usage of <code>.htaccess<\/code>-files:<\/p>\n<pre>nano \/etc\/apache2\/apache2.conf<\/pre>\n<p>and change the following code:<\/p>\n<pre>&lt;Directory \/var\/www\/&gt;\r\nOptions Indexes FollowSymLinks\r\nAllowOverride <span style=\"color: #ff0000;\">None<\/span>\r\nRequire all granted\r\n&lt;\/Directory&gt;<\/pre>\n<p>to:<\/p>\n<pre>&lt;Directory \/var\/www\/&gt;\r\nOptions Indexes FollowSymLinks\r\nAllowOverride <span style=\"color: #ff0000;\">All<\/span>\r\nRequire all granted\r\n&lt;\/Directory&gt;<\/pre>\n<p>To enable HTTP\/2, we need to add this line to <code>apache2.conf<\/code>:<\/p>\n<pre>Protocols h2 h2c http\/1.1<\/pre>\n<p>now we have to prepare the <code>php.ini<\/code> for nextcloud:<\/p>\n<pre>nano \/etc\/php\/7.3\/fpm\/php.ini<\/pre>\n<p>extend with the following directives:<\/p>\n<pre>opcache.enable=1\r\nopcache.enable_cli=1\r\nopcache.interned_strings_buffer=8\r\nopcache.max_accelerated_files=10000\r\nopcache.memory_consumption=128\r\nopcache.save_comments=1\r\nopcache.revalidate_freq=1<\/pre>\n<p>and adjust the following Lines:<\/p>\n<pre>max_execution_time = 300\r\nmax_input_time = 600\r\nmemory_limit = 512M\r\nupload_max_filesize = 10240M<\/pre>\n<p>Afterwards, the <code>web server<\/code> and <code>php7.3-fpm<\/code> must be restarted:<\/p>\n<pre>systemctl restart apache2 php7.3-fpm<\/pre>\n<p><strong>Step 4: Install Certbot and other tools<\/strong><\/p>\n<p>To request a ssl-sert from LetsEncrypt we use <code>Certbot<\/code> and the <code>apache-plugin<\/code>:<\/p>\n<pre>apt install python-certbot-apache certbot wget curl sudo unzip<\/pre>\n<p><strong>Step 5: Create Database<\/strong><\/p>\n<p>Before we can install Nextcloud, we first have to create a database. To do this, we execute the following commands:<\/p>\n<pre>mysql -u root -p<\/pre>\n<p>enter your password and then execute:<\/p>\n<pre>create database nextcloud;\r\ncreate user nextcloud@localhost identified by 'YOUR_PASSWORD';\r\ngrant all privileges on nextcloud.* to nextcloud@localhost;\r\nflush privileges;\r\nexit;<\/pre>\n<p><strong>Step 6: Download Nextcloud and create filesystem<\/strong><\/p>\n<p>Now it&#8217;s time to download the latest Release of Nextcloud 17 from nextcloud:<\/p>\n<pre>wget https:\/\/download.nextcloud.com\/server\/releases\/latest-17.zip<\/pre>\n<p>and unzip the downloaded archive:<\/p>\n<pre>unzip latest-17.zip<\/pre>\n<p>Afterwards we move the folder <code>nextcloud<\/code> to the right place.<\/p>\n<p>If we just want to deploy Nextcloud on this server, we can move the data to the <code> \/var\/www\/html\/<\/code> folder and adjust the permissions.<\/p>\n<pre>mv nextcloud\/* \/var\/www\/html\/\r\nchown -R www-data:www-data \/var\/www\/html\/<\/pre>\n<p>In order to keep the option of other websites open, we move the entire folder into the path <code>\/var\/www\/html\/<\/code><\/p>\n<pre>mv nextcloud \/var\/www\/html\/\r\nchown -R www-data:www-data \/var\/www\/html\/nextcloud<\/pre>\n<p>You can delete the downloaded archive now:<\/p>\n<pre>sudo rm latest-17.zip<\/pre>\n<p>For our nextcloud-files we prepare a directory outside of <code>\/var\/www\/html\/nextcloud<\/code>:<\/p>\n<pre>mkdir \/nextcloud_data<\/pre>\n<p>and change the owner to <code>www-data<\/code>:<\/p>\n<pre>chown -R www-data:www-data \/nextcloud_data<\/pre>\n<p><strong>Step 7: Create Apache2 vHost and secure with SSL<\/strong><\/p>\n<p>To create an Apache vhost, we simply create a new <code>.conf<\/code> in <code>\/etc\/apache2\/sites-available\/<\/code>:<\/p>\n<pre>nano \/etc\/apache2\/sites-available\/001-nextcloud.conf<\/pre>\n<p>add the following content and adjust your names:<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\nServerName nextcloud.your-domain.tld\r\nServerAdmin webmaster@your-domain.tld\r\nDocumentRoot \/var\/www\/html\/nextcloud\r\n\r\nErrorLog ${APACHE_LOG_DIR}\/error.log\r\nCustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>then we activate this site and disable the default vHost:<\/p>\n<pre>a2ensite 001-nextcloud.conf\r\na2dissite 000-default.conf\r\nsystemctl reload apache2<\/pre>\n<p>Since we want to reach the site of course via https, we create a LetEncrypt certificate. The easiest way to do this is with Certbot, which we already installed above:<\/p>\n<pre>certbot --apache --rsa-key-size 4096<\/pre>\n<p>In the last query, we confirm with &#8222;2&#8220; that a redirect should occur.<\/p>\n<p>Certbot then creates a second vhost configuration file, which we then process again:<\/p>\n<pre>nano \/etc\/apache2\/sites-available\/001-nextcloud-le-ssl.conf<\/pre>\n<p>we add the following block under <code>DocumentRoot<\/code>-directive:<\/p>\n<pre>&lt;IfModule mod_headers.c&gt;\r\nHeader always set Strict-Transport-Security \"max-age=15768000; preload\"\r\nHeader always set Referrer-Policy \"strict-origin-when-cross-origin\"\r\n# Prevent MIME based attacks\r\nHeader always set X-Content-Type-Options \"nosniff\"\r\nHeader always set X-Frame-Options \"SAMEORIGIN\"\r\n&lt;\/IfModule&gt;\r\n# SSL Configuration - uses strong cipher list - these might need to be downgraded if you need to support older browsers\/devices\r\nSSLEngine on\r\nSSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH\r\nSSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1\r\nSSLHonorCipherOrder On\r\n\r\n&lt;Directory \/var\/www\/html\/nextcloud\/&gt;\r\nRequire all granted\r\nAllowOverride All\r\nOptions FollowSymLinks MultiViews\r\n\r\n&lt;IfModule mod_dav.c&gt;\r\nDav off\r\n&lt;\/IfModule&gt;\r\n\r\nSetEnv HOME \/var\/www\/html\/nextcloud\r\nSetEnv HTTP_HOME \/var\/www\/html\/nextcloud\r\nSatisfy Any\r\n\r\n&lt;\/Directory&gt;<\/pre>\n<p>then we have to reload the webserver again:<\/p>\n<pre>systemctl reload apache2<\/pre>\n<p><strong>Step 8: Configure Nextcloud<\/strong><\/p>\n<p>For final configuration, we call our domain in the browser:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17.jpg\" alt=\"\" width=\"1417\" height=\"952\" class=\"aligncenter size-full wp-image-1701\" srcset=\"https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17.jpg 1417w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17-300x202.jpg 300w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17-768x516.jpg 768w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17-1024x688.jpg 1024w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17-830x558.jpg 830w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17-230x155.jpg 230w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17-350x235.jpg 350w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17-480x322.jpg 480w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17-272x182.jpg 272w\" sizes=\"auto, (max-width: 1417px) 100vw, 1417px\" \/><\/p>\n<p>and enter the corresponding data, as <code>DB host<\/code> we enter <code>localhost<\/code> and the data directory is <code>\/nextcloud_data<\/code>.<\/p>\n<p>Now, let&#8217;s take Nextcloud&#8217;s <code>config.php<\/code> to configure the recommended memory cache:<\/p>\n<pre>nano \/var\/www\/html\/nextcloud\/config\/config.php<\/pre>\n<p>add the following code:<\/p>\n<pre>'memcache.local' =&gt; '\\OC\\Memcache\\Redis',\r\n'memcache.locking' =&gt; '\\\\OC\\\\Memcache\\\\Redis',\r\n'redis' =&gt; array(\r\n'host' =&gt; 'localhost',\r\n'port' =&gt; 6379,\r\n),<\/pre>\n<p>It looks like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_3.jpg\" alt=\"\" width=\"535\" height=\"493\" class=\"aligncenter size-full wp-image-1702\" srcset=\"https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_3.jpg 535w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_3-300x276.jpg 300w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_3-230x212.jpg 230w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_3-350x323.jpg 350w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_3-480x442.jpg 480w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/p>\n<p>In the basic settings, we customize the background tasks and use <code>cron<\/code>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2.jpg\" alt=\"\" width=\"1142\" height=\"673\" class=\"aligncenter size-full wp-image-1703\" srcset=\"https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2.jpg 1142w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2-300x177.jpg 300w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2-768x453.jpg 768w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2-1024x603.jpg 1024w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2-830x489.jpg 830w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2-230x136.jpg 230w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2-350x206.jpg 350w, https:\/\/markus-blog.de\/wp-content\/uploads\/2019\/10\/Nextcloud17_2-480x283.jpg 480w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/p>\n<p>and configure the user&#8217;s cron job accordingly <code>www-data<\/code>(adjust path and\/or user if you use another one):<\/p>\n<pre>sudo crontab -u www-data -e<\/pre>\n<p>add the following line at the end:<\/p>\n<pre>*\/15 * * * * php7.3 -f \/var\/www\/html\/nextcloud\/cron.php<\/pre>\n<p>Restart Aapche2 and php-fpm:<\/p>\n<pre>systemctl restart apache2 &amp;&amp; sudo systemctl restart php7.3-fpm<\/pre>\n<p>and refresh your browser<\/p>\n<p>Do not forget to configure your mail-settings<\/p>\n<p>Now we have a freshly installed Nextcloud 17 and can enjoy&#8230; Remember: If you find issues within the Nextcloud, then report <a href=\"https:\/\/github.com\/nextcloud\/\" target=\"_blank\" rel=\"noopener noreferrer\">here on GitHub<\/a>.<\/p>\n<p>Problems with the tutorial? Then comment below or contact me per Mail or Mastodon.<\/p>\n<p>Happy nextclouding and do not forget to share \ud83d\ude42<\/p>\n<div class=\"shariff shariff-align-flex-start shariff-widget-align-flex-start\" data-services=\"facebook%7Creddit\" data-url=\"https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F\" data-timestamp=\"1680511438\" data-hidezero=\"1\" data-backendurl=\"https:\/\/markus-blog.de\/wp-json\/shariff\/v1\/share_counts?\"><ul class=\"shariff-buttons theme-round orientation-horizontal buttonsize-medium\"><li class=\"shariff-button mastodon shariff-nocustomcolor\" style=\"background-color:#563ACC\"><a href=\"https:\/\/s2f.kytta.dev\/?text=How%20to%20install%20Nextcloud%2017%20on%20Debian%20Buster%20with%20MariaDB%20php7.3-fpm%20Apache2%20and%20HTTP%2F2 https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F\" title=\"Bei Mastodon teilen\" aria-label=\"Bei Mastodon teilen\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#6364FF; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"75\" height=\"79\" viewBox=\"0 0 75 79\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M37.813-.025C32.462-.058 27.114.13 21.79.598c-8.544.621-17.214 5.58-20.203 13.931C-1.12 23.318.408 32.622.465 41.65c.375 7.316.943 14.78 3.392 21.73 4.365 9.465 14.781 14.537 24.782 15.385 7.64.698 15.761-.213 22.517-4.026a54.1 54.1 0 0 0 .01-6.232c-6.855 1.316-14.101 2.609-21.049 1.074-3.883-.88-6.876-4.237-7.25-8.215-1.53-3.988 3.78-.43 5.584-.883 9.048 1.224 18.282.776 27.303-.462 7.044-.837 14.26-4.788 16.65-11.833 2.263-6.135 1.215-12.79 1.698-19.177.06-3.84.09-7.692-.262-11.52C72.596 7.844 63.223.981 53.834.684a219.453 219.453 0 0 0-16.022-.71zm11.294 12.882c5.5-.067 10.801 4.143 11.67 9.653.338 1.48.471 3 .471 4.515v21.088h-8.357c-.07-7.588.153-15.182-.131-22.765-.587-4.368-7.04-5.747-9.672-2.397-2.422 3.04-1.47 7.155-1.67 10.735v6.392h-8.307c-.146-4.996.359-10.045-.404-15.002-1.108-4.218-7.809-5.565-10.094-1.666-1.685 3.046-.712 6.634-.976 9.936v14.767h-8.354c.109-8.165-.238-16.344.215-24.5.674-5.346 5.095-10.389 10.676-10.627 4.902-.739 10.103 2.038 12.053 6.631.375 1.435 1.76 1.932 1.994.084 1.844-3.704 5.501-6.739 9.785-6.771.367-.044.735-.068 1.101-.073z\"\/><defs><linearGradient id=\"paint0_linear_549_34\" x1=\"37.0692\" y1=\"0\" x2=\"37.0692\" y2=\"79\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#6364FF\"\/><stop offset=\"1\" stop-color=\"#563ACC\"\/><\/linearGradient><\/defs><\/svg><\/span><\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F\" title=\"Bei Facebook teilen\" aria-label=\"Bei Facebook teilen\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span data-service=\"facebook\" style=\"color:#3b5998\" class=\"shariff-count shariff-hidezero\"><\/span>&nbsp;<\/a><\/li><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F&text=How%20to%20install%20Nextcloud%2017%20on%20Debian%20Buster%20with%20MariaDB%20php7.3-fpm%20Apache2%20and%20HTTP%2F2&via=markusblogde\" title=\"Bei X teilen\" aria-label=\"Bei X teilen\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button whatsapp shariff-nocustomcolor\" style=\"background-color:#5cbe4a\"><a href=\"https:\/\/api.whatsapp.com\/send?text=https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F%20How%20to%20install%20Nextcloud%2017%20on%20Debian%20Buster%20with%20MariaDB%20php7.3-fpm%20Apache2%20and%20HTTP%2F2\" title=\"Bei Whatsapp teilen\" aria-label=\"Bei Whatsapp teilen\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#34af23; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#34af23\" d=\"M17.6 17.4q0.2 0 1.7 0.8t1.6 0.9q0 0.1 0 0.3 0 0.6-0.3 1.4-0.3 0.7-1.3 1.2t-1.8 0.5q-1 0-3.4-1.1-1.7-0.8-3-2.1t-2.6-3.3q-1.3-1.9-1.3-3.5v-0.1q0.1-1.6 1.3-2.8 0.4-0.4 0.9-0.4 0.1 0 0.3 0t0.3 0q0.3 0 0.5 0.1t0.3 0.5q0.1 0.4 0.6 1.6t0.4 1.3q0 0.4-0.6 1t-0.6 0.8q0 0.1 0.1 0.3 0.6 1.3 1.8 2.4 1 0.9 2.7 1.8 0.2 0.1 0.4 0.1 0.3 0 1-0.9t0.9-0.9zM14 26.9q2.3 0 4.3-0.9t3.6-2.4 2.4-3.6 0.9-4.3-0.9-4.3-2.4-3.6-3.6-2.4-4.3-0.9-4.3 0.9-3.6 2.4-2.4 3.6-0.9 4.3q0 3.6 2.1 6.6l-1.4 4.2 4.3-1.4q2.8 1.9 6.2 1.9zM14 2.2q2.7 0 5.2 1.1t4.3 2.9 2.9 4.3 1.1 5.2-1.1 5.2-2.9 4.3-4.3 2.9-5.2 1.1q-3.5 0-6.5-1.7l-7.4 2.4 2.4-7.2q-1.9-3.2-1.9-6.9 0-2.7 1.1-5.2t2.9-4.3 4.3-2.9 5.2-1.1z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button xing shariff-nocustomcolor\" style=\"background-color:#29888a\"><a href=\"https:\/\/www.xing.com\/spi\/shares\/new?url=https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F\" title=\"Bei XING teilen\" aria-label=\"Bei XING teilen\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#126567; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 25 32\"><path fill=\"#126567\" d=\"M10.7 11.9q-0.2 0.3-4.6 8.2-0.5 0.8-1.2 0.8h-4.3q-0.4 0-0.5-0.3t0-0.6l4.5-8q0 0 0 0l-2.9-5q-0.2-0.4 0-0.7 0.2-0.3 0.5-0.3h4.3q0.7 0 1.2 0.8zM25.1 0.4q0.2 0.3 0 0.7l-9.4 16.7 6 11q0.2 0.4 0 0.6-0.2 0.3-0.6 0.3h-4.3q-0.7 0-1.2-0.8l-6-11.1q0.3-0.6 9.5-16.8 0.4-0.8 1.2-0.8h4.3q0.4 0 0.5 0.3z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button threema shariff-nocustomcolor shariff-mobile\" style=\"background-color:#4fbc24\"><a href=\"threema:\/\/compose?text=How%20to%20install%20Nextcloud%2017%20on%20Debian%20Buster%20with%20MariaDB%20php7.3-fpm%20Apache2%20and%20HTTP%2F2%20https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F\" title=\"Bei Threema teilen\" aria-label=\"Bei Threema teilen\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#1f1f1f; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#1f1f1f\" d=\"M30.8 10.9c-0.3-1.4-0.9-2.6-1.8-3.8-2-2.6-5.5-4.5-9.4-5.2-1.3-0.2-1.9-0.3-3.5-0.3s-2.2 0-3.5 0.3c-4 0.7-7.4 2.6-9.4 5.2-0.9 1.2-1.5 2.4-1.8 3.8-0.1 0.5-0.2 1.2-0.2 1.6 0 0.4 0.1 1.1 0.2 1.6 0.4 1.9 1.3 3.4 2.9 5 0.8 0.8 0.8 0.8 0.7 1.3 0 0.6-0.5 1.6-1.7 3.6-0.3 0.5-0.5 0.9-0.5 0.9 0 0.1 0.1 0.1 0.5 0 0.8-0.2 2.3-0.6 5.6-1.6 1.1-0.3 1.3-0.4 2.3-0.4 0.8 0 1.1 0 2.3 0.2 1.5 0.2 3.5 0.2 4.9 0 5.1-0.6 9.3-2.9 11.4-6.3 0.5-0.9 0.9-1.8 1.1-2.8 0.1-0.5 0.2-1.1 0.2-1.6 0-0.7-0.1-1.1-0.2-1.6-0.3-1.4 0.1 0.5 0 0zM20.6 17.3c0 0.4-0.4 0.8-0.8 0.8h-7.7c-0.4 0-0.8-0.4-0.8-0.8v-4.6c0-0.4 0.4-0.8 0.8-0.8h0.2l0-1.6c0-0.9 0-1.8 0.1-2 0.1-0.6 0.6-1.2 1.1-1.7s1.1-0.7 1.9-0.8c1.8-0.3 3.7 0.7 4.2 2.2 0.1 0.3 0.1 0.7 0.1 2.1v0 1.7h0.1c0.4 0 0.8 0.4 0.8 0.8v4.6zM15.6 7.3c-0.5 0.1-0.8 0.3-1.2 0.6s-0.6 0.8-0.7 1.3c0 0.2 0 0.8 0 1.5l0 1.2h4.6v-1.3c0-1 0-1.4-0.1-1.6-0.3-1.1-1.5-1.9-2.6-1.7zM25.8 28.2c0 1.2-1 2.2-2.1 2.2s-2.1-1-2.1-2.1c0-1.2 1-2.1 2.2-2.1s2.2 1 2.2 2.2zM18.1 28.2c0 1.2-1 2.2-2.1 2.2s-2.1-1-2.1-2.1c0-1.2 1-2.1 2.2-2.1s2.2 1 2.2 2.2zM10.4 28.2c0 1.2-1 2.2-2.1 2.2s-2.1-1-2.1-2.1c0-1.2 1-2.1 2.2-2.1s2.2 1 2.2 2.2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button mailto shariff-nocustomcolor\" style=\"background-color:#a8a8a8\"><a href=\"mailto:?body=https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F&subject=How%20to%20install%20Nextcloud%2017%20on%20Debian%20Buster%20with%20MariaDB%20php7.3-fpm%20Apache2%20and%20HTTP%2F2\" title=\"Per E-Mail versenden\" aria-label=\"Per E-Mail versenden\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#999; color:#fff\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#999\" d=\"M32 12.7v14.2q0 1.2-0.8 2t-2 0.9h-26.3q-1.2 0-2-0.9t-0.8-2v-14.2q0.8 0.9 1.8 1.6 6.5 4.4 8.9 6.1 1 0.8 1.6 1.2t1.7 0.9 2 0.4h0.1q0.9 0 2-0.4t1.7-0.9 1.6-1.2q3-2.2 8.9-6.1 1-0.7 1.8-1.6zM32 7.4q0 1.4-0.9 2.7t-2.2 2.2q-6.7 4.7-8.4 5.8-0.2 0.1-0.7 0.5t-1 0.7-0.9 0.6-1.1 0.5-0.9 0.2h-0.1q-0.4 0-0.9-0.2t-1.1-0.5-0.9-0.6-1-0.7-0.7-0.5q-1.6-1.1-4.7-3.2t-3.6-2.6q-1.1-0.7-2.1-2t-1-2.5q0-1.4 0.7-2.3t2.1-0.9h26.3q1.2 0 2 0.8t0.9 2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button printer shariff-nocustomcolor\" style=\"background-color:#a8a8a8\"><a href=\"javascript:window.print()\" title=\"drucken\" aria-label=\"drucken\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#999; color:#fff\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 30 32\"><path fill=\"#999\" d=\"M6.8 27.4h16v-4.6h-16v4.6zM6.8 16h16v-6.8h-2.8q-0.7 0-1.2-0.5t-0.5-1.2v-2.8h-11.4v11.4zM27.4 17.2q0-0.5-0.3-0.8t-0.8-0.4-0.8 0.4-0.3 0.8 0.3 0.8 0.8 0.3 0.8-0.3 0.3-0.8zM29.7 17.2v7.4q0 0.2-0.2 0.4t-0.4 0.2h-4v2.8q0 0.7-0.5 1.2t-1.2 0.5h-17.2q-0.7 0-1.2-0.5t-0.5-1.2v-2.8h-4q-0.2 0-0.4-0.2t-0.2-0.4v-7.4q0-1.4 1-2.4t2.4-1h1.2v-9.7q0-0.7 0.5-1.2t1.2-0.5h12q0.7 0 1.6 0.4t1.3 0.8l2.7 2.7q0.5 0.5 0.9 1.4t0.4 1.6v4.6h1.1q1.4 0 2.4 1t1 2.4z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F\" title=\"Bei Reddit teilen\" aria-label=\"Bei Reddit teilen\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span data-service=\"reddit\" style=\"color:#ff4500\" class=\"shariff-count shariff-hidezero\"><\/span>&nbsp;<\/a><\/li><li class=\"shariff-button linkedin shariff-nocustomcolor\" style=\"background-color:#1488bf\"><a href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fmarkus-blog.de%2Findex.php%2F2019%2F10%2F01%2Fhow-to-install-nextcloud-17-on-debian-buster-with-mariadb-php7-3-fpm-apache2-and-http-2%2F\" title=\"Bei LinkedIn teilen\" aria-label=\"Bei LinkedIn teilen\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0077b5; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 27 32\"><path fill=\"#0077b5\" d=\"M6.2 11.2v17.7h-5.9v-17.7h5.9zM6.6 5.7q0 1.3-0.9 2.2t-2.4 0.9h0q-1.5 0-2.4-0.9t-0.9-2.2 0.9-2.2 2.4-0.9 2.4 0.9 0.9 2.2zM27.4 18.7v10.1h-5.9v-9.5q0-1.9-0.7-2.9t-2.3-1.1q-1.1 0-1.9 0.6t-1.2 1.5q-0.2 0.5-0.2 1.4v9.9h-5.9q0-7.1 0-11.6t0-5.3l0-0.9h5.9v2.6h0q0.4-0.6 0.7-1t1-0.9 1.6-0.8 2-0.3q3 0 4.9 2t1.9 6z\"\/><\/svg><\/span><\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>Nextcloud 17 was released, so here is a manual to install it on a Debian Buster VPS, secure it with LetsEncrypt and deploy it via Apache2 with php-fpm and HTTP\/2. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1705,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[63,187,153,186,189,52,188,64,134],"class_list":["post-1695","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nextcloud-en","tag-apache2","tag-buster","tag-collaboration","tag-debian","tag-mariadb","tag-nextcloud","tag-nextcloud-17","tag-reverse-proxy","tag-vps"],"_links":{"self":[{"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/posts\/1695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/comments?post=1695"}],"version-history":[{"count":0,"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/posts\/1695\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/media\/1705"}],"wp:attachment":[{"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/media?parent=1695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/categories?post=1695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/markus-blog.de\/index.php\/wp-json\/wp\/v2\/tags?post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}