$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Install ownCloud on Rocky Linux 9: SELinux, LDAP & Clustering

October 22, 2025 | By the+gnu+linux+evangelist.

How to Install ownCloud

  1. 6. Download and Extract ownCloud

    Get the latest ownCloud release from the official repository and extract it into your web root:

    cd /var/www/html && sudo curl -O https://download.owncloud.org/community/owncloud-complete-latest.tar.bz2 && sudo tar -xjf owncloud-complete-latest.tar.bz2 && sudo chown -R apache:apache owncloud
  2. 7. Configure Apache Virtual Host

    Create a new Apache configuration file for ownCloud:

    sudo tee /etc/httpd/conf.d/owncloud.conf <<'EOF'
    <VirtualHost *:80>
        ServerName owncloud.example.com
        DocumentRoot /var/www/html/owncloud
        <Directory /var/www/html/owncloud>
            AllowOverride All
            Require all granted
        </Directory>
    </VirtualHost>
    EOF
  3. 8. Adjust SELinux Contexts

    Apply proper SELinux permissions so Apache can write to ownCloud’s directories:

    sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud(/.*)?' && sudo restorecon -Rv /var/www/html/owncloud
  4. 9. Allow HTTP/HTTPS Through Firewall

    Open the firewall ports for web access:

    sudo firewall-cmd --permanent --add-service=http && sudo firewall-cmd --permanent --add-service=https && sudo firewall-cmd --reload
  5. 10. Enable HTTPS with Certbot

    Install Certbot and automatically configure HTTPS for Apache:

    sudo dnf install certbot python3-certbot-apache -y && sudo certbot --apache
  6. 11. Configure PHP for Performance

    Optimize PHP settings for better performance and high availability:

    sudo sed -i 's/memory_limit = .*/memory_limit = 512M/' /etc/php.ini && sudo systemctl restart php-fpm httpd
  7. 12. Setup LDAP Authentication

    Enable enterprise-level LDAP integration from the ownCloud app settings or CLI:

    sudo -u apache php /var/www/html/owncloud/occ app:enable user_ldap
  8. 13. Enable Clustering Support

    Set up Redis caching for locking and session management in clustered environments:

    sudo dnf install redis php-redis -y && sudo systemctl enable --now redis && sudo -u apache php /var/www/html/owncloud/occ config:system:set memcache.locking --value '\OC\Memcache\Redis'
  9. 14. Optional: Configure NGINX Instead of Apache

    To use NGINX, disable Apache and install NGINX with compatible PHP-FPM configuration:

    sudo systemctl disable --now httpd && sudo dnf install nginx php-fpm -y && sudo systemctl enable --now nginx php-fpm
  10. 15. Finalize Installation via Browser

    Open your browser at http://owncloud.example.com and complete the web setup wizard by entering database credentials and admin account details.

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,