ownCloud is a self-hosted open-source file server that offers secure storage, collaboration, and sharing capabilities. With ownCloud, you can conveniently access your files, calendar, contacts, and other data from any device, and easily share them with others. This guide will walk you through the step-by-step process of installing ownCloud on Rocky Linux 9, ensuring a seamless setup and configuration.
Prerequisites
Before we begin the installation process, there are a few prerequisites that need to be met:
- LAMP Stack: Ensure that the LAMP (Linux, Apache, MySQL, PHP) stack is installed and running on your Rocky Linux 9 server. If you haven’t installed it yet, you can refer to the official instructions provided by Shape.host.
- PHP Version: ownCloud currently supports PHP 7.4 or PHP 7.3. Make sure you have one of these versions installed on your server. If not, you can follow the steps below to install PHP 7.4:
- Install the EPEL repository by running the following command:
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
- Install the Remi repository using the following command:
dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
- List the available PHP module streams by executing the command:
dnf module list php
- Install PHP 7.4 via the Remi repository:
dnf module install php:remi-7.4
Now that we have fulfilled the prerequisites, we can proceed with the installation process.
Installing ownCloud
Follow the steps below to install ownCloud on Rocky Linux 9:
- Download ownCloud: Start by downloading the latest version of ownCloud using the following command:
wget https://download.owncloud.org/community/owncloud-complete-latest.tar.bz2
- Extract the Files: Once the download is complete, extract the ownCloud files into the
/var/www/
directory:
tar -jxf owncloud-complete-latest.tar.bz2 -C /var/www/
- Set Permissions: In order for the Apache webserver to access the ownCloud files, we need to set the correct permissions. Run the following command to achieve this:
chown -R apache: /var/www/owncloud
- Configure Apache: To serve ownCloud with the Apache webserver, we need to create a configuration file. Open the file
/etc/httpd/conf.d/owncloud.conf
with your preferred text editor, and add the following lines:
Alias/owncloud" /var/www/owncloud/" <Directory /var/www/owncloud/> Options +FollowSymlinks Allow Override All <If Module mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/owncloud SetEnv HTTP_HOME /var/www/owncloud </Directory>
Save the file and exit the text editor.
- Restart Apache: To apply the changes, restart the Apache webserver:
systemctl restart httpd
- SELinux Configuration: If SELinux is enabled and running on your system, execute the following command to allow the Apache webserver to write to ownCloud’s directory:
setsebool -P httpd_unified1
This will ensure proper functioning of ownCloud.
Congratulations! ownCloud is now successfully installed on your Rocky Linux 9 server. To complete the setup, follow the final steps outlined below.
Finalizing ownCloud Setup
- Access ownCloud: Open a web browser and enter the following URL to access ownCloud:
http://server-ip/owncloud
Replace server-ip
with the IP address or domain name of your Rocky Linux 9 server.
- Create an Account: On the ownCloud login page, enter your desired username and password to create a new account.
- Storage and Database Configuration: After logging in, navigate to the “Storage and Database” section and select “MySQL/MariaDB”. Fill in the required database details, including the database user, password, and name.
- Finish Setup: Click on the “Finish Setup” button to complete the ownCloud installation. Once the setup is finished, you will be redirected to the ownCloud dashboard.
Now you can start using ownCloud to securely store, collaborate, and share your files and data across all your devices.
Additional Information
If you encounter any technical difficulties or require further assistance during the installation process, don’t hesitate to reach out to Shape.host’s support team via a support ticket. They are experts in cloud hosting solutions and will be more than happy to help you.
At Shape.host, we offer reliable and scalable Linux SSD VPS hosting services. Our hosting solutions are designed to meet the demands of businesses seeking efficient and secure cloud hosting. Experience the power of Shape.host’s Linux SSD VPS hosting today and elevate your business to new heights.
In conclusion, this comprehensive guide has provided you with a step-by-step walkthrough of installing ownCloud on Rocky Linux 9. By following these instructions, you can enjoy the benefits of a self-hosted file server that enables secure storage, collaboration, and sharing. Embrace the convenience and flexibility of ownCloud to streamline your workflow and boost productivity.