ownCloud Installation on Rocky Linux 8

This tutorial guides you through the installation of ownCloud on Rocky Linux 8, allowing you to set up a self-hosted cloud storage solution for file synchronization, sharing, and collaboration.

rocky linux ownCloud
XXLarge
VPS
6
vCPU
24 GB
Memory
240 GB
NVMe Disk
12288 GB
Traffic
56.90
/month
* Up to 12 vCPU, 72GB RAM and 720GB NVMe Disk Space
#### Prerequisites Before you begin, ensure you have: - A server running Rocky Linux 8 (This guide is tested with Rocky Linux 8) - LAMP stack installed (Apache, MariaDB, PHP) - A user account with sudo privileges - Basic familiarity with the command line #### Step 1: Install Apache Web Server Ensure your system's package list is up-to-date, then install Apache: ```bash sudo dnf update sudo dnf install httpd ``` Start and enable Apache to run on system boot: ```bash sudo systemctl start httpd sudo systemctl enable httpd ``` #### Step 2: Install MariaDB Database Server Install MariaDB and secure the installation: ```bash sudo dnf install mariadb-server sudo systemctl start mariadb sudo systemctl enable mariadb sudo mysql_secure_installation ``` #### Step 3: Install PHP and Required Extensions Install PHP along with necessary PHP extensions: ```bash sudo dnf install php php-mysqlnd php-json php-xml php-mbstring php-intl php-gd ``` Restart Apache for PHP to take effect: ```bash sudo systemctl restart httpd ``` #### Step 4: Configure MariaDB for ownCloud Log into MariaDB as the root user: ```bash sudo mysql -u root -p ``` Create a new database and user for ownCloud: ```sql CREATE DATABASE owncloud_db; CREATE USER 'owncloud_user'@'localhost' IDENTIFIED BY 'your_password'; GRANT ALL PRIVILEGES ON owncloud_db.* TO 'owncloud_user'@'localhost'; FLUSH PRIVILEGES; EXIT; ``` #### Step 5: Download and Install ownCloud Navigate to your Apache web root directory and download ownCloud: ```bash cd /var/www/html sudo dnf install wget sudo wget https://download.owncloud.org/community/owncloud-x.x.x.tar.bz2 sudo tar -xjf owncloud-x.x.x.tar.bz2 sudo mv owncloud/* . sudo chown -R apache:apache /var/www/html/ ``` #### Step 6: Complete ownCloud Installation via Web Browser Open your web browser and navigate to your server's IP address or domain name. Follow the ownCloud web installer steps: - Create an admin account and set data folder location. - Configure database settings using `owncloud_db`, `owncloud_user`, and the password you set. - Complete the installation. #### Step 7: Configure Firewall (UFW) for ownCloud If UFW is active, allow HTTP and HTTPS traffic: ```bash sudo ufw allow http sudo ufw allow https sudo ufw reload ``` #### Step 8: Access ownCloud Dashboard Log in to ownCloud using the admin credentials created during installation. You can now start using ownCloud to store, sync, and share files securely. #### Conclusion You have successfully installed ownCloud on Rocky Linux 8 with the LAMP stack. Customize and secure your ownCloud instance based on your organization's needs. **Additional Resources:** - **ownCloud Documentation:** [https://doc.owncloud.com/server/next/](https://doc.owncloud.com/server/next/) - **Rocky Linux Documentation:** [https://docs.rockylinux.org/](https://docs.rockylinux.org/) - **LAMP Stack Installation Guide:** [https://docs.rockylinux.org/guides/lamp-stack](https://docs.rockylinux.org/guides/lamp-stack)


Created with ❤ at Estonia
EcoStack Technology OÜ