How to Install OwnCloud on Your Server
OwnCloud is a self-hosted file sync and share server. It allows you to store your files, contacts, calendars, and more and access them from any device. In this step-by-step guide, we will show you how to install OwnCloud on your own server.
Step 1: Prerequisites
Before you begin the installation process, make sure you have the following prerequisites:
- A server running Ubuntu 18.04 or higher
- Root access to the server
- LAMP stack installed (Linux, Apache, MySQL, PHP)
- SSL certificate installed
Step 2: Download OwnCloud
First, SSH into your server and download the latest version of OwnCloud:
cd /tmp
wget https://download.owncloud.org/community/owncloud-10.8.0.tar.bz2
Step 3: Extract OwnCloud
Next, extract the OwnCloud archive:
tar -xvf owncloud-10.8.0.tar.bz2
Step 4: Move OwnCloud Files
Move the extracted files to the Apache web root directory:
sudo mv owncloud /var/www/html/
Step 5: Set Permissions
Change the ownership of the OwnCloud directory to the Apache user:
sudo chown -R www-data:www-data /var/www/html/owncloud/
Step 6: Create a MySQL Database
Log in to MySQL and create a new database and user for OwnCloud:
mysql -u root -p
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 7: Complete the Installation
Finally, open a web browser and navigate to your server’s IP address or domain followed by /owncloud to complete the installation process. Follow the on-screen instructions to set up your admin account and configure OwnCloud.
That’s it! You have successfully installed OwnCloud on your server. You can now start syncing and sharing your files securely. Enjoy!