{"id":194,"date":"2025-05-28T15:43:46","date_gmt":"2025-05-28T18:43:46","guid":{"rendered":"http:\/\/192.168.0.52\/?p=194"},"modified":"2025-05-29T16:06:14","modified_gmt":"2025-05-29T19:06:14","slug":"instalacao-do-nextcloud-debian-12","status":"publish","type":"post","link":"https:\/\/jorgecarneirob.ddns.net\/index.php\/2025\/05\/28\/instalacao-do-nextcloud-debian-12\/","title":{"rendered":"Instala\u00e7\u00e3o do NextCloud  Debian 12"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full wp-duotone-unset-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"http:\/\/192.168.0.52\/wp-content\/uploads\/2025\/05\/image-13.png\" alt=\"\" class=\"wp-image-195\"\/><\/figure>\n\n\n\n<p>Acompanhe no Youtube:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Como Instalar o Nextcloud no Debian 12 (Passo a Passo Completo!)\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/skgdGlgviQY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Neste tutorial demonstro o processo de instala\u00e7\u00e3o do nextcloud no debian 12.<br>Pr\u00e9-requisitos: LAMP (Linux, Apache, Mysql, PHP).<\/p>\n\n\n\n<p>Instal\u00e3o do UFW Firewall:<\/p>\n\n\n\n<p><code>sudo apt install ufw<\/code><\/p>\n\n\n\n<p>Liberando OpenSSH e WWW<br><code>sudo ufw allow OpenSSH<br>sudo ufw allow \"WWW Full\"<\/code><\/p>\n\n\n\n<p>Ativando e reiniciando o firewall:<br><code>sudo ufw enable<br>sudo ufw reload<\/code><\/p>\n\n\n\n<p>Instalando os modulos PHP:<br><code>apt install -y php php-curl php-cli php-mysql php-gd php-common php-xml php-json php-intl php-pear php-imagick php-dev php-common php-mbstring php-zip php-soap php-bz2 php-bcmath php-gmp php-apcu libmagickcore-dev<\/code><\/p>\n\n\n\n<p>Editar o arquivo de configura\u00e7\u00e3o php.ini:<br><code>nano \/etc\/php\/8.2\/apache2\/php.ini<\/code><\/p>\n\n\n\n<p>Alterar os seguintes valores:<br>(Utlilize Ctrl+W para procurar os valores dentro do arquivo)<br><code>memory_limit = 512M<br>upload_max_filesize = 500M<br>post_max_size = 600M<br>max_execution_time = 300<br>file_uploads = On<br>allow_url_fopen = On<br>display_errors = Off<br>output_buffering = Off<br>zend_extension=opcache<\/code><\/p>\n\n\n\n<p>Cole esta configura\u00e7\u00e3o na se\u00e7\u00e3o \u201copcache\u201d, conforme recomendado pelo Nextcloud para Debian 12:<br><code>opcache.enable = 1<br>opcache.interned_strings_buffer = 8<br>opcache.max_accelerated_files = 10000<br>opcache.memory_consumption = 128<br>opcache.save_comments = 1<br>opcache.revalidate_freq = 1<\/code><\/p>\n\n\n\n<p>Reiniciar apache2:<br><code>systemctl restart apache2<\/code><\/p>\n\n\n\n<p>Acessando o mysql:<br><code>mysql -uroot -p<\/code><\/p>\n\n\n\n<p>Criando o banco de dados nextcloud_db:<br><code>CREATE DATABASE nextcloud_db;<\/code><\/p>\n\n\n\n<p>Criando usu\u00e1rio nextcloud:<br><code>CREATE USER nextcloud@localhost IDENTIFIED BY 'nextcloud';<br>GRANT ALL PRIVILEGES ON nextcloud_db.* TO nextcloud@localhost;<br>FLUSH PRIVILEGES;<\/code><\/p>\n\n\n\n<p>Exibir configura\u00e7\u00f5es do usu\u00e1rio nextcloud:<br><code>SHOW GRANTS FOR nextcloud@localhost;<br>exit;<\/code><\/p>\n\n\n\n<p>Instalar curl e unzip:<br><code>apt install curl unzip -y<\/code><\/p>\n\n\n\n<p>Download nextcloud:<br><code>cd \/var\/www\/html\/<br>wget https:\/\/download.nextcloud.com\/server\/releases\/latest.zip<\/code><\/p>\n\n\n\n<p>Descompactar:<br><code>unzip latest.zip<\/code><\/p>\n\n\n\n<p>Permiss\u00e3o www-data:<br><code>chown -R www-data:www-data nextcloud<\/code><\/p>\n\n\n\n<p>Criar arquivo de configura\u00e7\u00e3o para o apache:<br><code>nano \/etc\/apache2\/sites-available\/nextcloud.conf<\/code><\/p>\n\n\n\n<p>Colar o conte\u00fado dentro do arquivo:<br><code>ServerName 192.168.0.119 DocumentRoot \/var\/www\/html\/nextcloud\/ # log files ErrorLog \/var\/log\/apache2\/files.exemplo.io-error.log CustomLog \/var\/log\/apache2\/files.exemplo.io-access.log combined Options +FollowSymlinks AllowOverride All Dav off SetEnv HOME \/var\/www\/html\/nextcloud SetEnv HTTP_HOME \/var\/www\/html\/nextcloud<\/code><\/p>\n\n\n\n<p>Ativando configura\u00e7\u00e3o apache:<br><code>sudo a2ensite nextcloud.conf<br>sudo apachectl configtest<\/code><\/p>\n\n\n\n<p>Caso tenha o phpmyadmin instalado:<br><code>Desabilitando configura\u00e7\u00e3o phpmyadmin:<br>a2disconf phpmyadmin<\/code><\/p>\n\n\n\n<p>reiniciando apache:<br><code>systemctl restart apache2<\/code><\/p>\n\n\n\n<p>Acesse o nextclouf pelo ip do servidor.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Acompanhe no Youtube: Neste tutorial demonstro o processo de instala\u00e7\u00e3o do nextcloud no debian 12.Pr\u00e9-requisitos: LAMP (Linux, Apache, Mysql, PHP). Instal\u00e3o do UFW Firewall: sudo apt install ufw Liberando OpenSSH e WWWsudo ufw allow OpenSSHsudo ufw allow &#8220;WWW Full&#8221; Ativando e reiniciando o firewall:sudo ufw enablesudo ufw reload Instalando os modulos PHP:apt install -y php [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":195,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22],"tags":[132,130,126,121,123,131,127,120,122,128,124,125,129],"class_list":["post-194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-servidor","tag-como-instalar-nextcloud-no-debian","tag-debian-12-server","tag-instalar-nextcloud","tag-instalar-nextcloud-passo-a-passo","tag-nextcloud","tag-nextcloud-apache","tag-nextcloud-debian-12","tag-nextcloud-firewall","tag-nextcloud-php","tag-nextcloud-tutorial","tag-nextcloud-ufw","tag-servidor-de-arquivos-linux","tag-servidor-nuvem-pessoal"],"jetpack_featured_media_url":"https:\/\/jorgecarneirob.ddns.net\/wp-content\/uploads\/2025\/05\/image-13.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":2,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/194\/revisions\/199"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/media\/195"}],"wp:attachment":[{"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}