How to Install ownCloud on AlmaLinux 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 just a few clicks. You can synchronize everything between your devices and share files with others easily.

Prerequisites

⚠️ Note: ownCloud currently supports PHP 7.4, so we’ll install it using Remi Repository.

Enable EPEL and Remi Repository

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-10.rpm

Install PHP 7.4

dnf module enable php:remi-7.4
dnf module install php:remi-7.4

You can verify the PHP version using:

php -v

Install Required PHP Modules

dnf install php-curl php-gd php-intl php-json php-ldap php-mbstring php-mysqlnd php-xml php-zip php-opcache

Create a Database for ownCloud

mysql -u root -p

Once in the MySQL shell:

CREATE DATABASE owncloud_db;
GRANT ALL ON owncloud_db.* TO 'owncloud_user'@'localhost' IDENTIFIED BY 'StrongPasswordHere';
FLUSH PRIVILEGES;
EXIT;

Download and Extract ownCloud

dnf install wget tar bzip2
wget https://download.owncloud.com/server/stable/owncloud-complete-latest.tar.bz2
tar -jxf owncloud-complete-latest.tar.bz2 -C /var/www/

Set correct ownership:

chown -R apache: /var/www/owncloud

Configure Apache for ownCloud

Create an Apache config file:

nano /etc/httpd/conf.d/owncloud.conf

Add the following:

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>

Save and exit the file.

Restart Apache:

systemctl restart httpd
systemctl status httpd

Allow SELinux Access (if enabled)

Check SELinux status:

sestatus

If enabled, run:

setsebool -P httpd_unified 1

Access ownCloud in Browser

Now visit:

http://your-server-ip/owncloud

In the browser:

  • Create a Username and Password
  • Choose MySQL/MariaDB
  • Click Finish Setup

images images images

🎉 You’ve successfully installed ownCloud on AlmaLinux 10.

💬 If you encounter any issues, please reach out to us via Support Ticket.


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