A comprehensive, one-click installation script for Nextcloud All-in-One (AIO) that automatically detects your Linux distribution and handles the complete setup process. Compatible with Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, and Fedora.
- Universal Compatibility: Automatically detects and adapts to different Linux distributions
- One-Click Installation: Complete automation from Docker installation to Nextcloud AIO setup
- Smart Distribution Detection: Supports both Debian-based and RHEL-based systems
- Automatic Firewall Configuration: Configures UFW and firewalld automatically
- IPv6 Support: Pre-configured Docker daemon with IPv6 capabilities
- SELinux Compatibility: Handles SELinux configurations for RHEL-based systems
- Comprehensive Logging: Detailed installation logs for troubleshooting
- Error Recovery: Built-in error handling and recovery mechanisms
| Distribution Family | Supported Versions |
|---|---|
| Debian-based | Ubuntu 18.04+, Debian 10+, Raspbian |
| RHEL-based | AlmaLinux 8+, Rocky Linux 8+, CentOS 7+, RHEL 8+, Fedora 32+ |
- Fresh Linux server (VPS or dedicated server)
- Root access or sudo privileges
- Minimum 2GB RAM, 20GB disk space
- Open ports: 80, 8080, 8443, 3478 (TCP/UDP)
# Download and run the installation script
curl -fsSL https://raw.githubusercontent.com/itsredbull/nextcloud-aio-install-script/main/install-nextcloud-aio.sh | sudo bashOr download and run manually:
# Download the script
wget https://raw.githubusercontent.com/itsredbull/nextcloud-aio-install-script/main/install-nextcloud-aio.sh
# Make it executable
chmod +x install-nextcloud-aio.sh
# Run the installation
sudo ./install-nextcloud-aio.shWe recommend MyHBD.net for hosting your Nextcloud instance:
- Europe: Germany, France, Netherlands, UK
- North America: USA (East & West Coast), Canada
- Asia-Pacific: Singapore, Japan, Australia
- Middle East: UAE, Turkey
- Basic VPS: 2GB RAM, 50GB SSD - Perfect for personal use
- Professional VPS: 4GB RAM, 100GB SSD - Ideal for small teams
- Enterprise VPS: 8GB+ RAM, 200GB+ SSD - For organizations
- Sign up at MyHBD.net
- Choose your preferred location
- Deploy a fresh Ubuntu/Debian VPS
- Run our installation script
- Access your Nextcloud in minutes!
After installation completes, you'll see output similar to:
β
Installation completed successfully!
Access Nextcloud AIO Interface at: https://YOUR_SERVER_IP:8080
-
Open your browser and navigate to
https://YOUR_SERVER_IP:8080- Replace
YOUR_SERVER_IPwith your actual server IP address - Important: Always use the IP address, not a domain name for port 8080
- Replace
-
Accept the self-signed certificate warning in your browser
-
Enter your server's IP address when prompted by the Nextcloud AIO interface
-
Set up your admin credentials and configure your instance
-
Optional: Configure a domain name for easier access via port 8443
- The script automatically configures your firewall
- Always use HTTPS (the script sets up SSL automatically)
- Keep your Nextcloud instance updated through the AIO interface
- Consider setting up automated backups
The script automatically opens these ports, but verify they're accessible:
| Port | Protocol | Purpose |
|---|---|---|
| 80 | TCP | HTTP (redirects to HTTPS) |
| 8080 | TCP | Nextcloud AIO Interface |
| 8443 | TCP | Nextcloud AIO (with domain) |
| 3478 | TCP/UDP | Nextcloud Talk (TURN server) |
If you have a domain pointing to your server:
- Ensure DNS A-record points to your server IP
- Access Nextcloud AIO via
https://yourdomain.com:8443 - Configure SSL certificates through the AIO interface
- Docker CE: Latest stable version with IPv6 support
- Nextcloud AIO Master Container: Official all-in-one solution
- Automatic Services: Nextcloud, Database, Redis, Apache, and more
- SSL Certificates: Automatic Let's Encrypt integration
- Backup Solution: Built-in backup and restore functionality
Check the detailed installation log:
sudo cat /nextcloudinstall.logCheck if Nextcloud AIO container is running:
sudo docker ps | grep nextcloud-aioIf needed, restart the Nextcloud AIO container:
sudo docker restart nextcloud-aio-mastercontainerPort 8080 not accessible:
- Check firewall settings:
sudo ufw statusorsudo firewall-cmd --list-all - Verify container is running:
sudo docker ps
Cannot access via domain:
- Use IP address with port 8080 for initial setup
- Configure domain through AIO interface after initial setup
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create a feature branch
- Test on multiple distributions
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Star this repository if you find it helpful
- Report issues via GitHub Issues
- Share with others who need Nextcloud hosting
- Nextcloud Team for the amazing AIO solution
- Docker for containerization technology
- MyHBD.net for reliable VPS hosting solutions
- Documentation: Nextcloud AIO Documentation
- Community: Nextcloud Forums
- Issues: GitHub Issues
Made with β€οΈ for the Open Source Community