Nextcloud: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Assumes Apache, MySQL, & PHP installed | <pre>Assumes Apache, MySQL, & PHP installed | ||
Assumes Firewall ports are opened | Assumes Firewall ports are opened<pre> | ||
<pre> | <pre> | ||
Necessary php packages | Necessary php packages |
Revision as of 12:37, 27 March 2024
Assumes Apache, MySQL, & PHP installed Assumes Firewall ports are opened<pre> <pre> Necessary php packages dnf install php-mbstring php-gd php-pecl-zip php-xml php-json unzip 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