{"id":1531,"date":"2024-09-25T16:59:04","date_gmt":"2024-09-25T14:59:04","guid":{"rendered":"https:\/\/apfelcast.com\/?p=1531"},"modified":"2024-09-25T16:59:04","modified_gmt":"2024-09-25T14:59:04","slug":"nextcloud-auf-linux-server-installieren-einfache-methode-lamp-stack","status":"publish","type":"post","link":"https:\/\/it-ion.de\/index.php\/2024\/09\/25\/nextcloud-auf-linux-server-installieren-einfache-methode-lamp-stack\/","title":{"rendered":"Nextcloud auf Linux Server installieren &#8211; Einfache Methode (LAMP-Stack)"},"content":{"rendered":"\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 <div class=\"brlbs-cmpnt-container brlbs-cmpnt-content-blocker brlbs-cmpnt-with-individual-styles\" data-borlabs-cookie-content-blocker-id=\"default\" data-borlabs-cookie-content=\"PGlmcmFtZSB0aXRsZT0iTmV4dGNsb3VkIGF1ZiBMaW51eCBTZXJ2ZXIgaW5zdGFsbGllcmVuIC0gRWluZmFjaGUgTWV0aG9kZSAoTEFNUC1TdGFjaykiIHdpZHRoPSI3MjAiIGhlaWdodD0iNDA1IiBzcmM9Imh0dHBzOi8vd3d3LnlvdXR1YmUuY29tL2VtYmVkL191NHp4OFlhYVNRP2ZlYXR1cmU9b2VtYmVkIiBmcmFtZWJvcmRlcj0iMCIgYWxsb3c9ImFjY2VsZXJvbWV0ZXI7IGF1dG9wbGF5OyBjbGlwYm9hcmQtd3JpdGU7IGVuY3J5cHRlZC1tZWRpYTsgZ3lyb3Njb3BlOyBwaWN0dXJlLWluLXBpY3R1cmU7IHdlYi1zaGFyZSIgcmVmZXJyZXJwb2xpY3k9InN0cmljdC1vcmlnaW4td2hlbi1jcm9zcy1vcmlnaW4iIGFsbG93ZnVsbHNjcmVlbj48L2lmcmFtZT4=\"><div class=\"brlbs-cmpnt-cb-preset-a\"> <p class=\"brlbs-cmpnt-cb-description\">Sie sehen gerade einen Platzhalterinhalt von <strong>Standard<\/strong>. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie auf die Schaltfl\u00e4che unten. Bitte beachten Sie, dass dabei Daten an Drittanbieter weitergegeben werden.<\/p> <div class=\"brlbs-cmpnt-cb-buttons\"> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-unblock role=\"button\">Inhalt entsperren<\/a> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-accept-service role=\"button\" style=\"display: none\">Erforderlichen Service akzeptieren und Inhalte entsperren<\/a> <\/div> <a class=\"brlbs-cmpnt-cb-provider-toggle\" href=\"#\" data-borlabs-cookie-show-provider-information role=\"button\">Mehr Informationen<\/a> <\/div><\/div>\n<\/div><\/figure>\n\n\n\n<p>In diesem Video erf\u00e4hrst du, wie du Schritt f\u00fcr Schritt Nextcloud ab Version 30 auf deinem Linux Server mit Ubuntu 24.04 installieren kannst. Ebenfalls erkl\u00e4re ich dir, welche Installationsmethode am besten zu deinem Anwendungszweck passt, sowie zeige Ich dir unterschiedliche Wege auf dien Nextcloud aus dem internet erreichbar zu machen.<\/p>\n\n\n\n<p>\ud83d\udee0\ufe0f OpenSource IT-Support \ud83d\udee0\ufe0f<br>Du ben\u00f6tigst Unterst\u00fctzung bei der Installation oder Konfiguration von Nextcloud? Wir helfen dir gerne weiter! Schreib uns einfach eine Mail an: <a href=\"mailto:service@apfelcast.com\">service@apfelcast.com<\/a><br>\u00bb Website: https:\/\/apfelcast.com<\/p>\n\n\n\n<p>\u270c\ud83c\udffbUnterst\u00fctze unseren Kanal auf Patreon: <a href=\"https:\/\/patreon.com\/apfelcast\">https:\/\/patreon.com\/apfelcast<\/a><br><br>\u26a0\ufe0f Sicherheits- und Einrichtungswarnungen beheben: <a href=\"https:\/\/www.patreon.com\/posts\/nextcloud-30-und-112672318\">https:\/\/www.patreon.com\/posts\/nextcloud-30-und-112672318<\/a><\/p>\n\n\n\n<p>\u2139\ufe0f Installationsmethoden:<br>LAMP Stack: Dieses Video<br>Nextcloud AIO: <a href=\"https:\/\/www.patreon.com\/posts\/79582670\">https:\/\/www.patreon.com\/posts\/79582670<\/a><br>Nextcloud Docker: <a href=\"https:\/\/www.youtube.com\/watch?v=T20YEf7ACsA\">https:\/\/www.youtube.com\/watch?v=T20YEf7ACsA<\/a><\/p>\n\n\n\n<p>\u2139\ufe0f Erreichbarkeit aus dem Internet einrichten:<br>Direkt via Domain: Dieses Video<br>ReverseProxy: <a href=\"https:\/\/www.youtube.com\/watch?v=JgrPcQIQuF8\">https:\/\/www.youtube.com\/watch?v=JgrPcQIQuF8<\/a><br>Cloudflare: <a href=\"https:\/\/www.patreon.com\/posts\/107396464\/\">https:\/\/www.patreon.com\/posts\/107396464\/<\/a><\/p>\n\n\n\n<p>\u2139\ufe0f Weitere Inhalte:<br>Nextcloud Security Essentials: <a href=\"https:\/\/www.youtube.com\/watch?v=0-hxlvR6f9g\">https:\/\/www.youtube.com\/watch?v=0-hxlvR6f9g<\/a><br>Nextcloud Outlook Integration: <a href=\"https:\/\/youtu.be\/D8pvGrYXic4\">https:\/\/youtu.be\/D8pvGrYXic4<\/a><br>Nextcloud Playlist: <a href=\"https:\/\/www.youtube.com\/watch?v=mlRAaZT53Rg&amp;list=PLLg1WgOBYXOtQOwYQjJc1GbuYz-wJgmtN\">https:\/\/www.youtube.com\/watch?v=mlRAaZT53Rg&amp;list=PLLg1WgOBYXOtQOwYQjJc1GbuYz-wJgmtN<\/a><\/p>\n\n\n\n<div id=\"93964-1\"><script src=\"\/\/ads.themoneytizer.com\/s\/gen.js?type=1\"><\/script><script src=\"\/\/ads.themoneytizer.com\/s\/requestform.js?siteId=93964&amp;formatId=1\"><\/script><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Im Video verwendete Befehle:<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># updating \napt update &amp;&amp; apt upgrade -y\n\n# Installing apache\napt install apache2 -y\n\n# Install PHP 8.3 \napt install software-properties-common\nadd-apt-repository ppa:ondrej\/php\napt update\n\n# Install PHP 8.3 &amp; Moduls\napt install php8.3 libapache2-mod-php8.3 php8.3-zip php8.3-xml php8.3-mbstring php8.3-gd php8.3-curl php8.3-imagick libmagickcore-6.q16-6-extra php8.3-intl php8.3-bcmath php8.3-gmp php8.3-cli php8.3-mysql php8.3-zip php8.3-gd  php8.3-mbstring php8.3-curl php8.3-xml php-pear unzip nano php8.3-apcu redis-server ufw php8.3-redis php8.3-smbclient php8.3-ldap php8.3-bz2 php8.3-sqlite3 \n\n# adjust PHP.ini file\nnano \/etc\/php\/8.3\/apache2\/php.ini\n\nmemory_limit = 4096M\nupload_max_filesize = 20G\npost_max_size = 20G\ndate.timezone = Europe\/Berlin\noutput_buffering = Off\n\nopcache.enable=1\nopcache.enable_cli=1\nopcache.interned_strings_buffer=8\nopcache.max_accelerated_files=10000\nopcache.memory_consumption=128\nopcache.save_comments=1\nopcache.revalidate_freq=1\n\n# Install Databse Server\napt install mariadb-server\n\n# Maria DB Server Konfiguration\nmysql_secure_installation\n\n# open SQL dialoge\nmysql\n\n# create database calles nextcloud\nCREATE DATABASE nextcloud; \n\n# create database user with password\nCREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'password_here';\n\n#grant accesss to databse\nGRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';\n\n#save changes and exit\nFLUSH PRIVILEGES;\nEXIT;\n\n# Download lastest nextcloud version\ncd \/tmp &amp;&amp; wget https:\/\/download.nextcloud.com\/server\/releases\/latest.zip\nunzip latest.zip\nmv nextcloud \/var\/www\/\n\n#create new conf\nnano \/etc\/apache2\/sites-available\/nextcloud.conf\n\n&lt;VirtualHost *:80>\n     ServerAdmin master@domain.com\n     DocumentRoot \/var\/www\/nextcloud\/\n     ServerName \n\n     &lt;Directory \/var\/www\/nextcloud\/>\n        Options +FollowSymlinks\n        AllowOverride All\n        Require all granted\n          &lt;IfModule mod_dav.c>\n            Dav off\n          &lt;\/IfModule>\n        SetEnv HOME \/var\/www\/nextcloud\n        SetEnv HTTP_HOME \/var\/www\/nextcloud\n     &lt;\/Directory>\n\n     ErrorLog ${APACHE_LOG_DIR}\/error.log\n     CustomLog ${APACHE_LOG_DIR}\/access.log combined\n\n&lt;\/VirtualHost>\n \n# Enable the NextCloud and Rewrite Module\n\na2ensite nextcloud.conf\na2enmod rewrite\na2enmod headers\na2enmod env\na2enmod dir\na2enmod mime\n\n# restart apache\nservice apache2 restart\n\n# prepare data folder\nmkdir \/home\/data\/\nchown -R www-data:www-data \/home\/data\/\n\nchown -R www-data:www-data \/var\/www\/nextcloud\/\nchmod -R 755 \/var\/www\/nextcloud\/\n\n## create Let's Encrypt SSL-Certificate\n\n#install certbot\napt install certbot python3-certbot-apache\n\ncertbot --apache -m master@domain.com -d cloud.domain.com\n\n\n#install crontab\ncrontab -e\n\n40 3 * * 0 letsencrypt renew >> \/var\/log\/letsencrypt-renew.log &amp;&amp; service apache2 reload > \/dev\/null 2>&amp;1\n\n## NC cronjob ##\ncrontab -u www-data -e\n*\/5  *  *  *  * php -f \/var\/www\/nextcloud\/cron.php<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In diesem Video erf\u00e4hrst du, wie du Schritt f\u00fcr Schritt Nextcloud ab Version 30 auf&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1532,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein"],"taxonomy_info":{"category":[{"value":1,"label":"Allgemein"}]},"featured_image_src_large":["https:\/\/it-ion.de\/wp-content\/uploads\/2024\/09\/thumbnail_nc_v30-install-1024x576.jpg",1024,576,true],"author_info":{"display_name":"Daniel Klozb\u00fccher","author_link":"https:\/\/it-ion.de\/index.php\/author\/wp-master\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Allgemein","slug":"allgemein","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":89,"filter":"raw","cat_ID":1,"category_count":89,"category_description":"","cat_name":"Allgemein","category_nicename":"allgemein","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/1531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/comments?post=1531"}],"version-history":[{"count":0,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/1531\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media\/1532"}],"wp:attachment":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media?parent=1531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/categories?post=1531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/tags?post=1531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}