Difference between revisions of "Nextcloud install notes"

From W9CR
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 47: Line 47:
 
This resets the password to random.
 
This resets the password to random.
 
  /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic -a
 
  /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic -a
 +
 +
= talk =
 +
Need high-perf backend
 +
 +
https://github.com/sunweaver/nextcloud-high-performance-backend-setup/blob/main/README_en.md
 +
 +
= coloraba server=
 +
 +
https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html
 +
 +
<pre>
 +
a2enmod proxy proxy_http proxy_connect proxy_wstunnel
 +
 +
</pre>
 +
 +
= docs =
 +
 +
https://www.doublebastion.com/apache-configuration-for-nextcloud/

Latest revision as of 15:54, 26 November 2025

Notes for installing nextcloud

install needed software

apt-get install screen vim net-tools strongswan fail2ban snmp haveged libacl1-dev python3-dev libssl-dev gcc g++ fio pbzip2 ncdu sudo traceroute bash-completion ifupdown inetutils-ping dnsutils lldpd iptables less rsyslog snmp snmpd libsnmp-dev ncat telnet libacl1-dev python3-dev libssl-dev gcc g++ python3-llfuse pkg-config cron libwww-perl ipset udev postfix mailutils snmp snmpd libsnmp-dev curl xinetd snmpd php perl curl xinetd snmp libsnmp-dev libwww-perl rrdtool mailgraph mariadb-server php libapache2-mod-php php-cgi php-mysqli php-pear php-phpseclib php-mysql php-mbstring php-zip php-gd php-curl php-common unzip apache2 mariadb-server libapache2-mod-fcgid php-fpm php php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-bz2 python3-certbot-apache php-apcu redis-server php-redis php-bcmath php-gmp ffmpeg curl coreutils libmagickcore-7.q16-10-extra php-sqlite3

install nextcloud

cd /var/www/html
wget https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2
tar xfv nextcloud-32.0.0.tar.bz2
chown -R www-data:www-data nextcloud/
sudo touch /etc/apache2/sites-available/nextcloud.conf
vim /etc/apache2/sites-available/nextcloud.conf
a2enmod rewrite proxy_fcgi setenvif rewrite headers env dir mime userdir dav ssl
a2enconf php8.4-fpm
a2ensite nextcloud.conf
a2dissite 000-default.conf

config

vim /etc/php/8.4/fpm/php.ini
vim /etc/redis/redis.conf
usermod -a -G redis www-data
systemctl enable redis-server
vim config/config.php
vim /etc/php/8.4/fpm/php.ini
systemctl restart redis-server
systemctl restart apache2
vim /etc/php/8.4/cli/php.ini
systemctl restart php8.4-fpm.service


cronjobs

in the www-data user crontab

# crontab -e -u www-data

*/5 * * * * php -f /var/www/html/nextcloud/cron.php

elasticsearch

how to install it on debian https://itsfoss.gitlab.io/post/how-to-install-elasticsearch-8-on-debian-12-11-or-10-linux/

This needs to allow the search to work from self signed https on local host.

sudo -u www-data php occ config:app:get fulltextsearch_elasticsearch allow_self_signed_cert
sudo -u www-data php occ config:app:set fulltextsearch_elasticsearch allow_self_signed_cert --value true
sudo -u www-data php occ config:app:get fulltextsearch_elasticsearch allow_self_signed_cert

This resets the password to random.

/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic -a

talk

Need high-perf backend

https://github.com/sunweaver/nextcloud-high-performance-backend-setup/blob/main/README_en.md

coloraba server

https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html

a2enmod proxy proxy_http proxy_connect proxy_wstunnel

docs

https://www.doublebastion.com/apache-configuration-for-nextcloud/