How to Install ownCloud on Rocky Linux 10
ownCloud is a self-hosted open-source file server that enables secure storage, collaboration, and sharing.
ownCloud lets you access your files, calendar, contacts, and other data from any device, and can be shared with a few clicks.
Prerequisites
- The LAMP stack should be installed and running.
Click here for instructions to install the LAMP stack.
Note: ownCloud currently supports PHP 7.4 or PHP 7.3.
Enable EPEL and Remi Repository
Install the EPEL repository:
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
Install the Remi repository:
dnf install https://rpms.remirepo.net/enterprise/remi-release-10.rpm
Enable PHP 7.4
List available PHP module streams:
dnf module list php
Enable and install PHP 7.4:
dnf module enable php:remi-7.4 -y
dnf install php php-{cli,mysqlnd,zip,gd,xml,mbstring,curl,common} -y
Create a Database for ownCloud
Log into MariaDB:
mysql -u root -p
Create database and user:
CREATE DATABASE owncloud_db;
GRANT ALL ON owncloud_db.* TO 'owncloud_user'@'localhost' IDENTIFIED BY 'Enter-A-Password-Here';
FLUSH PRIVILEGES;
EXIT;
Replace
Enter-A-Password-Herewith a strong password.
Install ownCloud
Download ownCloud:
wget https://download.owncloud.org/community/owncloud-complete-latest.tar.bz2
Extract the archive:
tar -jxf owncloud-complete-latest.tar.bz2 -C /var/www/
Set correct ownership:
chown -R apache: /var/www/owncloud
Configure Apache
Create a new config file:
vi /etc/httpd/conf.d/owncloud.conf
Paste the following content:
Alias /owncloud "/var/www/owncloud/"
<Directory /var/www/owncloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud
</Directory>
Restart Apache:
systemctl restart httpd
Configure SELinux (if enabled)
Check SELinux status:
sestatus
If SELinux is enabled, run:
setsebool -P httpd_unified 1
Access ownCloud
Open your browser and navigate to:
http://your-server-ip/owncloud
Then:
- Create Username and Password
- Choose MySQL/MariaDB
- Enter DB name, DB user, and password
- Click Finish Setup
Screenshots
Done
ownCloud is now installed and accessible on Rocky Linux 10.
If you need help, contact CrownCloud Support.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS

