{"id":22778913,"url":"https://github.com/kristiangasic/nextcloud","last_synced_at":"2026-02-18T15:01:15.602Z","repository":{"id":264202786,"uuid":"892680973","full_name":"kristiangasic/nextcloud","owner":"kristiangasic","description":"This script automates the installation and configuration of Nextcloud on an Ubuntu 22.04 server. It includes the setup of Apache, MariaDB, PHP 8.1, Redis, and Opcache. Additionally, it offers the option to install SSL certificates using Certbot.","archived":false,"fork":false,"pushed_at":"2024-12-23T12:21:58.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T07:34:31.656Z","etag":null,"topics":["bash","docker","nextcloud-installation","php","yml"],"latest_commit_sha":null,"homepage":"https://gasic.bio","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kristiangasic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-22T15:14:57.000Z","updated_at":"2025-08-15T23:59:24.000Z","dependencies_parsed_at":"2025-07-22T23:37:33.710Z","dependency_job_id":null,"html_url":"https://github.com/kristiangasic/nextcloud","commit_stats":null,"previous_names":["kristiangasic/nextcloud"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kristiangasic/nextcloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiangasic%2Fnextcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiangasic%2Fnextcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiangasic%2Fnextcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiangasic%2Fnextcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristiangasic","download_url":"https://codeload.github.com/kristiangasic/nextcloud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiangasic%2Fnextcloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006622,"owners_count":26084131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","docker","nextcloud-installation","php","yml"],"created_at":"2024-12-11T20:07:09.367Z","updated_at":"2025-10-11T07:34:32.095Z","avatar_url":"https://github.com/kristiangasic.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/kristiangasic"],"categories":[],"sub_categories":[],"readme":"# 🚀 Nextcloud Installation Script\n\nThis script automates the installation and configuration of **Nextcloud** on an **Ubuntu 22.04** server. It includes the setup of Apache, MariaDB, PHP 8.1, Redis, and Opcache. Additionally, it offers the option to install SSL certificates using Certbot.\n\n---\n\n## 🛠️ Features\n- **Automatic installation** of Nextcloud and all required dependencies.\n- **Configuration** of MariaDB, PHP 8.1, Redis, and Opcache.\n- **SSL certificate option**: Install during setup or at a later stage.\n- **Detection of existing installations**: Option to add SSL later.\n\n---\n\n## ⚙️ Requirements\n- Fresh installation of **Ubuntu 22.04**.\n- Root or sudo access to the server.\n\n---\n\n## 📖 Usage\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/kristiangasic/nextcloud.git\n   ```\n\n2. **Navigate to the script directory:**\n   ```bash\n   cd nextcloud\n   ```\n\n3. **Make the script executable:**\n   ```bash\n   chmod +x install_nextcloud.sh\n   ```\n\n4. **Run the script:**\n   ```bash\n   sudo ./install_nextcloud.sh\n   ```\n\n5. **Follow the instructions:**\n   - Enter the MariaDB username and password.\n   - Provide the subdomain for your Nextcloud instance.\n\n### Optional: SSL Installation\nIf you don't install SSL during the initial setup, you can rerun the script later to add SSL.\n\n---\n\n### **Option 2: Using Docker**\n\n#### 📂 **Prepare the files**\n1. **Create the necessary files:**\n   - `Dockerfile`: Container image for Nextcloud.\n   - `docker-compose.yml`: Docker Compose configuration for Nextcloud, MariaDB, Redis, and optionally a reverse proxy.\n   - `php.ini`: Configuration for PHP (e.g., upload limits and Opcache).\n\n2. **File contents:**\n   - Copy the file contents from the relevant sections below.\n\n---\n\n#### ⚙️ **Instructions**\n1. **Create the project structure:**\n   ```bash\n   mkdir nextcloud-docker \u0026\u0026 cd nextcloud-docker\n   touch Dockerfile docker-compose.yml php.ini\n   ```\n\n2. **Add file content:**\n   Insert the provided content into the respective files.\n\n3. **Start Docker containers:**\n   ```bash\n   docker-compose up -d\n   ```\n\n4. **Set up Nextcloud:**\n   Open `http://\u003cserver-ip\u003e` in your browser and follow the Nextcloud installation wizard.\n\n5. **Add SSL certificates (optional):**\n   If using a reverse proxy like Traefik, SSL certificates will be configured automatically through Let's Encrypt.\n\n---\n\n## 🔍 Script Details\n- **User input collection:** MariaDB credentials and subdomain.\n- **Installation log creation:** Saves installation details, including the MariaDB password in plain text, for later reference.\n- **Install Nextcloud:** Configures Apache, MariaDB, PHP 8.1, Redis, and Opcache. Downloads and sets up Nextcloud.\n- **Install SSL:** Optional installation of SSL certificates using Certbot.\n\n---\n\n## 📝 Notes\n- Ensure your DNS settings point the subdomain to your server's IP address.\n- The script checks for existing Nextcloud installations and offers SSL options only if Nextcloud is already set up.\n\n---\n\n## ❓ Troubleshooting\n- **Apache issues:** Check logs in `/var/log/apache2/`.\n- **MariaDB issues:** Ensure the database and user are correctly created.\n- **Network issues:** Check firewall rules if connectivity issues arise.\n\n---\n\n## 🧑‍💻 Author\n- **Kristian Gasic**\n- Provided by **https://gasic.bio**\n- License: **Free for use**\n\n---\n\n## 📬 Support\nFor questions or assistance:\n**kristian@gasic.bio \u0026 Discord : Pain0xF**\n\n🎥 **Video Tutorial:** [Watch on YouTube](https://www.youtube.com/watch?v=_KRrfq_h9rk)\n\n[![Buy Me A Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/kristiangasic)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristiangasic%2Fnextcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristiangasic%2Fnextcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristiangasic%2Fnextcloud/lists"}