This repository contains a bash script to automate the installation of Nextcloud on Debian or Ubuntu servers. The script handles the installation and configuration of necessary dependencies, web server setup, database setup, and Nextcloud installation.
-
Clone the repository:
git clone https://github.com/yourusername/Nextcloud-Install.git cd Nextcloud-Install
-
Make the script executable:
chmod +x nextcloud_install.sh
-
Run the script with superuser privileges:
sudo ./nextcloud_install.sh
-
Follow the prompts to select your distribution and web server.
- Automatic Dependency Installation: Installs PHP 8.3, required PHP extensions, MariaDB, Redis, and more.
- Web Server Configuration: Supports both Apache and Nginx.
- Database Configuration: Creates a database and user for Nextcloud with randomly generated credentials.
- Nextcloud Configuration: Sets up Nextcloud with optimal settings for performance and security.
- Logging: Captures the output of each command to a log file for troubleshooting.
The script creates a log file at /var/log/nextcloud_install.log
to record the output of each command executed. This log can be used to troubleshoot any issues that arise during the installation.
Contributions are welcome! Please fork the repository and submit a pull request.
- Fork the repository
- Create a feature branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature-branch
) - Open a pull request
This project is licensed under the MIT License. See the LICENSE file for details.
By following the steps outlined in this README, you should be able to successfully install and configure Nextcloud on your server. If you encounter any issues, refer to the log file or open an issue in the repository. Happy self-hosting!