<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nextcloud Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nextcloud/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 17 Jan 2021 16:04:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to enable ClamAV on Nextcloud?</title>
		<link>https://www.osradar.com/how-to-enable-clamav-on-nextcloud/</link>
					<comments>https://www.osradar.com/how-to-enable-clamav-on-nextcloud/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 20 Jan 2021 02:59:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27770</guid>

					<description><![CDATA[<p>Hello, friends. Enabling ClamAV on Nextcloud is a logical step to take to ensure the integrity of our files and to protect our server and the operating systems such as Windows that will access it. So, in this post, you will learn how to do it. In this post, it is assumed that we have [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-enable-clamav-on-nextcloud/">How to enable ClamAV on Nextcloud?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Enabling ClamAV on Nextcloud is a logical step to take to ensure the integrity of our files and to protect our server and the operating systems such as Windows that will access it. So, in this post, you will learn how to do it.</p>



<p>In this post, it is assumed that we have an instance of Nextcloud configured correctly as we taught you in this post.</p>



<p>So that will be our starting point.</p>



<h2>Enabling ClamAV on Nextcloud</h2>



<h3>1.- Install ClamAV on Ubuntu 20.04</h3>



<p>The first thing we have to do is to <a href="https://www.osradar.com/install-clamav-debian-9-ubuntu-18/" target="_blank" rel="noreferrer noopener">install ClamAV from the official Ubuntu 20.04 </a>repositories or from the distribution you are using.</p>



<pre class="wp-block-preformatted">sudo apt install clamav clamav-daemon
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   clamav-base clamav-freshclam libclamav9 libmspack0 libtfm1
 Suggested packages:
   clamav-docs daemon libclamunrar9
 Recommended packages:
   clamdscan
 The following NEW packages will be installed:
   clamav clamav-base clamav-daemon clamav-freshclam libclamav9 libmspack0 libtfm1
 0 upgraded, 7 newly installed, 0 to remove and 24 not upgraded.
 Need to get 1,403 kB of archives.
 After this operation, 5,199 kB of additional disk space will be used.
 Do you want to continue? [Y/n]</pre>



<p>After the installation is done, you can start the service:</p>



<pre class="wp-block-preformatted">sudo systemctl start clamav-daemon.service</pre>



<p>And then check the status of it</p>



<pre class="wp-block-preformatted">sudo systemctl status clamav-daemon.service
● clamav-daemon.service - Clam AntiVirus userspace daemon
      Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
     Drop-In: /etc/systemd/system/clamav-daemon.service.d
              └─extend.conf
      Active: active (running) since Thu 2021-01-14 20:56:34 CET; 2s ago
        Docs: man:clamd(8)
              man:clamd.conf(5)
              https://www.clamav.net/documents/
     Process: 20021 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS)
     Process: 20024 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
    Main PID: 20027 (clamd)
       Tasks: 1 (limit: 2286)
      Memory: 129.0M
      CGroup: /system.slice/clamav-daemon.service
              └─20027 /usr/sbin/clamd --foreground=true
 Jan 14 20:56:34 osradar systemd[1]: Starting Clam AntiVirus userspace daemon…
 Jan 14 20:56:34 osradar systemd[1]: Started Clam AntiVirus userspace daemon.</pre>



<p>As you can see, everything is going well.</p>



<h3>2.- Download Antivirus for File Nextcloud App</h3>



<p>ClamAV is the backend of an official Nextcloud extension that scans the files we upload.</p>



<p>In the official documentation, we are told that it is already installed by default, but in my case, it was not.</p>



<p>There are no problems. From a client machine, go to <a href="https://apps.nextcloud.com/apps/files_antivirus" target="_blank" rel="noreferrer noopener">this</a> link and download the latest available version of the extension.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="589" src="https://www.osradar.com/wp-content/uploads/2021/01/download-extension-1024x589.png" alt="Download the extension" class="wp-image-27798" srcset="https://www.osradar.com/wp-content/uploads/2021/01/download-extension-1024x589.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension-300x173.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension-768x442.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension-696x400.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension-1068x614.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension.png 1363w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Download the extension</figcaption></figure>



<p>Then, copy it to the server using the <code>scp</code> command</p>



<pre class="wp-block-preformatted">scp files_antivirus.tar.gz [user]@[your-domain]:/tmp</pre>



<p>And on the server, decompress it in the place where the Nextcloud APPS are.</p>



<pre class="wp-block-preformatted">sudo tar xvzf /tmp/files_antivirus.tar.gz -C /var/www/html/nextcloud/apps/</pre>



<p>You can check that everything is ok, by accessing the apps folder and checking that there is a folder called files_antivirus</p>



<pre class="wp-block-preformatted">cd /var/www/html/nextcloud/apps/</pre>



<p>So, we&#8217;re doing well.</p>



<h3>3.- Enabling ClamAV on Nextcloud</h3>



<p>So, we have to enable the add-on for ClamAV to work its magic.</p>



<p>To do so, from the Nextcloud dashboard, click on your user and access the APPS section.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="953" height="1024" src="https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-953x1024.jpg" alt="Nextcloud dashboard!" class="wp-image-27799" srcset="https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-953x1024.jpg 953w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-279x300.jpg 279w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-768x825.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-696x747.jpg 696w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-1068x1147.jpg 1068w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud.jpg 1366w" sizes="(max-width: 953px) 100vw, 953px" /><figcaption>Nextcloud dashboard!</figcaption></figure>



<p>Then download and locate the add-on we have just installed, which is <em>Antivirus for Files</em>, and click on <em>Enable</em>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="655" src="https://www.osradar.com/wp-content/uploads/2021/01/3-7-1024x655.png" alt="Enabling the extension" class="wp-image-27800" srcset="https://www.osradar.com/wp-content/uploads/2021/01/3-7-1024x655.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/3-7-300x192.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/3-7-768x491.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/3-7-696x445.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/3-7-1068x683.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/3-7.png 1353w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Enabling the extension</figcaption></figure>



<p>Then, you will be asked for the password of the Nextcloud admin user that you defined during the installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="527" src="https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-1024x527.png" alt="Enabling ClamAV on Nextcloud" class="wp-image-27801" srcset="https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-1024x527.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-768x395.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-696x358.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-1068x550.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Enabling ClamAV on Nextcloud</figcaption></figure>



<p>After that, it is enabled, you have to go to the Nextcloud settings, in the <em>Security</em> section, and in the <em>Antivirus for Files</em> section, follow these settings:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="401" src="https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-1024x401.png" alt="Configuring ClamAV on Nextcloud" class="wp-image-27802" srcset="https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-1024x401.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-300x117.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-768x301.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-696x272.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud.png 1040w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Configuring ClamAV on Nextcloud</figcaption></figure>



<p>Then, click on <em>Save</em> and you&#8217;re done. ClamAV will now monitor your files for viruses.</p>



<h2>Conclusion</h2>



<p>So, Nextcloud is a great tool but when working with files it is best to have an anti-virus, especially if it is to be used with Windows computers that are very vulnerable to these situations. So, this tutorial makes the integration between ClamAV and Nextcloud very easy to do.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-enable-clamav-on-nextcloud/">How to enable ClamAV on Nextcloud?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-enable-clamav-on-nextcloud/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Nextcloud (LEMP) on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 16 Jan 2021 01:10:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27674</guid>

					<description><![CDATA[<p>Having a private cloud may, at first sight, be unnecessary, but when you are in a company and decide that it is best to take care of your files yourself, then the matter changes. That’s why, in this post, I’ll show you how to install Nextcloud on Ubuntu 20.04 with Nginx. A private Cloud with [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/">How to install Nextcloud (LEMP) on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Having a private cloud may, at first sight, be unnecessary, but when you are in a company and decide that it is best to take care of your files yourself, then the matter changes. That’s why, in this post, I’ll show you how to install Nextcloud on Ubuntu 20.04 with Nginx.</p>



<h2>A private Cloud with Nextcloud</h2>



<p>There are many data storage services in clouds. Technological giants like Apple, Google, and Microsoft have them. However, there are people or companies that want to have absolute control over their own data. Nextcloud is there for that.</p>



<p><a href="https://nextcloud.com/">Nextcloud</a>&nbsp;is an open-source web application that allows us to create our own private cloud. It was created with the primary objective that it is the user who has absolute control of the files.</p>



<p>Many companies install Nextcloud on their servers to create their private clouds. This way they can rely on their own data management. It is even of great help in educational or personal projects.</p>



<h2>Install Nextcloud (LEMP) on Ubuntu</h2>



<h3>1.- Install LEMP on Ubuntu 20.04</h3>



<p>Apache is a fantastic web server and nobody can deny that. However, Nginx is well known for its great performance in high traffic situations. That&#8217;s why it&#8217;s a favorite of many sysadmins that require a lightweight and efficient server.</p>



<p>So, open a terminal or connect to your server and update the distribution</p>



<pre class="wp-block-preformatted">sudo apt update<br>sudo apt upgrade</pre>



<p>Now install Nginx, along with all the PHP modules, MariaDB and some extra packages we&#8217;ll need to run:</p>



<pre class="wp-block-preformatted">sudo apt install nginx php7.4-common php7.4-mysql php7.4-fpm php7.4-gd php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl php7.4-bcmath php7.4-gmp php-imagick mariadb-server unzip</pre>



<p>Then start the php-fpm service</p>



<pre class="wp-block-preformatted">sudo systemctl start php7.4-fpm</pre>



<p>And then it increases the maximum size of the uploaded files:</p>



<pre class="wp-block-preformatted">sudo nano /etc/php/7.4/fpm/php.ini</pre>



<p>And it changes the value</p>



<pre class="wp-block-preformatted">upload_max_filesize = 2M</pre>



<p>Set the value that you prefer, in this example, I will place <code>512M</code></p>



<pre class="wp-block-preformatted">upload_max_filesize = 512M</pre>



<p>Save the changes and close the editor.</p>



<p>Now configure MariaDB with the <code>mysql_secure_installation</code> script</p>



<pre class="wp-block-preformatted">sudo mysql_secure_installation</pre>



<p>And there you can define the root password and secure the installation of MariaDB</p>



<pre class="wp-block-preformatted">Remove anonymous users? [Y/n]<br>Disallow root login remotely? [Y/n]<br>Remove test database and access to it? [Y/n]<br>Reload privilege tables now? [Y/n]</pre>



<p>Now create the database as well as the user who will use Nextcloud:</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p</pre>



<pre class="wp-block-preformatted">CREATE DATABASE nextcloud;<br>GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost' IDENTIFIED BY 'nextcloudpss';<br>FLUSH PRIVILEGES;<br>exit;</pre>



<p>Now we can start the installation.</p>



<h3>2.- Download Nextcloud</h3>



<p>Now if you can download Nextcloud, you can use the <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">wget command</a></p>



<pre class="wp-block-preformatted">cd /tmp/
wget -c https://download.nextcloud.com/server/releases/nextcloud-20.0.4.zip
--2021-01-11 16:11:32--  https://download.nextcloud.com/server/releases/nextcloud-20.0.4.zip
 Resolving download.nextcloud.com (download.nextcloud.com)… 2a01:4f9:2a:3119::181, 95.217.64.181
 Connecting to download.nextcloud.com (download.nextcloud.com)|2a01:4f9:2a:3119::181|:443… connected.
 HTTP request sent, awaiting response… 200 OK
 Length: 142325595 (136M) [application/zip]
 Saving to: ‘nextcloud-20.0.4.zip’
 nextcloud-20.0.4.zip                       100%[=====================================================================================&gt;] 135.73M  57.8MB/s    in 2.4s    
 2021-01-11 16:11:35 (57.8 MB/s) - ‘nextcloud-20.0.4.zip’ saved [142325595/142325595]</pre>



<p>After that, unzip it in the Nginx root directory:</p>



<pre class="wp-block-preformatted">sudo unzip nextcloud-20.0.4.zip -d /var/www/html/</pre>



<p>Change the owner of the folder:</p>



<pre class="wp-block-preformatted">sudo chown -R www-data:www-data /var/www/html/</pre>



<p>Now create a new ServerBlock with the following guidelines that will facilitate the documentation of Nextcloud:</p>



<pre class="wp-block-preformatted">server {
     listen 80;
     listen [::]:80;
     server_name angtest.ga;
     client_max_body_size 512M;
     fastcgi_buffers 64 4K;
     gzip on;
     gzip_vary on;
     gzip_comp_level 4;
     gzip_min_length 256;
     gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
     gzip_types application/atom+xml application/javascript application/json application/ld+json     application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;

     add_header Referrer-Policy                      "no-referrer"   always;
     add_header X-Content-Type-Options               "nosniff"   always;
     add_header X-Download-Options                   "noopen"   always;
     add_header X-Frame-Options                      "SAMEORIGIN"    always;
     add_header X-Permitted-Cross-Domain-Policies    "none"  always;
     add_header X-Robots-Tag                         "none"           always;
     add_header X-XSS-Protection                     "1; mode=block" always;
     
     fastcgi_hide_header X-Powered-By;
     root /var/www/html/nextcloud;
     index index.php index.html /index.php$request_uri; 
     expires 1m;
     location = / {
              if ( $http_user_agent ~ ^DavClnt ) { 
                            return 302 /remote.php/webdav/$is_args$args;
                  } 
                  } 
     location = /robots.txt {     
              allow all;
              log_not_found off;
              access_log off;
              } 
     location ^~ /.well-known {     
               # The following 6 rules are borrowed from `.htaccess`
              rewrite ^/\.well-known/host-meta\.json  /public.php?service=host-meta-json  last;
              rewrite ^/\.well-known/host-meta        /public.php?service=host-meta       last;
              rewrite ^/\.well-known/webfinger        /public.php?service=webfinger       last;     
              rewrite ^/\.well-known/nodeinfo         /public.php?service=nodeinfo        last;     

              location = /.well-known/carddav     { return 301 /remote.php/dav/; }
              location = /.well-known/caldav      { return 301 /remote.php/dav/; }     

              try_files $uri $uri/ =404; 
            } 

location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/)  { return 404; } 
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console){ return 404; } 

location ~ \.php(?:$|/) {
             fastcgi_split_path_info ^(.+?\.php)(/.*)$;
             set $path_info $fastcgi_path_info;
             try_files $fastcgi_script_name =404;
             include fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $path_info;
             fastcgi_param HTTPS on;
             fastcgi_param modHeadersAvailable true; 
             fastcgi_param front_controller_active true;
             fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
             fastcgi_intercept_errors on;
             fastcgi_request_buffering off;

            } 

   location ~ \.(?:css|js|svg|gif)$ {
             try_files $uri /index.php$request_uri;
             expires 6M;
             access_log off;
             } 
   location ~ \.woff2?$ {
             try_files $uri /index.php$request_uri;
             expires 7d;
             access_log off;
            } 
   location / {
             try_files $uri $uri/ /index.php$request_uri; 
     }
 }</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2021/01/1-5-1024x536.png" alt="1.- Configuring Nginx" class="wp-image-27679" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-5-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/1-5-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-5-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-5-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/1-5-1068x559.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/1-5.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Configuring Nginx</figcaption></figure>



<p>Remember to change the ServerName values to your own. Save the changes and close the editor</p>



<p>Check the Nginx configuration to make sure everything is fine:</p>



<pre class="wp-block-preformatted">sudo nginx -t</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">nginx: the configuration file /etc/nginx/nginx.conf syntax is ok<br>nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>



<p>And now you have to get a certificate for your domain. This is quite simple thanks to Certbot.</p>



<pre class="wp-block-preformatted">sudo apt install certbot python3-certbot-nginx</pre>



<p>Then you can start the process:</p>



<pre class="wp-block-preformatted">sudo certbot --nginx --agree-tos --redirect --hsts --staple-ocsp --email you@example.com -d angtest.ga</pre>



<p>Replace the email and domain values with your own.</p>



<p>At the end of the process, apply the changes by restarting nginx.</p>



<pre class="wp-block-preformatted">sudo systemctl reload nginx</pre>



<h3>3.- Install Nextcloud </h3>



<p>Now open your web browser and go to <code>https://your-domain</code> and you will see the following screen</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/01/2-7-1024x506.png" alt="2.- Nextcloud on Ubuntu" class="wp-image-27677" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2-7-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2-7-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2-7-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2-7-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2-7-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2-7.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Nextcloud on Ubuntu</figcaption></figure>



<p>There you will have to create the administrator user and configure the database parameters below.</p>



<p>You can also change the path where the data is stored, but you have to create the folder on your server.</p>



<p>When you are ready, Nextcloud will be ready for you.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="504" src="https://www.osradar.com/wp-content/uploads/2021/01/3-6-1024x504.png" alt="3.- Nextcloud running" class="wp-image-27678" srcset="https://www.osradar.com/wp-content/uploads/2021/01/3-6-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/3-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/3-6-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/3-6-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/3-6-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/3-6.png 1360w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Nextcloud running</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>Nextcloud is a very useful tool for small and medium businesses that want to create a private cloud quickly and secure.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/">How to install Nextcloud (LEMP) on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nextcloud-lemp-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Nextcloud 20 available</title>
		<link>https://www.osradar.com/nextcloud-20-available/</link>
					<comments>https://www.osradar.com/nextcloud-20-available/#respond</comments>
		
		<dc:creator><![CDATA[marquez]]></dc:creator>
		<pubDate>Thu, 08 Oct 2020 18:22:43 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[New version]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24427</guid>

					<description><![CDATA[<p>Nextcloud is an open-source application, which allows you to host files in the cloud. With the possibility to see having all the files available anywhere and at any time. Also, a few days ago the annual conference of the project was held, and immediately after it was announced the launch of Nextcloud 20. Possibly the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/nextcloud-20-available/">Nextcloud 20 available</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Nextcloud is an <a href="https://www.osradar.com/tag/OpenSource/" target="_blank" rel="noreferrer noopener">open-source</a> application, which allows you to host files in the cloud. With the possibility to see having all the files available anywhere and at any time. Also, a few days ago the annual conference of the project was held, and immediately after it was announced the launch of Nextcloud 20. Possibly the most interesting version of the last ones announced by the developers.</p>



<p>Similarly, Nextcloud is becoming a self-hosted productivity solution. With which it no longer depends on the large clouds of services from the giants of the IT sector.</p>



<p>On the other hand, the name with which it should be called would be &#8220;Nextcloud Hub&#8221; is the name of the suite since the release of version 18.<strong> The latest version of Nextcloud, incorporates some important additions to the platform</strong>.</p>



<h2>Nextcloud 20: What&#8217;s new?</h2>



<p>The latest version of Nextcloud, including new features and improvements, should be big enough. With the goal that all users of previous versions of Nextcloud have to fight for the upgrade.</p>



<p>The new version of Nextcloud, <strong>include a new dashboard</strong> that replaces (only if you want). To the file application as default section when accessing Nextcloud. Also, <strong>the new dashboard is focused on the configurable modules</strong> so they can visualize the most important sections for the user. For example, upcoming events in the calendar, mention of email or social networks, and recommended files.</p>



<p>On the other hand, the three most important features of Nextcloud 20 are:</p>



<ul><li><strong>A new panel that provides</strong> an excellent starting point for the day It also includes more than a dozen widgets ranging from Twitter and Github to Moodle and Zammad already available.</li><li>The search was unified and brings together search results from Nextcloud applications and external services such as Gitlab, Jira, and Discourse in one place.</li><li><strong>The talk introduced the bridge to other platforms</strong>, including MS Teams, Slack, IRC, Matrix, and a dozen others.</li></ul>



<p>On the other hand, it incorporates improvements in the application.</p>



<ul><li>Files that allow you to add a description to public link shares.</li><li>Flow <strong>adds push notifications and webhooks</strong> so that other web applications can easily integrate with Nextcloud.</li><li>Text entered direct link to files in Nextcloud.</li></ul>



<p>To learn more are the new features of Nextcloud 20 visit the <a href="https://nextcloud.com/blog/nextcloud-hub-20-debuts-dashboard-unifies-search-and-notifications-integrates-with-other-technologies/" target="_blank" rel="noreferrer noopener">official announcement</a>.</p>



<h2>Conclusion</h2>



<p>Nextcloud is multiplatform to allow working from a computer or a mac. Also for phones or tablets, either Apple or Android.</p>



<p>The improvements of Nextcloud 20 do not stop there but focus almost all around the new dashboard and global search function.</p>



<p>On the other hand, the announced import change with the integration of more than a dozen third applications.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a> and our <a href="https://www.facebook.com/osradar" target="_blank" rel="noreferrer noopener">Facebook page.</a> Also, buy us a coffee</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/nextcloud-20-available/">Nextcloud 20 available</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/nextcloud-20-available/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Nextcloud on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/how-to-install-nextcloud-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-nextcloud-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 14 May 2020 23:24:02 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20317</guid>

					<description><![CDATA[<p>Having a private cloud may, at first sight, be unnecessary, but when you are in a company and decide that it is best to take care of your files yourself, then the matter changes. That&#8217;s why, in this post, I&#8217;ll show you how to install Nextcloud on Ubuntu 20.04 A private Cloud with Nextcloud There [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nextcloud-on-ubuntu-20-04/">How to install Nextcloud on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Having a private cloud may, at first sight, be unnecessary, but when you are in a company and decide that it is best to take care of your files yourself, then the matter changes. That&#8217;s why, in this post, I&#8217;ll show you how to install Nextcloud on Ubuntu 20.04</p>



<h2>A private Cloud with Nextcloud</h2>



<p>There are many data storage services in clouds. Technological giants like Apple, Google, and Microsoft have them. However, there are people or companies that want to have absolute control over their own data. Nextcloud is there for that.</p>



<p><a href="https://nextcloud.com/">Nextcloud</a> is an open-source web application that allows us to create our own private cloud. It was created with the primary objective that it is the user who has absolute control of the files.</p>



<p>Many companies install Nextcloud on their servers to create their private clouds. This way they can rely on their own data management. It is even of great help in educational or personal projects.</p>



<h2>Making a private cloud with Nextcloud on Ubuntu 20.04</h2>



<h3>1.- Install LAMP stack</h3>



<p>On the server-side, Nextcloud works as a web application that requires a web server to work properly. In addition to this, to correctly manage the data generated in it, an RDBMS such as MySQL or MariaDB is needed.</p>



<p>So, the first step is to install the LAMP stack on our computer. This is quite easy to do and more with our post:</p>



<p><a href="https://www.osradar.com/install-lamp-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">How to install LAMP on Ubuntu 20.04?</a></p>



<p>Also, you have to install these modules so you can run it without any problem.</p>



<pre class="wp-block-preformatted">php7.4 libapache2-mod-php7.4 php7.4-mysql php7.4-intl php7.4-curl php7.4-json php7.4-gd php7.4-xml php7.4-mb php7.4-zip</pre>



<p>By correctly configuring all LAMP components, you can proceed to the next step.</p>



<h3>2.- Create the database for Nextcloud</h3>



<p>Having finished with LAMP, it remains to create a new database that will be used by Nextcloud. For security reasons, it is also convenient to create a new user to manage it.</p>



<p>So, access the MariaDB shell:</p>



<pre class="wp-block-preformatted">:~$ sudo mysql -u root -p</pre>



<p>And then, create the database, the user and assign the corresponding permissions.</p>



<pre class="wp-block-preformatted">> CREATE DATABASE nextcloud;
> GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost' IDENTIFIED BY 'nextcloudpss';
> FLUSH PRIVILEGES;</pre>



<p>Then get out of the console.</p>



<pre class="wp-block-preformatted">> exit;</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="373" src="https://www.osradar.com/wp-content/uploads/2020/05/1-8-1024x373.png" alt="1.- Creating a new database and user for Nextcloud" class="wp-image-20326" srcset="https://www.osradar.com/wp-content/uploads/2020/05/1-8-1024x373.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/1-8-300x109.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/1-8-768x280.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/1-8-696x253.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/1-8-1068x389.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/1-8.png 1093w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Creating a new database and user for Nextcloud</figcaption></figure>



<p>Creating a dedicated MariaDB Nextcloud user helps prevent irregularities and security issues.</p>



<h3>3.- Downloading Nextcloud on Ubuntu 20.04</h3>



<p>To download Nextcloud, I will use the <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">wget command</a> and download the latest stable version which at the time of writing is 18.0.4</p>



<pre class="wp-block-preformatted">:~$ cd /tmp/<br>:~$ wget -c https://download.nextcloud.com/server/releases/nextcloud-18.0.4.zip</pre>



<p>Once downloaded, simply unzip the file with the unzip command. If you don&#8217;t have it, just install it.</p>



<pre class="wp-block-preformatted">:~$ unzip nextcloud-18.0.4.zip</pre>



<p>This will generate a folder called nextcloud which we then have to move to the Apache root directory.</p>



<pre class="wp-block-preformatted">:~$ sudo mv nextcloud /var/www/html/</pre>



<p>Then, you have to assign the appropriate execution permissions, and make the folder belong to Apache.</p>



<pre class="wp-block-preformatted">:~$ sudo chown -R www-data:www-data /var/www/html/
:~$ sudo chmod 755 -R /var/www/html/</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="974" height="95" src="https://www.osradar.com/wp-content/uploads/2020/05/2-11.png" alt="2.- Set the right permissions to the Nextcloud folder" class="wp-image-20328" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-11.png 974w, https://www.osradar.com/wp-content/uploads/2020/05/2-11-300x29.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-11-768x75.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/2-11-696x68.png 696w" sizes="(max-width: 974px) 100vw, 974px" /><figcaption>2.- Set the right permissions to the Nextcloud folder</figcaption></figure>



<p>The next step is to create a new Virtualhost to process the Nextcloud site.</p>



<pre class="wp-block-preformatted">:~$ sudo nano /etc/apache2/sites-available/nextcloud.conf</pre>



<p>And add the following content:</p>



<pre class="wp-block-preformatted">&lt;VirtualHost *:80>
    ServerAdmin admin@your_domain.com
    DocumentRoot /var/www/html/nextcloud
    ServerName your-domain.com

    &lt;Directory /var/www/html/nextcloud> 
        Options FollowSymlinks
        AllowOverride All
        Require all granted 
    &lt;/Directory> 
ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined
&lt;/VirtualHost></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1001" height="328" src="https://www.osradar.com/wp-content/uploads/2020/05/3-10.png" alt="3.- Creating a new Virtualhost for Nextcloud" class="wp-image-20327" srcset="https://www.osradar.com/wp-content/uploads/2020/05/3-10.png 1001w, https://www.osradar.com/wp-content/uploads/2020/05/3-10-300x98.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/3-10-768x252.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/3-10-696x228.png 696w" sizes="(max-width: 1001px) 100vw, 1001px" /><figcaption>3.- Creating a new Virtualhost for Nextcloud</figcaption></figure>



<p>As you can see in the image, I have defined a server name called <code>nextcloud.osradar.test</code> that you have to replace. However, that should leave the file.</p>



<p>Then, enable the new Virtualhost, the Apache rewrite module and finally restart Apache to apply the changes.</p>



<pre class="wp-block-preformatted">:~$ sudo ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2</pre>



<p>Now, complete the installation using the web interface.</p>



<h3>4.- Install Nextcloud on Ubuntu 20.04</h3>



<p>Open your web browser and go to http://yourservename and you will see the following:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/05/4-8-1024x506.png" alt="4.- Nextcloud on Ubuntu 20.04" class="wp-image-20329" srcset="https://www.osradar.com/wp-content/uploads/2020/05/4-8-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/4-8-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/4-8-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/4-8-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/4-8-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/4-8.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Nextcloud on Ubuntu 20.04</figcaption></figure>



<p>There, you have to create the new admin user with its password.</p>



<p>Then, below, set the previously created database parameters. And start the installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/05/5-4-1024x506.png" alt="5.- Database credentials" class="wp-image-20330" srcset="https://www.osradar.com/wp-content/uploads/2020/05/5-4-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/5-4-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/5-4-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/5-4-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/5-4-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/5-4.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Database credentials</figcaption></figure>



<p>If everything went well, in the end, you will see this screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="504" src="https://www.osradar.com/wp-content/uploads/2020/05/6-3-1024x504.png" alt="6.- Nextcloud installed" class="wp-image-20331" srcset="https://www.osradar.com/wp-content/uploads/2020/05/6-3-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/6-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/6-3-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/6-3-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/6-3-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/6-3.png 1360w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Nextcloud installed</figcaption></figure>



<p>And finally the dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="504" src="https://www.osradar.com/wp-content/uploads/2020/05/7-3-1024x504.png" alt="7.- Nextcloud runnning on Ubuntu 20.04" class="wp-image-20332" srcset="https://www.osradar.com/wp-content/uploads/2020/05/7-3-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/7-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/7-3-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/7-3-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/7-3-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/7-3.png 1360w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- Nextcloud runnning on Ubuntu 20.04</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>Nextcloud is a very useful tool for small and medium businesses that want to create a private cloud quickly and secure.</p>



<p>Please share this post, join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a>. And Buy us a coffee.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nextcloud-on-ubuntu-20-04/">How to install Nextcloud on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-nextcloud-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Nextcloud using Docker compose</title>
		<link>https://www.osradar.com/nextcloud-docker-compose/</link>
					<comments>https://www.osradar.com/nextcloud-docker-compose/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 25 Oct 2019 23:38:18 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker compose]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14879</guid>

					<description><![CDATA[<p>Nextcloud we have talked a lot about because we really like its main utility. And is that having the possibility of deploying a private cloud for us or a business environment is something very interesting. With all the advantages that it supposes since the privacy is something that we should not take to the lightly. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/nextcloud-docker-compose/">Nextcloud using Docker compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><a rel="noreferrer noopener" aria-label="Nextcloud (opens in a new tab)" href="https://www.osradar.com/tag/nextcloud/" target="_blank">Nextcloud</a> we have talked a lot about because we really like its main utility. And is that having the possibility of deploying a private cloud for us or a business environment is something very interesting. With all the advantages that it supposes since the privacy is something that we should not take to the lightly. So, today we will show you how to install Nextcloud using <a rel="noreferrer noopener" aria-label="Docker (opens in a new tab)" href="https://www.osradar.com/tag/docker/" target="_blank">Docker</a> Compose. Which makes this tutorial available for many Linux distributions.</p>



<h2>Install Docker and Docker Compose on Linux</h2>



<p>The first step is to have Docker installed in the system, obviously. </p>



<ul><li>If you are using Ubuntu: <a rel="noreferrer noopener" aria-label="How to install Docker on Ubuntu 18.04? (opens in a new tab)" href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank">How to install Docker on Ubuntu 18.04?</a></li><li>For CentOS 8: <a rel="noreferrer noopener" aria-label="How to install Docker on CentOS 8? (opens in a new tab)" href="https://www.osradar.com/install-docker-centos-8/" target="_blank">How to install Docker on CentOS 8?</a></li><li>For CentOS 7: <a rel="noreferrer noopener" aria-label="How to install Docker CE on CentOS 7? (opens in a new tab)" href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank">How to install Docker CE on CentOS 7?</a></li><li>If you use Windows: <a rel="noreferrer noopener" aria-label="How to install Docker in Windows 10? (opens in a new tab)" href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank">How to install Docker in Windows 10?</a></li><li>Or, if you are using Debian 10: <a rel="noreferrer noopener" aria-label="How to install Docker on Debian 10? (opens in a new tab)" href="https://www.osradar.com/install-docker-on-debian-10/" target="_blank">How to install Docker on Debian 10?</a></li></ul>



<p>And using your distribution&#8217;s package manager, you can install Docker Compose. For example:</p>



<pre class="wp-block-preformatted">:~$ sudo apt docker-compose</pre>



<p>For Debian, Ubuntu and derivatives.</p>



<pre class="wp-block-preformatted">:~$ sudo yum install docker-compose</pre>



<p>Or, for RHEL, CentOS and derivatives.</p>



<h2>Install Nextcloud using Docker compose</h2>



<p>Now that we have our environment ready, let us create a folder <g class="gr_ gr_4 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" id="4" data-gr-id="4">called </g><code>nextcloud</code><g class="gr_ gr_4 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" id="4" data-gr-id="4"> and</g> navigate there to then create <g class="gr_ gr_5 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" id="5" data-gr-id="5">the </g><code>docker-compose.yml</code><g class="gr_ gr_5 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" id="5" data-gr-id="5"> file</g>.</p>



<pre class="wp-block-preformatted">:~$ mkdir nextcloud &amp;&amp; cd nextcloud</pre>



<p>Now we will create the file with the following content.</p>



<pre class="wp-block-preformatted">:~$ nano docker-compose.yml</pre>



<pre class="wp-block-preformatted">version: '2'
 volumes:
   nextcloud:
   db:
   data:
 services:
   db:
     image: mariadb
     command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
     restart: always
     volumes:
       - db:/var/lib/mysql
     environment:
       - MYSQL_ROOT_PASSWORD=1234osradar
       - MYSQL_PASSWORD=1234osradar
       - MYSQL_DATABASE=nextclouddb
       - MYSQL_USER=nextclouduser
 app:
     image: nextcloud
     ports:
       - 1234:80
     links:
       - db
     volumes:
       - nextcloud:/var/www/html
       - data:/var/www/html/data
     restart: always</pre>



<figure class="wp-block-image"><img loading="lazy" width="875" height="626" src="https://www.osradar.com/wp-content/uploads/2019/10/1-16.png" alt="1.- Docke compose file" class="wp-image-14881" srcset="https://www.osradar.com/wp-content/uploads/2019/10/1-16.png 875w, https://www.osradar.com/wp-content/uploads/2019/10/1-16-300x215.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/1-16-768x549.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/1-16-696x498.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/1-16-587x420.png 587w" sizes="(max-width: 875px) 100vw, 875px" /><figcaption>1.- Docke compose file</figcaption></figure>



<p>Let us remember that this image of Nextcloud is the official one so many of these parameters are unalterable. Although we can always add new configurations.</p>



<p>The explanation can be quite brief because of the explicit variables. In the image of MariaDB, we take the volume <code>db</code> that will be in <code>/var/lib/mysql</code> to preserve the data that Nextcloud stores. On the other hand, in the environment section, there are the parameters of the database, user and password. You can modify this as I did.</p>



<p>In the nextcloud image, we simply redirect the application port through ours. I have chosen as an example the 1234 but you know that you can modify it. And I have added two volumes one for the application as such and another for the data. Remember to create these folders in case you don&#8217;t have them already created.</p>



<p>Not much more than explaining the truth.</p>



<p>Once everything is in place, we save the file and close them. Then we run it:</p>



<pre class="wp-block-preformatted">:~$ docker-compose up -d</pre>



<figure class="wp-block-image"><img loading="lazy" width="965" height="718" src="https://www.osradar.com/wp-content/uploads/2019/10/2-15.png" alt="2.- Installing Nextcloud using docker compose" class="wp-image-14882" srcset="https://www.osradar.com/wp-content/uploads/2019/10/2-15.png 965w, https://www.osradar.com/wp-content/uploads/2019/10/2-15-300x223.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/2-15-768x571.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/2-15-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/10/2-15-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/10/2-15-485x360.png 485w, https://www.osradar.com/wp-content/uploads/2019/10/2-15-696x518.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/2-15-564x420.png 564w" sizes="(max-width: 965px) 100vw, 965px" /><figcaption>2.- Installing Nextcloud using docker compose</figcaption></figure>



<p>At this point you can open the browser and go to <code>http://your-server:1234</code> but we will make a virtual host in Apache to avoid having to use the port. In other words an inverse proxy with Apache.</p>



<p>To do this, enable the following Apache module:</p>



<pre class="wp-block-preformatted">:~$ sudo a2enmod proxy_http
:~$ sudo systemctl restart apache2</pre>



<p>Then, create the new virtualhost for Nextcloud:</p>



<pre class="wp-block-preformatted">:~$ sudo nano /etc/apache2/sites-available/nextcloud.conf</pre>



<p>And add the following:</p>



<pre class="wp-block-preformatted">&lt;Virtualhost *:80>
     ServerName nextcloud.osradar.test
     &lt;Directory /var/www/html/>
       Options FollowSymlinks
       AllowOverride All
       Require all granted
     &lt;/Directory>
     ErrorLog ${APACHE_LOG_DIR}/nextcloud.osradar.test_error.log
     CustomLog ${APACHE_LOG_DIR}/nextcloud.osradar.test_access.log combined
     &lt;Location "/">
         ProxyPass "http://localhost:1234/"
         ProxyPassReverse "http://localhost:1234/" 
     &lt;/Location>
&lt;/Virtualhost></pre>



<figure class="wp-block-image"><img loading="lazy" width="897" height="376" src="https://www.osradar.com/wp-content/uploads/2019/10/3-14.png" alt="3.- Creating a new virtual host for Nextcloud" class="wp-image-14884" srcset="https://www.osradar.com/wp-content/uploads/2019/10/3-14.png 897w, https://www.osradar.com/wp-content/uploads/2019/10/3-14-300x126.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/3-14-768x322.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/3-14-696x292.png 696w" sizes="(max-width: 897px) 100vw, 897px" /><figcaption>3.- Creating a new virtual host for Nextcloud</figcaption></figure>



<p>Then, save the changes and close the file.</p>



<p>So, enable the new Virtual host.</p>



<pre class="wp-block-preformatted">:~$ sudo ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2</pre>



<h2>Complete the installation</h2>



<p>Now, open your web browser and you will see the main page. Just type your database credentials and complete the installation.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="505" src="https://www.osradar.com/wp-content/uploads/2019/10/4-12-1024x505.png" alt="4.- Nextcloud main page" class="wp-image-14886" srcset="https://www.osradar.com/wp-content/uploads/2019/10/4-12-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2019/10/4-12-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/4-12-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/4-12-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/10/4-12-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/4-12-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2019/10/4-12-851x420.png 851w, https://www.osradar.com/wp-content/uploads/2019/10/4-12.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Nextcloud main page</figcaption></figure>



<p>In this step, I want to stop for a while. On the host, we do not type <code>localhost</code> but we refer to db which is where MariaDB is &#8220;installed&#8221;. So, the port is 3306 because it is the default and in the <code>docker-compose.yml</code> file we do not specify another one.</p>



<p>Then the installation will begin and you will see the dashboard.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="503" src="https://www.osradar.com/wp-content/uploads/2019/10/5-11-1024x503.png" alt="5.- Nextcloud using Docker compose" class="wp-image-14888" srcset="https://www.osradar.com/wp-content/uploads/2019/10/5-11-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2019/10/5-11-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/5-11-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/5-11-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/10/5-11-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/10/5-11-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/5-11-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2019/10/5-11-855x420.png 855w, https://www.osradar.com/wp-content/uploads/2019/10/5-11.png 1360w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Nextcloud using Docker compose</figcaption></figure>



<p>And that is it. You can read more about <a rel="noreferrer noopener" aria-label="Docker (opens in a new tab)" href="https://www.docker.com/" target="_blank">Docker</a> on the project website. Or about <a rel="noreferrer noopener" aria-label="docker compose (opens in a new tab)" href="https://docs.docker.com/compose/" target="_blank">docker compose</a>.</p>



<h2>Conclusion</h2>



<p>Docker we already know how powerful he is and today we have seen a bit of what can be done. In a few minutes, we can have in our server a Nextcloud instance working without any problem. So let&#8217;s make the most of it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/nextcloud-docker-compose/">Nextcloud using Docker compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/nextcloud-docker-compose/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Install Nextcloud on CentOS 8 /RHEL 8 / Oracle Linux 8</title>
		<link>https://www.osradar.com/install-nextcloud-centos-8-rhel-8-oracle-linux-8/</link>
					<comments>https://www.osradar.com/install-nextcloud-centos-8-rhel-8-oracle-linux-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 18 Aug 2019 23:32:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13014</guid>

					<description><![CDATA[<p>Nextcloud is a very useful application that allows us to create a private cloud. Thanks to it, any company can create a server dedicated to its data. So you will have absolute control of them. This is important because privacy and file security are currently highly valued. But it is also quite useful if we [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-centos-8-rhel-8-oracle-linux-8/">Install Nextcloud on CentOS 8 /RHEL 8 / Oracle Linux 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://nextcloud.com/">Nextcloud</a> is a very useful application that allows us to create a private cloud. Thanks to it, any company can create a server dedicated to its data. So you will have absolute control of them. This is important because privacy and file security are currently highly valued. But it is also quite useful if we have a personal server and we want to have our data backed up without having to entrust our data to third parties. Anyway, in this post, you will learn to install Nextcloud on CentOS 8 / RHEL 8.</p>
<h2>Install Nextcloud on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>Nextcloud is a web application built with PHP. Then we will have to configure a web server for it. So we&#8217;ll install <a href="https://www.osaradar.com/tag/nginx/">Nginx</a> + <a href="https://www.osradar.com/tag/php/">PHP</a> + <a href="https://www.osradar.com/tag/mariadb/">MariaDB</a>. But we will also create a Server block for it.</p>
<p>So let&#8217;s go for it.</p>
<h3>1) Install Nginx and PHP</h3>
<p>So, the first step is to install Nginx and PHP. Let&#8217;s start with Nginx. Open a terminal and run the following:</p>
<pre>:~$ su
:~# dnf install nginx</pre>
<p><figure id="attachment_13051" aria-describedby="caption-attachment-13051" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13051" src="https://www.osradar.com/wp-content/uploads/2019/08/1-10.jpeg" alt="1.- Install Nginx on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1366" height="708" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-10.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/1-10-300x155.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-10-768x398.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-10-1024x531.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-10-696x361.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-10-1068x554.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/1-10-810x420.jpeg 810w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13051" class="wp-caption-text">1.- Install Nginx on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Then, start and enable the service. Next, add a firewall rule to allow access to Nginx.</p>
<pre>:~# systemctl start nginx
:~# systemctl enable nginx
:~# firewall-cmd --permanent --add-service=http
success
:~# firewall-cmd --permanent --add-port=9000/tcp
:~# firewall-cmd --reload
success</pre>
<p>Now, you can open the web browser and go to <code>http://your-server</code>. You will see something like this:</p>
<p><figure id="attachment_13052" aria-describedby="caption-attachment-13052" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13052" src="https://www.osradar.com/wp-content/uploads/2019/08/2-1.png" alt="2.- Nginx is working" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13052" class="wp-caption-text">2.- Nginx is working</figcaption></figure></p>
<p>Now, you need to install PHP. So, run the following command:</p>
<pre>:~# dnf install php php-mysqlnd php-intl php-curl php-json php-gd php-xml php-mbstring php-zip php-fpm php-cli</pre>
<p><figure id="attachment_13053" aria-describedby="caption-attachment-13053" style="width: 1361px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13053" src="https://www.osradar.com/wp-content/uploads/2019/08/3-10.jpeg" alt="3.- Install PHP on CentOS 8 / RHEL 8/ Oracle Linux 8" width="1361" height="620" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-10.jpeg 1361w, https://www.osradar.com/wp-content/uploads/2019/08/3-10-300x137.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-10-768x350.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-10-1024x466.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-10-696x317.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-10-1068x487.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/3-10-922x420.jpeg 922w" sizes="(max-width: 1361px) 100vw, 1361px" /><figcaption id="caption-attachment-13053" class="wp-caption-text">3.- Install PHP on CentOS 8 / RHEL 8/ Oracle Linux 8</figcaption></figure></p>
<p>Now, on the file <code>/etc/php.ini</code> change the following value:</p>
<pre>:~# nano /etc/php.ini
cgi.fix_pathinfo=0</pre>
<p>Then, save the changes and close the file. On the file <code>/etc/php-fpm.d/www.conf</code> changes these values:</p>
<pre>:~# nano /etc/php-fpm.d/www.conf
user = nginx
group = nginx 
pm.min_spare_servers = 5	 	 
pm.max_spare_servers = 35
listen = 127.0.0.1:9000</pre>
<p>Again, save the changes and close the file. After that, start the php-fpm service and restart the Nginx service by running the following commands:</p>
<pre>:~# systemctl start php-fpm
:~# systemctl enable php-fpm
:~# systemctl restart nginx</pre>
<p>So, Nginx and PHP are working fine.</p>
<h3>2) Install and configure MariaDB</h3>
<p>Now it is necessary to install MariaDB because Nextcloud requires a database manager. To do this, run the following command:</p>
<pre>:~# dnf install mariadb-server</pre>
<p><figure id="attachment_13054" aria-describedby="caption-attachment-13054" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13054" src="https://www.osradar.com/wp-content/uploads/2019/08/4-8.jpeg" alt="4.- Install MariaDB on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1366" height="678" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-8.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/4-8-300x149.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-8-768x381.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-8-1024x508.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-8-324x160.jpeg 324w, https://www.osradar.com/wp-content/uploads/2019/08/4-8-696x345.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-8-1068x530.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/4-8-846x420.jpeg 846w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13054" class="wp-caption-text">4.- Install MariaDB on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Then, start and enable the service.</p>
<pre>:~# systemctl enable mariadb
:~# systemctl start mariadb</pre>
<p>After that, you need to set a root password for MariaDB. You can do it by using the <code>mysql_secure_installation</code> script. Moreover, you can secure the installation.</p>
<pre>:~# mysql_secure_installation</pre>
<p>And answer the following question:</p>
<pre>Remove anonymous users? Y
Disallow root login remotely? Y
Remove test database and access to it? Y
Reload privilege tables now? Y</pre>
<p><figure id="attachment_13055" aria-describedby="caption-attachment-13055" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13055" src="https://www.osradar.com/wp-content/uploads/2019/08/5-3.jpeg" alt="5.- Secure the MariaDB installation" width="1366" height="707" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-3.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-300x155.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-768x397.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-1024x530.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-696x360.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-1068x553.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-811x420.jpeg 811w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13055" class="wp-caption-text">5.- Secure the MariaDB installation</figcaption></figure></p>
<p>Now, create a new user and database for Nextcloud. So, access to the MariaDB console. Next, run the following commands:</p>
<pre>:~# mysql -u root -p
&gt; CREATE DATABASE nextcloud;
&gt; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost' IDENTIFIED BY 'nextcloudpss';
&gt; FLUSH PRIVILEGES;
&gt; exit;</pre>
<p>Now, you can install Nextcloud.</p>
<h3>3) Install MariaDB on CentOS 8 / RHEL 8 / Oracle Linux 8</h3>
<p>Now we can start the installation. Make sure to install <code>wget</code> and <code>unzip</code>. Then, use it to start the download.</p>
<pre>:~# cd /tmp/
:~# wget -c https://download.nextcloud.com/server/releases/nextcloud-16.0.3.zip</pre>
<p><figure id="attachment_13056" aria-describedby="caption-attachment-13056" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13056" src="https://www.osradar.com/wp-content/uploads/2019/08/6-1.jpeg" alt="6.- Download and install Nextcloud on CentOS / RHEL 8 / Oracle Linux 8" width="1366" height="285" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-1.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-300x63.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-768x160.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-1024x214.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-696x145.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-1068x223.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13056" class="wp-caption-text">6.- Download and install Nextcloud on CentOS / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Then, decompress the folder. Move it to the Nginx document root and set the right permissions.</p>
<pre>:~# unzip nextcloud-16.0.3.zip
:~# mv nextcloud /usr/share/nginx/html/
:~# chown -R nginx:nginx /usr/share/nginx/html/
:~# chmod 755 -R /usr/share/nginx/html/</pre>
<p>Now, we need to create a new Server Block for Nextcloud.</p>
<pre>:~# nano /etc/nginx/conf.d/nextcloud.local.conf</pre>
<p>And add the following:</p>
<pre>server {
   server_name nextcloud.local;
   root /usr/share/nginx/html/nextcloud;

   location / {
       index index.html index.htm index.php;
       rewrite ^ /index.php$request_uri;
   }
   
   location ~ \.php$ {
      include /etc/nginx/fastcgi_params;
      fastcgi_pass 127.0.0.1:9000;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
   }
}</pre>
<p><figure id="attachment_13057" aria-describedby="caption-attachment-13057" style="width: 857px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13057" src="https://www.osradar.com/wp-content/uploads/2019/08/7.jpeg" alt="7.- Creating a new server block for Nextcloud" width="857" height="304" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7.jpeg 857w, https://www.osradar.com/wp-content/uploads/2019/08/7-300x106.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-768x272.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-696x247.jpeg 696w" sizes="(max-width: 857px) 100vw, 857px" /><figcaption id="caption-attachment-13057" class="wp-caption-text">7.- Creating a new server block for Nextcloud</figcaption></figure></p>
<p>Save the changes and close the file.</p>
<p>Finally, restart the Nginx and the PHP-fpm services.</p>
<pre>:~# systemctl restart nginx
:~# systemctl restart php-fpm</pre>
<h3>4) Install Nextcloud on CentOS 8 / RHEL 8 / Oracle Linux 8 (II)</h3>
<p>So, complete the installation using the web browser. And you will see this:</p>
<p><figure id="attachment_13058" aria-describedby="caption-attachment-13058" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13058" src="https://www.osradar.com/wp-content/uploads/2019/08/8-4.png" alt="8.- Install Nextcloud on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1365" height="663" srcset="https://www.osradar.com/wp-content/uploads/2019/08/8-4.png 1365w, https://www.osradar.com/wp-content/uploads/2019/08/8-4-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/8-4-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/8-4-1024x497.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/8-4-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/8-4-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/8-4-865x420.png 865w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-13058" class="wp-caption-text">8.- Install Nextcloud on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>So, type your MariaDB credentials and start the installation.</p>
<p><figure id="attachment_13059" aria-describedby="caption-attachment-13059" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13059" src="https://www.osradar.com/wp-content/uploads/2019/08/9-2.png" alt="9.- Installing Nextcloud" width="1365" height="663" srcset="https://www.osradar.com/wp-content/uploads/2019/08/9-2.png 1365w, https://www.osradar.com/wp-content/uploads/2019/08/9-2-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/9-2-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/9-2-1024x497.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/9-2-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/9-2-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/9-2-865x420.png 865w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-13059" class="wp-caption-text">9.- Installing Nextcloud</figcaption></figure></p>
<p>When the installation is finished, you will see the following screen.</p>
<p><figure id="attachment_13060" aria-describedby="caption-attachment-13060" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13060" src="https://www.osradar.com/wp-content/uploads/2019/08/10-1.png" alt="10.- Nextcloud log in" width="1365" height="663" srcset="https://www.osradar.com/wp-content/uploads/2019/08/10-1.png 1365w, https://www.osradar.com/wp-content/uploads/2019/08/10-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/10-1-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/10-1-1024x497.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/10-1-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/10-1-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/10-1-865x420.png 865w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-13060" class="wp-caption-text">10.- Nextcloud log in</figcaption></figure></p>
<p>After that, you can start to use Nextcloud.</p>
<p><figure id="attachment_13061" aria-describedby="caption-attachment-13061" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13061" src="https://www.osradar.com/wp-content/uploads/2019/08/11-1.png" alt="11.- Nextcloud working" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/11-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/11-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/11-1-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/11-1-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/11-1-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/11-1-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/11-1-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13061" class="wp-caption-text">11.- Nextcloud working</figcaption></figure></p>
<p>So, that is it.</p>
<h2>Conclusion</h2>
<p>Nextcloud is one of those applications that are necessary for any company. Because it is possible to create a private cloud with all the features of the most popular services. Nextcloud even has clients for other platforms such as Android and iOS.</p>
<p>So, you can also read <a href="https://www.osradar.com/install-nextcloud-on-debian-10/">how to install Nextcloud on Debian 10?</a></p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-centos-8-rhel-8-oracle-linux-8/">Install Nextcloud on CentOS 8 /RHEL 8 / Oracle Linux 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nextcloud-centos-8-rhel-8-oracle-linux-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Install Nextcloud on Debian 10</title>
		<link>https://www.osradar.com/install-nextcloud-on-debian-10/</link>
					<comments>https://www.osradar.com/install-nextcloud-on-debian-10/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 15 Aug 2019 23:07:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12998</guid>

					<description><![CDATA[<p>Today, many companies do not rely on the most popular cloud hosting services. This is due to the sensitivity of the stored data as well as the security scandals of the data. For this reason, it is more and more common to find large or medium-sized companies that prefer to use software that allows the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-on-debian-10/">Install Nextcloud on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, many companies do not rely on the most popular cloud hosting services. This is due to the sensitivity of the stored data as well as the security scandals of the data. For this reason, it is more and more common to find large or medium-sized companies that prefer to use software that allows the removal of a private cloud. Whether for an intranet or more common for Internet service. That is to say, the administration depends exclusively on the company. Of these programs, Nextcloud stands out. With this in mind, this post will help you install Nextcloud on Debian 10. This way you will be able to use a private cloud yourself.</p>
<h2>Nextcloud on Debian 10: a great solution for privates clouds</h2>
<p>There are many data storage services in clouds. Technological giants like Apple, Google and Microsoft have them. However, there are people or companies that want to have absolute control of their own data. Nextcloud is there for that.</p>
<p><a href="https://nextcloud.com/" rel="noopener">Nextcloud</a> is an open-source web application that allows us to create our own private cloud. It was created with the primary objective that it is the user who has absolute control of the files.</p>
<p>Many companies install Nextcloud on their servers to create their private clouds. This way they can rely on their own data management. It is even of great help in educational or personal projects.</p>
<p>Today, you will learn how to install it on Debian 10.</p>
<h2>Install Nextcloud on Debian 10</h2>
<h3>1) Install LAMP on Debian 10</h3>
<p>Nextcloud is a web application created in PHP. In addition to this, it uses a database manager to round off its operation. That is, the first requirement is to install a LAMP server on Debian 10.</p>
<p>For it, you will not have problems because we have created two tutorials for you.</p>
<p>Read <a href="https://www.osradar.com/how-to-install-debian-10-buster/" rel="noopener"><strong>How to install Debian 10 Buster?</strong></a></p>
<p>And,</p>
<p><a href="https://www.osradar.com/install-lamp-on-debian-10/" rel="noopener"><strong>How to install LAMP on Debian 10 Buster?</strong></a></p>
<p>Now, in the PHP section, you have to install the following modules.</p>
<pre>php7.3 libapache2-mod-php7.3 php7.3-mysql php7.3-intl php7.3-curl php7.3-json php7.3-gd php7.3-xml php7.3-mb php7.3-zip</pre>
<h3>2) Working with MariaDB</h3>
<p><a href="https://www.osaradar.com/tag/mariadb/" rel="noopener">MariaDB</a> is a relational database manager that uses the <a href="https://www.osradar.com/tag/sql/" rel="noopener">SQL</a> language. It is one of the most popular that there is and Nextcloud uses it to store data needed for the application.</p>
<p>As a good practice, it is recommended to create a new user dedicated to Nextcloud. Also, create the database you will use. To do this, go to the MariaDB console and type the following commands:</p>
<pre>:~$ sudo mysql -u root -p
&gt; CREATE DATABASE nextcloud;
&gt; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost' IDENTIFIED BY 'nextcloudpss';
&gt; FLUSH PRIVILEGES;
&gt; exit;</pre>
<p><figure id="attachment_13015" aria-describedby="caption-attachment-13015" style="width: 1238px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13015" src="https://www.osradar.com/wp-content/uploads/2019/08/1-8.jpeg" alt="1.- Creating the new user and database for Nextcloud" width="1238" height="399" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-8.jpeg 1238w, https://www.osradar.com/wp-content/uploads/2019/08/1-8-300x97.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-8-768x248.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-8-1024x330.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-8-696x224.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-8-1068x344.jpeg 1068w" sizes="(max-width: 1238px) 100vw, 1238px" /><figcaption id="caption-attachment-13015" class="wp-caption-text">1.- Creating the new user and database for Nextcloud</figcaption></figure></p>
<h3>3) Download and install Nextcloud on Debian 10</h3>
<p>After meeting the prerequisites, we can start the download of Nextcloud and its subsequent installation. However, first, make sure you have installed <code>wget</code> and <code>unzip</code>.</p>
<pre>:~$ sudo apt install wget unzip</pre>
<p>Then, download Nextcloud:</p>
<pre>:~$ cd /tmp/
:~$ wget -c https://download.nextcloud.com/server/releases/nextcloud-16.0.3.zip</pre>
<p><figure id="attachment_13016" aria-describedby="caption-attachment-13016" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13016" src="https://www.osradar.com/wp-content/uploads/2019/08/2-8.jpeg" alt="2.- Download and install Nextcloud on Debian 10" width="1366" height="344" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-8.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/2-8-300x76.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-8-768x193.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-8-1024x258.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-8-696x175.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-8-1068x269.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13016" class="wp-caption-text">2.- Download and install Nextcloud on Debian 10</figcaption></figure></p>
<p>Now, you can extract the file. Next, move it to <code>/var/www/html</code> and set the right permission to the folder.</p>
<pre>:~$ unzip nextcloud-16.0.3.zip
:~$ sudo mv nextcloud /var/www/html/
:~$ sudo chown -R www-data:www-data /var/www/html/
:~$ sudo chmod 755 -R /var/www/html/</pre>
<p>The next step is to create a new virtual host for Nextcloud. This will allow the use of some PHP modules as well as being able to invoke it from a DNS name.</p>
<pre>:~$ sudo nano /etc/apache2/sites-available/nextcloud.conf</pre>
<p>And add the following:</p>
<pre> &lt;VirtualHost *:80&gt;
     ServerAdmin admin@your_domain.com
      DocumentRoot /var/www/html/nextcloud
     ServerName your-domain.com

     &lt;Directory /var/www/html/nextcloud&gt;
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     &lt;/Directory&gt;

     ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
     CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined

&lt;/VirtualHost&gt;</pre>
<p><figure id="attachment_13017" aria-describedby="caption-attachment-13017" style="width: 944px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13017" src="https://www.osradar.com/wp-content/uploads/2019/08/3-8.jpeg" alt="3.- Creating a new virtualhost for Nextcloud" width="944" height="285" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-8.jpeg 944w, https://www.osradar.com/wp-content/uploads/2019/08/3-8-300x91.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-8-768x232.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-8-696x210.jpeg 696w" sizes="(max-width: 944px) 100vw, 944px" /><figcaption id="caption-attachment-13017" class="wp-caption-text">3.- Creating a new virtual host for Nextcloud</figcaption></figure></p>
<p>Replace &#8220;your-domain&#8221; by yours. Save the changes and close the file.</p>
<p>To enable this new virtual host, run the following commands:</p>
<pre>:~$ sudo ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2</pre>
<p><figure id="attachment_13018" aria-describedby="caption-attachment-13018" style="width: 879px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13018" src="https://www.osradar.com/wp-content/uploads/2019/08/4-6.jpeg" alt="4.- Enabling the new virtualhost" width="879" height="151" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-6.jpeg 879w, https://www.osradar.com/wp-content/uploads/2019/08/4-6-300x52.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-6-768x132.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-6-696x120.jpeg 696w" sizes="(max-width: 879px) 100vw, 879px" /><figcaption id="caption-attachment-13018" class="wp-caption-text">4.- Enabling the new virtual host</figcaption></figure></p>
<p>Now, complete the installation.</p>
<h3>4) Install Nextcloud on Debian 10 (II)</h3>
<p>So, open your web browser and go to your server. You will see this</p>
<p><figure id="attachment_13019" aria-describedby="caption-attachment-13019" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13019" src="https://www.osradar.com/wp-content/uploads/2019/08/5-3.png" alt="5.- Nextcloud on Debian 10" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/5-3-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13019" class="wp-caption-text">5.- Nextcloud on Debian 10</figcaption></figure></p>
<p>On that screen, you can create the administrator account. If you scroll down, you can write the parameters of the database.</p>
<p><figure id="attachment_13020" aria-describedby="caption-attachment-13020" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13020" src="https://www.osradar.com/wp-content/uploads/2019/08/6-2.png" alt="6.- Installing Nextcloud using the web interface" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/6-2-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-2-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-2-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/6-2-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/6-2-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/6-2-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13020" class="wp-caption-text">6.- Installing Nextcloud using the web interface</figcaption></figure></p>
<p>Then, the installer will start the installation. After that, you will see the folllowing screens.</p>
<p><figure id="attachment_13021" aria-describedby="caption-attachment-13021" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13021" src="https://www.osradar.com/wp-content/uploads/2019/08/7-2.png" alt="7.- Nextcloud welcome screen" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13021" class="wp-caption-text">7.- Nextcloud welcome screen</figcaption></figure></p>
<p><figure id="attachment_13022" aria-describedby="caption-attachment-13022" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13022" src="https://www.osradar.com/wp-content/uploads/2019/08/8-2.png" alt="8.- Nextcloud working" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/8-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/8-2-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/8-2-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/8-2-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/8-2-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/8-2-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/8-2-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13022" class="wp-caption-text">8.- Nextcloud working</figcaption></figure></p>
<p>So, Nextcloud is running properly. Enjoy it.</p>
<h2>Conclusion</h2>
<p>Nextcloud is a very useful tool for small and medium businesses that want to create a private cloud quickly and securely. A secure operating system such as Debian 10 Buster is also required.</p>
<p>Please share this psot and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-on-debian-10/">Install Nextcloud on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nextcloud-on-debian-10/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Nextcloud 16 on Debian 9?</title>
		<link>https://www.osradar.com/install-nextcloud-16-on-debian-9/</link>
					<comments>https://www.osradar.com/install-nextcloud-16-on-debian-9/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 17 May 2019 00:22:11 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Stretch]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11097</guid>

					<description><![CDATA[<p>One of the most popular solutions to create a private cloud is found in Nextcloud, but recently saw the light version 16. This version comes loaded with important news, so in this post, we will show you how to install Nextcloud 16 in Debian 9. Many companies are concerned about the security of their data, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-16-on-debian-9/">How to install Nextcloud 16 on Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>One of the most popular solutions to create a private cloud is found in Nextcloud, but recently saw the light version 16. This version comes loaded with important news, so in this post, we will show you how to install <a href="https://nextcloud.com/" target="_blank" rel="noopener noreferrer">Nextcloud</a> 16 in Debian 9.</p>
<p>Many companies are concerned about the security of their data, this is vital to maintain and safeguard the health of the company. Fortunately, solutions are available for it, as Nextcloud. With Nextcloud you can build your own professional and extensible cloud thanks to numerous plugins. It is one of the best-known applications within Linux for its extension, practicality, and ease of use.</p>
<p>On the other hand, <a href="https://www.osradar.com/debian-9-8-has-been-released/" target="_blank" rel="noopener noreferrer">Debian 9 is at its best</a> and is a highly recommended option to install a Nextcloud server.</p>
<p>So, let us start.</p>
<h2>1. Install Apache web server + PHP</h2>
<p>To install correctly, a web server is required. In this case we will choose Apache because it is the most common and simple to use.</p>
<p>So, open a terminal or connect to your VPS using SSH and type:</p>
<pre>:~$ su
:~# apt install apache2</pre>
<p><figure id="attachment_11099" aria-describedby="caption-attachment-11099" style="width: 1002px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11099" src="https://www.osradar.com/wp-content/uploads/2019/02/1-18.png" alt="1.- Install Apache" width="1002" height="349" srcset="https://www.osradar.com/wp-content/uploads/2019/02/1-18.png 1002w, https://www.osradar.com/wp-content/uploads/2019/02/1-18-300x104.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/1-18-768x267.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/1-18-696x242.png 696w" sizes="(max-width: 1002px) 100vw, 1002px" /><figcaption id="caption-attachment-11099" class="wp-caption-text">1.- Install Apache</figcaption></figure></p>
<p>By default, Debian starts and enables the service so it should already be running. On the other hand, it is also necessary to install PHP and some of its modules. Debian has older versions of PHP in its repositories so let&#8217;s upgrade to PHP 7.3. So, add the repository.</p>
<pre>:~# wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
:~# echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/ondrej.list
:~# apt install apt-transport-https
:~# apt update</pre>
<p><figure id="attachment_11100" aria-describedby="caption-attachment-11100" style="width: 812px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11100" src="https://www.osradar.com/wp-content/uploads/2019/02/2-16.png" alt="2.- Add the PHP repository" width="812" height="290" srcset="https://www.osradar.com/wp-content/uploads/2019/02/2-16.png 812w, https://www.osradar.com/wp-content/uploads/2019/02/2-16-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/2-16-768x274.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/2-16-696x249.png 696w" sizes="(max-width: 812px) 100vw, 812px" /><figcaption id="caption-attachment-11100" class="wp-caption-text">2.- Add the PHP repository</figcaption></figure></p>
<p>Then, install PHP 7.3.</p>
<pre>:~# apt install libapache2-mod-php php7.3 php7.3-xml php7.3-curl php7.3-gd php7.3 php7.3-cgi php7.3-cli php7.3-zip php7.3-mysql php7.3-mbstring</pre>
<p><figure id="attachment_12099" aria-describedby="caption-attachment-12099" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12099 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/333.png" alt="3.- Install PHP 7.3" width="1365" height="308" srcset="https://www.osradar.com/wp-content/uploads/2019/05/333.png 1365w, https://www.osradar.com/wp-content/uploads/2019/05/333-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/333-768x173.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/333-1024x231.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/333-696x157.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/333-1068x241.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12099" class="wp-caption-text">3.- Install PHP 7.3</figcaption></figure></p>
<p>Next, it is necessary to modify some of the PHP options. To do this edit the configuration file.</p>
<pre>:~# nano /etc/php/7.3/apache2/php.ini</pre>
<p><figure id="attachment_12100" aria-describedby="caption-attachment-12100" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12100 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/44444.png" alt="4.- PHP configuration file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/05/44444.png 1366w, https://www.osradar.com/wp-content/uploads/2019/05/44444-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/44444-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/44444-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/44444-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/44444-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/05/44444-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12100" class="wp-caption-text">4.- PHP configuration file</figcaption></figure></p>
<p>And make the following changes:</p>
<pre>memory_limit = 512M
upload_max_filesize = 200M
max_execution_time = 360
post_max_size = 200M</pre>
<p>Do not forget, also edit your timezome. You can use CTRL + W to find the options quickly.</p>
<p>Finally, restart Apache to enable the PHP support.</p>
<pre>:~# systemctl restart apache2</pre>
<p><em><strong>NOTE: If you are using a firewall, remember to enable ports 80 and 443 for Apache to work properly.</strong></em></p>
<h2>2. Install and configure MariaDB</h2>
<p>The next step to install Nextcloud 16 on Debian 9 is to install and configure MariaDB.</p>
<p>Nextclooud 16 needs a powerful database manager to store the generated data. It is compatible with several, but MariaDB is in the Debian repositories and is MySQL compatible. So we will install this one.</p>
<pre>:~# apt install mariadb-server</pre>
<p><figure id="attachment_11103" aria-describedby="caption-attachment-11103" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11103" src="https://www.osradar.com/wp-content/uploads/2019/02/5-14.png" alt="5.- Mariadb" width="1365" height="435" srcset="https://www.osradar.com/wp-content/uploads/2019/02/5-14.png 1365w, https://www.osradar.com/wp-content/uploads/2019/02/5-14-300x96.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/5-14-768x245.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/5-14-1024x326.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/5-14-696x222.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/5-14-1068x340.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/5-14-1318x420.png 1318w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11103" class="wp-caption-text">5.- Mariadb</figcaption></figure></p>
<p>Next, you need to set the root password and other things. So, run the following:</p>
<pre>:~# mysql_secure_installation</pre>
<p><figure id="attachment_11104" aria-describedby="caption-attachment-11104" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11104" src="https://www.osradar.com/wp-content/uploads/2019/02/6-13.png" alt="6.- mysql_secure_installation" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/6-13.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/6-13-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/6-13-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/6-13-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/6-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/6-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/6-13-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11104" class="wp-caption-text">6.- mysql_secure_installation</figcaption></figure></p>
<p>As you can see in the image, after defining the root password, you will be asked other questions about the configuration of MariaDB. For this post the answers are irrelevant, but we will answer like this: Y, N, Y, Y.</p>
<p>Then, create a new user and database for Nextcloud 16.</p>
<pre>:~# mysql -u root -p
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextuser'@'localhost' IDENTIFIED BY 'nextpss';
FLUSH PRIVILEGES;
exit;</pre>
<p><figure id="attachment_11105" aria-describedby="caption-attachment-11105" style="width: 903px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-11105 size-full" src="https://www.osradar.com/wp-content/uploads/2019/02/7-13.png" alt="7.- Creating a new user for nextcloud 16" width="903" height="426" srcset="https://www.osradar.com/wp-content/uploads/2019/02/7-13.png 903w, https://www.osradar.com/wp-content/uploads/2019/02/7-13-300x142.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/7-13-768x362.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/7-13-696x328.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/7-13-890x420.png 890w" sizes="(max-width: 903px) 100vw, 903px" /><figcaption id="caption-attachment-11105" class="wp-caption-text">7.- Creating a new user for nextcloud 16</figcaption></figure></p>
<p>Now,we can install Nextcloud 16 on Debian 9.</p>
<h2>3. Install Nextcloud 16 on Debian 9</h2>
<p>Now, we can download it using wget and unzip to decompress it. Install these packages first.</p>
<pre>:~# apt install unzip</pre>
<p>Next, download it.</p>
<pre>:~# cd /opt/
:~# wget https://download.nextcloud.com/server/releases/nextcloud-16.0.0.zip</pre>
<p><figure id="attachment_12101" aria-describedby="caption-attachment-12101" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12101 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/88888.png" alt="8.- Download and install Nextcloud 16" width="1365" height="303" srcset="https://www.osradar.com/wp-content/uploads/2019/05/88888.png 1365w, https://www.osradar.com/wp-content/uploads/2019/05/88888-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/88888-768x170.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/88888-1024x227.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/88888-696x154.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/88888-1068x237.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12101" class="wp-caption-text">8.- Download and install Nextcloud 16</figcaption></figure></p>
<p>After that, decompress it.</p>
<pre>:~# unzip nextcloud-16.0.0.zip</pre>
<p><figure id="attachment_11107" aria-describedby="caption-attachment-11107" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11107" src="https://www.osradar.com/wp-content/uploads/2019/02/9-10.png" alt="9.- Decompress the file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/02/9-10.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/9-10-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/9-10-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/9-10-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/9-10-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/9-10-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/9-10-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11107" class="wp-caption-text">9.- Decompress the file</figcaption></figure></p>
<p>Then, move it to the <code>/var/www/html/</code> directory and changes the permissions.</p>
<pre>:~# mv nextcloud/ /var/www/html/
:~# chown -R www-data:www-data /var/www/html/nextcloud/
:~# chmod -R 755 /var/www/html/nextcloud/</pre>
<p><figure id="attachment_11108" aria-describedby="caption-attachment-11108" style="width: 826px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-11108 size-full" src="https://www.osradar.com/wp-content/uploads/2019/02/10-12.png" alt="10.- Installing nextcloud 16" width="826" height="143" srcset="https://www.osradar.com/wp-content/uploads/2019/02/10-12.png 826w, https://www.osradar.com/wp-content/uploads/2019/02/10-12-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/10-12-768x133.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/10-12-696x120.png 696w" sizes="(max-width: 826px) 100vw, 826px" /><figcaption id="caption-attachment-11108" class="wp-caption-text">10.- Installing nextcloud 16</figcaption></figure></p>
<p>Now, you can open your web browser and complete the installation using the Nextcloud 16 web interface. Go to <code>http://SERVER_IP/nextcloud</code> and set the required information. For example, the MariaDB credentials or creating the admin account.</p>
<p><figure id="attachment_11109" aria-describedby="caption-attachment-11109" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11109" src="https://www.osradar.com/wp-content/uploads/2019/02/11-8.png" alt="11.- Nextcloud web interface" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/11-8.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/11-8-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/11-8-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/11-8-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/11-8-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/11-8-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/11-8-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/11-8-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11109" class="wp-caption-text">11.- Nextcloud web interface</figcaption></figure></p>
<p>Next, you will see the dashboard.</p>
<p><figure id="attachment_11110" aria-describedby="caption-attachment-11110" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-11110 size-full" src="https://www.osradar.com/wp-content/uploads/2019/02/12-7.png" alt="12.- install Nextcloud 16 - The main screen" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/02/12-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/02/12-7-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/12-7-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/12-7-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/12-7-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/02/12-7-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/12-7-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/12-7-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11110" class="wp-caption-text">12.- install Nextcloud 16 &#8211; The main screen</figcaption></figure></p>
<p>And that is it. Now, you can enjoy Nextcloud 16 on Debian 9.</p>
<h2>Install Nextcloud 16. Conclusion</h2>
<p>Nextcloud 16 is a good alternative to set up your own private cloud at home or for your business. It is reliable, fast, secure and free, which makes it ideal for small businesses.</p>
<p>Please share this post with your friends.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-16-on-debian-9/">How to install Nextcloud 16 on Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nextcloud-16-on-debian-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Pydio on CentOS 7?</title>
		<link>https://www.osradar.com/how-to-install-pydio-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-pydio-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 05 Mar 2019 15:03:07 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[Owncloud]]></category>
		<category><![CDATA[Pydio]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11293</guid>

					<description><![CDATA[<p>Data is essential in a company. Luckily, there are open source tools that allow us to create our own data servers in the best Dropbox or Google Drive style. Among them we have Owncloud or Nextcloud, but there is an alternative to them that puts more focus on companies. With this in mind, today I [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-pydio-on-centos-7/">How to install Pydio on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Data is essential in a company. Luckily, there are open source tools that allow us to create our own data servers in the best Dropbox or Google Drive style. Among them we have Owncloud or Nextcloud, but there is an alternative to them that puts more focus on companies. With this in mind, today I will teach you how to install Pydio on CentOS 7.</p>
<p><a href="https://pydio.com/" target="_blank" rel="noopener noreferrer">Pydio</a> is an application that allows you to synchronize files between different devices. In general, we can say that it allows us to mount our own cloud. It is a valid and mature alternative to <a href="https://www.osradar.com/how-to-install-owncloud-in-centos-7/" target="_blank" rel="noopener noreferrer">Owncloud</a> and <a href="https://www.osradar.com/how-to-install-nextcloud-in-ubuntu-18-04/" target="_blank" rel="noopener noreferrer">Nextcloud</a>. Like them, it is open source and has a great community support.</p>
<p>So, let us start.</p>
<h1>1. Install Apache web server and PHP</h1>
<p>First, you need to install an http server such as Apache. It is also possible to use Nginx. However, choose Apache.</p>
<p>So, open a terminal or connect to your server and execute these commands:</p>
<pre>:~$ su
:~# yum install httpd</pre>
<p><figure id="attachment_11294" aria-describedby="caption-attachment-11294" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11294" src="https://www.osradar.com/wp-content/uploads/2019/03/1-2.png" alt="1.- Install httpd" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/1-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/1-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/1-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/1-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/1-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/1-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/1-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11294" class="wp-caption-text">1.- Install httpd</figcaption></figure></p>
<p>Then you need to install PHP. The problem here is that the version of PHP that comes with CentOS 7 is very old and needs to be updated through an external repository. To do this, follow <a href="https://www.osradar.com/how-to-install-php-7-on-centos-7-in-an-easy-way/" target="_blank" rel="noopener noreferrer">our guide</a>.</p>
<p>In order for pydio to work optimally, it is necessary to modify some values in the PHP configuration.</p>
<pre>:~# yum install nano
:~# nano /etc/php.ini</pre>
<p>And set this configuration:</p>
<pre>max_execution_time = 300
post_max_size = 200M
upload_max_filesize = 200M
output_buffering = Off</pre>
<p>Using nano you can type CTRL + W and search for the each parameter.</p>
<p>Next, start and enable Apache.</p>
<pre>:~# systemctl enable httpd
:~# systemctl start httpd</pre>
<p>Finally, set the Firewall rule to allow Apache.</p>
<pre>:~# firewall-cmd --add-port=80/tcp --permanent
:~# firewall-cmd --reload</pre>
<p><figure id="attachment_11295" aria-describedby="caption-attachment-11295" style="width: 1070px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11295" src="https://www.osradar.com/wp-content/uploads/2019/03/2-2.png" alt="2.- Working with httpd service" width="1070" height="228" srcset="https://www.osradar.com/wp-content/uploads/2019/03/2-2.png 1070w, https://www.osradar.com/wp-content/uploads/2019/03/2-2-300x64.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/2-2-768x164.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/2-2-1024x218.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/2-2-696x148.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/2-2-1068x228.png 1068w" sizes="(max-width: 1070px) 100vw, 1070px" /><figcaption id="caption-attachment-11295" class="wp-caption-text">2.- Working with httpd service</figcaption></figure></p>
<h1>2. Install MariaDB</h1>
<p>Now you have to install MariaDB to store Pydio&#8217;s data. This is important because otherwise you will not be able to continue.</p>
<p>So let&#8217;s go for it.</p>
<pre>:~# yum install mariadb-server</pre>
<p><figure id="attachment_11296" aria-describedby="caption-attachment-11296" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11296" src="https://www.osradar.com/wp-content/uploads/2019/03/3-2.png" alt="3.- Install mariadb" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/3-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/3-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/3-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/3-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/3-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/3-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/3-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11296" class="wp-caption-text">3.- Install mariadb</figcaption></figure></p>
<p>After that, start and enable the MariaDB service.</p>
<pre>:~# systemctl enable mariadb
:~# systemctl start mariadb</pre>
<p><figure id="attachment_11297" aria-describedby="caption-attachment-11297" style="width: 1020px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11297" src="https://www.osradar.com/wp-content/uploads/2019/03/4-2.png" alt="4.- Enabling mariadb" width="1020" height="146" srcset="https://www.osradar.com/wp-content/uploads/2019/03/4-2.png 1020w, https://www.osradar.com/wp-content/uploads/2019/03/4-2-300x43.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/4-2-768x110.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/4-2-696x100.png 696w" sizes="(max-width: 1020px) 100vw, 1020px" /><figcaption id="caption-attachment-11297" class="wp-caption-text">4.- Enabling mariadb</figcaption></figure></p>
<p>Then, set a root password in order to user MariaDB.</p>
<pre>:~# mysql_secure_installation</pre>
<p><figure id="attachment_11298" aria-describedby="caption-attachment-11298" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11298" src="https://www.osradar.com/wp-content/uploads/2019/03/5-2.png" alt="5.- Mysql_secure_installation" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/5-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/5-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/5-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/5-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/5-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/5-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/5-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11298" class="wp-caption-text">5.- Mysql_secure_installation</figcaption></figure></p>
<p>As you can see in the image, after defining a password for the root user in MariaDB, the script will ask some configuration questions, so I have answered Y, N, Y, Y. Do it as you prefer.</p>
<p>Next, you need to create the new user and database for Pydio.</p>
<pre>:~# mysql -u root -p
myslq&gt; CREATE DATABASE pydiodb;
myslq&gt; GRANT ALL PRIVILEGES ON pydiodb.* TO 'pydiouser'@'localhost' IDENTIFIED BY 'pydiopss';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; exit;</pre>
<p><figure id="attachment_11299" aria-describedby="caption-attachment-11299" style="width: 889px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11299" src="https://www.osradar.com/wp-content/uploads/2019/03/6-1.png" alt="6.- Creating the database" width="889" height="414" srcset="https://www.osradar.com/wp-content/uploads/2019/03/6-1.png 889w, https://www.osradar.com/wp-content/uploads/2019/03/6-1-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/6-1-768x358.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/6-1-696x324.png 696w" sizes="(max-width: 889px) 100vw, 889px" /><figcaption id="caption-attachment-11299" class="wp-caption-text">6.- Creating the database</figcaption></figure></p>
<h1>3. Install Pydio on CentOS 7</h1>
<p>There is a great way to install Pydo and that is through its repository. With this we will be able to install it using yum, the CentOS 7 package manager.</p>
<p>First, add the repository with the following command:</p>
<pre>:~# rpm -Uvh http://dl.ajaxplorer.info/repos/pydio-release-1-1.noarch.rpm</pre>
<p><figure id="attachment_11300" aria-describedby="caption-attachment-11300" style="width: 856px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11300" src="https://www.osradar.com/wp-content/uploads/2019/03/7-1.png" alt="7.- Adding the pydio repository" width="856" height="176" srcset="https://www.osradar.com/wp-content/uploads/2019/03/7-1.png 856w, https://www.osradar.com/wp-content/uploads/2019/03/7-1-300x62.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/7-1-768x158.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/7-1-696x143.png 696w" sizes="(max-width: 856px) 100vw, 856px" /><figcaption id="caption-attachment-11300" class="wp-caption-text">7.- Adding the pydio repository</figcaption></figure></p>
<p>Next update the repositories cache. And install Pydio.</p>
<pre>:~# yum update
:~# yum install pydio</pre>
<p><figure id="attachment_11302" aria-describedby="caption-attachment-11302" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11302" src="https://www.osradar.com/wp-content/uploads/2019/03/9-1.png" alt="9.- Install Pydio on CentOS" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/9-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/9-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/9-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/9-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/9-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/9-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/9-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11302" class="wp-caption-text">9.- Install Pydio on CentOS</figcaption></figure></p>
<p>In order for Apache to run Pydio better, an extra configuration is required. So, use nano to modify the apache file for Pydio.</p>
<pre>:~# nano /etc/httpd/conf.d/pydio.conf</pre>
<p>Comment the default configuration and add the following:</p>
<pre>&lt;Directory /usr/share/pydio&gt;
    Options FollowSymlinks
    AllowOverride none
    Require all granted
&lt;/Directory&gt;</pre>
<p><figure id="attachment_11303" aria-describedby="caption-attachment-11303" style="width: 884px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11303" src="https://www.osradar.com/wp-content/uploads/2019/03/10-1.png" alt="10.- Apache configuration file for pydio" width="884" height="471" srcset="https://www.osradar.com/wp-content/uploads/2019/03/10-1.png 884w, https://www.osradar.com/wp-content/uploads/2019/03/10-1-300x160.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/10-1-768x409.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/10-1-696x371.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/10-1-788x420.png 788w" sizes="(max-width: 884px) 100vw, 884px" /><figcaption id="caption-attachment-11303" class="wp-caption-text">10.- Apache configuration file for pydio</figcaption></figure></p>
<p>Then, restart Apache to apply the changes.</p>
<pre>:~# systemctl restart httpd</pre>
<h1>4. Complete the installation using the web interface</h1>
<p>After doing all of the above, all you have to do is open your web browser and access your server. You can do it through the domain of the IP address.</p>
<p><figure id="attachment_11304" aria-describedby="caption-attachment-11304" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11304" src="https://www.osradar.com/wp-content/uploads/2019/03/11-1.png" alt="11.- Start the wizard" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/03/11-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/11-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/11-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/11-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/11-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/03/11-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/11-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/11-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11304" class="wp-caption-text">11.- Start the wizard</figcaption></figure></p>
<h1>Conclusion</h1>
<p>As we can notice, installing Pydio is an easy matter that can help us in the company&#8217;s data management. It arises as a mature alternative to tools known as Owncloud and Nextcloud.</p>
<p>Please share this post with your friends.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-pydio-on-centos-7/">How to install Pydio on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-pydio-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Nextcloud on Debian 9?</title>
		<link>https://www.osradar.com/install-nextcloud-debian-9/</link>
					<comments>https://www.osradar.com/install-nextcloud-debian-9/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 18 Oct 2018 01:00:39 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6512</guid>

					<description><![CDATA[<p>We recently talked about Nextcloud. A great tool to create personal clouds. Today, I will show you how to install Nextcloud on Debian 9. Nextcloud is an OpenSource application, which allows you to install a private cloud on any server. Many companies that do not wish to entrust their data to third parties, use this [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-debian-9/">How to install Nextcloud on Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We recently <a href="https://www.osradar.com/how-to-install-nextcloud-in-ubuntu-18-04/" rel="noopener">talked</a> about Nextcloud. A great tool to create personal clouds. Today, I will show you how to install Nextcloud on Debian 9.</p>
<p><a href="https://nextcloud.com/" rel="noopener">Nextcloud</a> is an OpenSource application, which allows you to install a private cloud on any server. Many companies that do not wish to entrust their data to third parties, use this tool to access their files over the Internet.</p>
<p>The three aspects that highlight Nextcloud and in turn are powerful reasons to use it are:</p>
<ul>
<li><strong>Control</strong>: You will not entrust your files and data to a third party. In addition, you will be the one who configures the entire service.</li>
<li><strong>Productivity</strong>: Being your own who manages the data, you will reduce access times and thanks to extensions you can increase the power of Nextcloud.</li>
<li><strong>Community</strong>: Nextcloud is quite popular so you won&#8217;t feel alone in using it, on the contrary, you will have a lot of support and documentation.</li>
</ul>
<p>In short, you can visit their website or <a href="https://github.com/nextcloud" rel="noopener">Github</a> site for more useful information. Let&#8217;s start.</p>
<h2>0. Before start&#8230;</h2>
<p>It is easy to install Nextcloud on <a href="https://www.debian.org/index.en.html" rel="noopener">Debian</a> 9 but you should be aware of the following:</p>
<ul>
<li>The Linux terminal is a powerful weapon and it is advisable to have some knowledge about its use.</li>
<li>Commands must be executed as root. Remember that you are going to install and configure packages.</li>
<li>The Debian machine must allow access from ssh. It is very simple <a href="https://www.osradar.com/how-to-enable-ssh-on-ubuntu-18-04/" rel="noopener">this</a> guide can be useful to you.</li>
<li>The purpose of this tutorial is to install Nextcloud 14 on Debian 9 Stretch.</li>
</ul>
<p>No more talking, let&#8217;s get started.</p>
<h2>1.- Upgrade the system</h2>
<p>if I&#8217;m talking about security and information control, then the first logical step to install Nextcloud in Debian is to update all installed packages. This ensures that the latest security patches are available. Simply put, you will have a more secure system.</p>
<p>First, run:</p>
<pre class="">:~$ su
:~# apt update &amp;&amp; apt upgrade</pre>
<p><figure id="attachment_6521" aria-describedby="caption-attachment-6521" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6521" src="https://www.osradar.com/wp-content/uploads/2018/10/1-13.png" alt="1.- Upgrading the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/1-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/1-13-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/1-13-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/1-13-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/1-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/1-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/1-13-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6521" class="wp-caption-text">1.- Upgrading the system</figcaption></figure></p>
<p>With this done you can continue.</p>
<h2>2. Install Apache web server</h2>
<p>Nextcloud is a web application built to be deployed on a web server. In other words, you have to install a basic web infrastructure in order to run it. The first step is to install <a href="https://httpd.apache.org/" rel="noopener">apache web server</a>. Run:</p>
<pre class="">:~# apt install apache2</pre>
<p><figure id="attachment_6522" aria-describedby="caption-attachment-6522" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6522" src="https://www.osradar.com/wp-content/uploads/2018/10/2-13.png" alt="2.- Install apache web server" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/2-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/2-13-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/2-13-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/2-13-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/2-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/2-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/2-13-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6522" class="wp-caption-text">2.- Install the Apache web server</figcaption></figure></p>
<p>Then, enable the Apache web server service to run at system startup.</p>
<pre class="">:~# systemctl enable apache2</pre>
<p><figure id="attachment_6523" aria-describedby="caption-attachment-6523" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6523" src="https://www.osradar.com/wp-content/uploads/2018/10/3-14.png" alt="3.- Enabling apache web server service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/3-14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/3-14-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/3-14-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/3-14-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/3-14-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/3-14-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/3-14-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6523" class="wp-caption-text">3.- Enabling apache web server service</figcaption></figure></p>
<p>To check that everything is working correctly, open your web browser and go to <code>http://IP_SERVER</code></p>
<p><figure id="attachment_6524" aria-describedby="caption-attachment-6524" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6524" src="https://www.osradar.com/wp-content/uploads/2018/10/4-10.png" alt="4.- Apache2 web default page" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2018/10/4-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/4-10-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/4-10-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/4-10-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/4-10-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/10/4-10-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/4-10-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/4-10-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6524" class="wp-caption-text">4.- Apache2 web default page</figcaption></figure></p>
<p>Apache web server is installed and configured correctly.</p>
<h2>3.- Install PHP</h2>
<p>As I said before, <a href="http://php.net/" rel="noopener">PHP</a> is the language that nextcloud can interpret. So, you have to install it.</p>
<pre class="">:~# apt install php7.0 libapache2-mod-php7.0 php7.0-common php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring php7.0-intl php7.0-mcrypt php7.0-imagick php7.0-xml php7.0-zip</pre>
<p><figure id="attachment_6525" aria-describedby="caption-attachment-6525" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6525" src="https://www.osradar.com/wp-content/uploads/2018/10/5-10.png" alt="5.- Installing PHP" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/5-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/5-10-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/5-10-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/5-10-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/5-10-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/5-10-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/5-10-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6525" class="wp-caption-text">5.- Installing PHP</figcaption></figure></p>
<p>To see if PHP is correctly installed. Create a file in <code>/var/www/html/</code> with the following content:</p>
<pre class="">:~# nano /var/www/html/test.php</pre>
<pre class="">&lt;?php
phpinfo();
?&gt;</pre>
<p><figure id="attachment_6526" aria-describedby="caption-attachment-6526" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6526" src="https://www.osradar.com/wp-content/uploads/2018/10/6-9.png" alt="6.- phpinfo()" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/6-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/6-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/6-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/6-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/6-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/6-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/6-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6526" class="wp-caption-text">6.- phpinfo()</figcaption></figure></p>
<p>Save the file and then close it. Go to the web browser and try to open it.</p>
<p><figure id="attachment_6527" aria-describedby="caption-attachment-6527" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6527" src="https://www.osradar.com/wp-content/uploads/2018/10/7-9.png" alt="7.-PHP is correctly installed" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2018/10/7-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/7-9-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/7-9-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/7-9-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/7-9-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/10/7-9-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/7-9-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/7-9-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6527" class="wp-caption-text">7.-PHP is correctly installed</figcaption></figure></p>
<p>If you see the image above, then PHP is correctly installed.</p>
<h2>4. Install MariaDB</h2>
<p>The next step to install Nextcloud on Debian 9 is to install MariaDB. Nextcloud requires a database manager and MariaDB is free and very good.</p>
<pre class="">:~# apt install mariadb-server</pre>
<p><figure id="attachment_6528" aria-describedby="caption-attachment-6528" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6528" src="https://www.osradar.com/wp-content/uploads/2018/10/8-9.png" alt="8.- Install MariaDB server" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/8-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/8-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/8-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/8-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/8-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/8-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/8-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6528" class="wp-caption-text">8.- Install MariaDB server</figcaption></figure></p>
<p>At the end of the installation, enable the service to start with the system.</p>
<pre class="">:~# systemctl enable mariadb</pre>
<p>Then, check the status of the service.</p>
<pre class="">:~# systemctl status mariadb</pre>
<p><figure id="attachment_6529" aria-describedby="caption-attachment-6529" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6529" src="https://www.osradar.com/wp-content/uploads/2018/10/9-10.png" alt="9.- MariaDB service status" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/9-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/9-10-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/9-10-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/9-10-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/9-10-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/9-10-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/9-10-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6529" class="wp-caption-text">9.- MariaDB service status</figcaption></figure></p>
<p>Then, you have to define a password to MariaDB and other settings. To do this, run <code>mysql_secure_installation</code>.</p>
<pre class="">:~# mysql_secure_installation</pre>
<p>After defining the password, answer the questions as you like, but I&#8217;ll do it that way: Y, N, Y, Y.</p>
<p><figure id="attachment_6530" aria-describedby="caption-attachment-6530" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6530" src="https://www.osradar.com/wp-content/uploads/2018/10/10-9.png" alt="10.- Configuring MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/10-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/10-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/10-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/10-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/10-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/10-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/10-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6530" class="wp-caption-text">10.- Configuring MariaDB</figcaption></figure></p>
<p>Now you must create a database for Nextcloud. After that, create a user for that database and reload MariaDB&#8217;s privileges. First, access to MariaDB console.</p>
<pre class="">:~# mysql -u root -p</pre>
<p>Once you have logged in to the MariaDB console, so, you can start creating the database and the rest of the operations.</p>
<pre class="">CREATE DATABASE nextcloud;
USE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost' IDENTIFIED BY 'userpss';
FLUSH PRIVILEGES;
exit;</pre>
<p><figure id="attachment_6531" aria-describedby="caption-attachment-6531" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6531" src="https://www.osradar.com/wp-content/uploads/2018/10/11-9.png" alt="11.- Creating some parameters for MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/11-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/11-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/11-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/11-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/11-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/11-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/11-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6531" class="wp-caption-text">11.- Creating some parameters for MariaDB</figcaption></figure></p>
<p>Now, you can install Nextcloud.</p>
<h2>5. Install Nextcloud on Debian 9</h2>
<p>The moment of truth has arrived, the moment to install Nextcloud has arrived. So, you have to download it.</p>
<pre class="">:~# cd /opt/
:~# wget https://download.nextcloud.com/server/releases/nextcloud-14.0.2.zip</pre>
<p><figure id="attachment_6532" aria-describedby="caption-attachment-6532" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6532" src="https://www.osradar.com/wp-content/uploads/2018/10/12-8.png" alt="12.- Install Nextcloud" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/12-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/12-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/12-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/12-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/12-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/12-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/12-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6532" class="wp-caption-text">12.- Install Nextcloud</figcaption></figure></p>
<p>Now unzip it in /var/www/html.</p>
<pre class="">:~# unzip nextcloud-14.0.2.zip -d /var/www/html/</pre>
<p><figure id="attachment_6534" aria-describedby="caption-attachment-6534" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6534" src="https://www.osradar.com/wp-content/uploads/2018/10/13-4.png" alt="13.- Unziping Nextcloud" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/13-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/13-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/13-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/13-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/13-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/13-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/13-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6534" class="wp-caption-text">13.- Unzipping Nextcloud</figcaption></figure></p>
<p>Then change the owner of the Nextcloud folder and assign corresponding permissions.</p>
<pre class="">:~# chown -R www-data:www-data /var/www/html/nextcloud/
:~# chmod -R 755  /var/www/html/nextcloud/</pre>
<p><figure id="attachment_6535" aria-describedby="caption-attachment-6535" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6535" src="https://www.osradar.com/wp-content/uploads/2018/10/14-3.png" alt="14.- Changing the permission to the nexcloud folder" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/14-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/14-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/14-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/14-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/14-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/14-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/14-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6535" class="wp-caption-text">14.- Changing the permission to the nextcloud folder</figcaption></figure></p>
<h2>6. Access from the web browser</h2>
<p>Now you can access from the web browser, http://IP_SERVER/nextcloud and you will see this.</p>
<p><figure id="attachment_6536" aria-describedby="caption-attachment-6536" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6536" src="https://www.osradar.com/wp-content/uploads/2018/10/15-1.png" alt="15.- Nextcloud configuration parameters" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2018/10/15-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/15-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/15-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/15-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/15-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/10/15-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/15-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/15-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6536" class="wp-caption-text">15.- Nextcloud configuration parameters</figcaption></figure></p>
<p>On this screen you must enter the information corresponding to MariaDB. In user admin and in password the one you want. When you have done it, click on the <em>Finish setup</em> button.</p>
<p>And if everything went right, you&#8217;ll see Nextcloud working.</p>
<p><figure id="attachment_6537" aria-describedby="caption-attachment-6537" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6537" src="https://www.osradar.com/wp-content/uploads/2018/10/16-1.png" alt="16.- Nextcloud is alive" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2018/10/16-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/16-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/16-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/16-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/16-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/10/16-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/16-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/16-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6537" class="wp-caption-text">16.- Nextcloud is alive</figcaption></figure></p>
<p>Now you can enjoy your private cloud.</p>
<h2>Conclusion</h2>
<p>Nextcloud is a good alternative if you want to independent your files or those of your company from giants like Microsoft or Google. Or if you want to have control of your data.</p>
<p>We want to know about you, have you used Nextcloud? has this article served you? how about your experience with Nextcloud?</p>
<p>Please share this article through your social networks.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nextcloud-debian-9/">How to install Nextcloud on Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nextcloud-debian-9/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
