Nextcloud: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
Assumes Firewall ports are opened</pre>
Assumes Firewall ports are opened</pre>
<pre>
<pre>
Necessary php packages
Necessary php packages
dnf -y install php-mbstring php-gd php-pecl-zip php-xml php-json unzip
dnf -y install epel-release
dnf config-manager --set-enabled powertools
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf -y module reset php
dnf module install php:remi-8.1
dnf install php-mbstring php-gd php-pecl-zip php-xml php-json unzip php php-cli php-mysqlnd php-zip php-devel \
            php-gd php-mcrypt php-curl php-xml php-pear php-bcmath php-json php-pdo php-pecl-apcu \
            php-pecl-apcu-devel php-ldap
 


Nextcloud package
Nextcloud package

Revision as of 13:03, 27 March 2024

Assumes Apache, MySQL, & PHP installed
Assumes Firewall ports are opened

Necessary php packages
dnf -y install epel-release
dnf config-manager --set-enabled powertools
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf -y module reset php
dnf module install php:remi-8.1
dnf install php-mbstring php-gd php-pecl-zip php-xml php-json unzip php php-cli php-mysqlnd php-zip php-devel \
            php-gd php-mcrypt php-curl php-xml php-pear php-bcmath php-json php-pdo php-pecl-apcu \
            php-pecl-apcu-devel php-ldap


Nextcloud package
wget https://download.nextcloud.com/server/releases/latest.zip
unzip latest.zip -d /var/www/html
mkdir /var/www/html/nextcloud/data
chown -R apache:apache /var/www/html/nextcloud/*
chcon -h system_u:object_r:httpd_sys_content_t /var/www/html/nextcloud/ -R

Database Setup
MYSQLPW=$password
credfile=~/sql.cnf
echo -e "[client]\nuser=root\npassword=$MYSQLPW\nhost=localhost" > $credfile
mysql --defaults-extra-file=$credfile -e "CREATE USER nextcloud@localhost  IDENTIFIED BY 'p@ssw0rd'"
mysql --defaults-extra-file=$credfile -e "GRANT ALL ON nextcloud.* TO nextcloud@localhost"
mysql --defaults-extra-file=$credfile -e "CREATE DATABASE nextcloud;"
mysql --defaults-extra-file=$credfile -e "FLUSH PRIVILEGES;"

Admin Configuration
http://nextcloud.host.tld.or.ip/nextcloud
Add users
Add Groupware (Mail, Contacts, Calendar, Desktop, TOTP two-factor authentication)

Users create there own account