{"id":126,"date":"2021-08-19T16:43:52","date_gmt":"2021-08-19T14:43:52","guid":{"rendered":"https:\/\/aietea.fr\/?p=126"},"modified":"2021-08-29T22:48:59","modified_gmt":"2021-08-29T20:48:59","slug":"nextcloud-server","status":"publish","type":"post","link":"https:\/\/aietea.fr\/index.php\/2021\/08\/19\/nextcloud-server\/","title":{"rendered":"Nextcloud Server"},"content":{"rendered":"\n<p>In this article i&rsquo;m going to set up a new Nextcloud server and see what it can brings to users.<\/p>\n\n\n\n<p><strong><span style=\"text-decoration: underline\">Prerequisites<\/span><\/strong><\/p>\n\n\n\n<p><strong>Ubuntu 20.04<\/strong> up to date<\/p>\n\n\n\n<p><strong>Web server<\/strong>, in my case Apache 2. Command : apt install apache2<\/p>\n\n\n\n<p><strong>SQL Database<\/strong>, for me MariaDB. Command : apt-install mariadb-server<\/p>\n\n\n\n<p><strong>PHP<\/strong>. Command (source : https:\/\/www.tech2tech.fr) : apt install php-imagick php7.4-common php7.4-mysql php7.4-fpm php7.4-gd php7.4-json php7.4-curl&nbsp; php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl php7.4-bcmath php7.4-gmp php-zip  php-gd php-curl php-intl libapache2-mod-php<\/p>\n\n\n\n<p>and <strong>activate <\/strong>: phpenmod zip gd curl intl<\/p>\n\n\n\n<p><strong>Download <\/strong>Nextcloud : wget https:\/\/download.nextcloud.com\/server\/releases\/latest.zip<\/p>\n\n\n\n<p>Put the zip file in \/opt for example and unzip it.<\/p>\n\n\n\n<p>Put the content of the folder nextcloud to \/var\/www\/<\/p>\n\n\n\n<p>Give the rights to the www-data user and group : <strong>chown www-data:www-data \/var\/www\/html\/ -R<\/strong><\/p>\n\n\n\n<p>Create database, you can name it \u00ab\u00a0nextcloud\u00a0\u00bb for example. And create a user who have all the rights on this database.<\/p>\n\n\n\n<p>mkdir \/var\/www\/nextcloud-data and chown<\/p>\n\n\n\n<p>You can apply more settings to Apache if you want, for example to secure it, etc.<\/p>\n\n\n\n<p><span style=\"text-decoration: underline\"><strong>Nextcloud<\/strong><\/span><\/p>\n\n\n\n<p>You can use Nextcloud to share files and folders, use the calendar with your colleagues, read and compose e-mails, and other things (photos, visio, etc.) that we will see later.<\/p>\n\n\n\n<p><span style=\"text-decoration: underline\">Users and groups management<\/span><\/p>\n\n\n\n<p>To manage users and groups, click :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"312\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image.png\" alt=\"\" class=\"wp-image-136\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image.png 781w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-300x120.png 300w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-768x307.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/figure>\n\n\n\n<p>On the left you can add new users and create a new group where you want to put it :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"191\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-1.png\" alt=\"\" class=\"wp-image-137\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"221\" height=\"351\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-2.png\" alt=\"\" class=\"wp-image-138\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-2.png 221w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-2-189x300.png 189w\" sizes=\"auto, (max-width: 221px) 100vw, 221px\" \/><\/figure>\n\n\n\n<p>Note : to create a new group, type the name of the group you want to create below the field \u00ab\u00a0Email\u00a0\u00bb.<\/p>\n\n\n\n<p>Create users and groups you want, for example :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"273\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-3.png\" alt=\"\" class=\"wp-image-139\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-3.png 787w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-3-300x104.png 300w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-3-768x266.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/figure>\n\n\n\n<p>Now, create folders where we can create access control list. To do that we need to install a new app call \u00ab\u00a0Group folders\u00a0\u00bb :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"88\" height=\"165\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-4.png\" alt=\"\" class=\"wp-image-141\" \/><\/figure>\n\n\n\n<p>Here you can see folders i&rsquo;ve created with the groups who have the rights to access :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"298\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-5.png\" alt=\"\" class=\"wp-image-142\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-5.png 793w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-5-300x113.png 300w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-5-768x289.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><\/figure>\n\n\n\n<p>When you create the folder we can set the rights :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"302\" height=\"97\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-6.png\" alt=\"\" class=\"wp-image-144\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-6.png 302w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-6-300x96.png 300w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/><\/figure>\n\n\n\n<p>Now you can apply rights on each folder you create to reflect the needs of your company (like a file server).<\/p>\n\n\n\n<p><span style=\"text-decoration: underline\">Calendar<\/span><\/p>\n\n\n\n<p>Nextcloud allow you to share events with your colleague :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"428\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-7.png\" alt=\"\" class=\"wp-image-147\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-7.png 792w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-7-300x162.png 300w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-7-768x415.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/figure>\n\n\n\n<p><span style=\"text-decoration: underline\">E-mail<\/span><\/p>\n\n\n\n<p>You can add your email account easily by clicking \u00ab\u00a0set up an account\u00a0\u00bb in the main page, then :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"197\" height=\"311\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-9.png\" alt=\"\" class=\"wp-image-150\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-9.png 197w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-9-190x300.png 190w\" sizes=\"auto, (max-width: 197px) 100vw, 197px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"400\" src=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-10.png\" alt=\"\" class=\"wp-image-151\" srcset=\"https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-10.png 790w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-10-300x152.png 300w, https:\/\/aietea.fr\/wp-content\/uploads\/2021\/07\/image-10-768x389.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/figure>\n\n\n\n<p>That&rsquo;s all for now, you can test by yourself this power tool which can take place easily in a company.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article i&rsquo;m going to set up a new Nextcloud server and see what it can brings to users. Prerequisites Ubuntu 20.04 up to date Web server, in my case Apache 2. Command : apt install apache2 SQL Database, for me MariaDB. Command : apt-install mariadb-server PHP. Command (source : https:\/\/www.tech2tech.fr) : apt install &hellip; <a href=\"https:\/\/aietea.fr\/index.php\/2021\/08\/19\/nextcloud-server\/\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">Nextcloud Server<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-systemes-reseaux"],"_links":{"self":[{"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":21,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/posts\/126\/revisions\/238"}],"wp:attachment":[{"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aietea.fr\/index.php\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}