wiki:projekte:bananapi_m2u_nextcloud:uebersicht
Inhaltsverzeichnis
====== Banana Pi M2 Ultra als Nextcloud Instanz=
Unsortierte Installation zwecks Test
- Banana Pi M2U OS besorgen und auf SD-Karte schreiben
- Banana Pi M2U booten, root PW ändern und ggf. zusätzlichen Nutzer anlegen
Quellen
Installation der Basiskomponenten
sudo su apt-get update apt-get upgrade apt-get dist-upgrade apt-get install -y mc aptitude curl unzip bzip2 # Apache: apt-get install -y apache2 systemctl is-enabled apache2 systemctl status apache2 # PHP apt-get 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 php --version php -m mcedit /etc/php/8.2/apache2/php.ini data.timezone = Europe/Amsterdam memory_limit = 512M upload_max_filesize = 500M post_max_size = 600M max_execution_time = 300 file_uploads = On allow_url_fopen = On display_errors = Off output_buffering = Off zend_extension=opcache opcache.enable = 1 opcache.interned_strings_buffer = 8 opcache.max_accelerated_files = 10000 opcache.memory_consumption = 128 opcache.save_comments = 1 opcache.revalidate_freq = 1 systemctl restart apache2 # MariaDB intallieren apt-get install -y mariadb-server systemctl is-enabled mariadb systemctl status mariadb mariadb-secure-installation mariadb -u root -p CREATE DATABASE nextcloud_db; CREATE USER nextclouduser@localhost IDENTIFIED BY 'xxxxxxxxxxxx'; GRANT ALL PRIVILEGES ON nextcloud_db.* TO nextclouduser@localhost; FLUSH PRIVILEGES; SHOW GRANTS FOR nextclouduser@localhost; # Nextcloud installieren cd /var/www/ # wget https://download.nextcloud.com/server/releases/nextcloud-21.0.0.tar.bz wget https://download.nextcloud.com/server/releases/nextcloud-26.0.13.tar.bz2 # tar xfj nextcloud-21.0.0.tar.bz tar xfj nextcloud-26.0.13.tar.bz chown -R www-data:www-data nextcloud nano /etc/apache2/sites-available/nextcloud.conf <VirtualHost *:80> ServerName nextcloud.beispiel.io DocumentRoot /var/www/nextcloud/ # log files ErrorLog /var/log/apache2/files.beispiel.io-error.log CustomLog /var/log/apache2/files.beispiel.io-access.log combined <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory> </VirtualHost> a2ensite nextcloud.conf apachectl configtest systemctl restart apache2
wiki/projekte/bananapi_m2u_nextcloud/uebersicht.txt · Zuletzt geändert: 2024/07/24 19:15 von wikimaster