Skip to content

Instantly share code, notes, and snippets.

@junetech
Last active October 25, 2023 06:01
Show Gist options
  • Save junetech/6fe1088982027f53b09eb65c9a97ae74 to your computer and use it in GitHub Desktop.
Save junetech/6fe1088982027f53b09eb65c9a97ae74 to your computer and use it in GitHub Desktop.
Nextcloud on Fedora Workstation 38

Nextcloud on Fedora Workstation 38

Initialization

  • Configuration of self generated SSL certificate
  • MariaDB/MySQL installation
    • # dnf install mariadb-server
    • # systemctl enable --now mariadb
    • # mysql_secure_installation
    • mysql -u root -p
      • CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
      • CREATE DATABASE IF NOT EXISTS nextcloud;
      • GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
      • FLUSH PRIVILEGES;
      • quit
  • Nextcloud installation
    • # dnf install nextcloud
  • Nextcloud server initialization
    • # cd /usr/share/nextcloud/
    • # sudo -u apache php occ maintenance:install --data-dir /var/lib/nextcloud/data/ --database "mysql" --database-name "nextcloud" --database-user "nextcloud" --database-pass "database_password" --admin-user "nextcloud_admin" --admin-pass "nextcloud_admin_password"
      • Replace "*" with proper values
  • Firewall configuration
    • # firewall-cmd --list-all-zones | grep active
    • # firewall-cmd --permanent --zone=public --add-service=http
    • # firewall-cmd --permanent --zone=public --add-service=https
    • # firewall-cmd --reload

Running the cloud

  • # systemctl start httpd
  • # systemctl restart httpd

Fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment