How to install ownCloud on Ubuntu
In this tutorial, we will explain how to install ownCloud on Ubuntu.
ownCloud is a suite of client-server software for creating and using file hosting services. ownCloud functionally has similarities to the widely used Dropbox. The primary functional difference between ownCloud and Dropbox is that ownCloud does not offer data centre capacity to host stored files. The Server Edition of ownCloud is free and open-source, thereby allowing anyone to install and operate it without charge on their own private server.
Prerequisites
You will need:
- VPS running Ubuntu
Step 1 – Install LAMP
ownCloud requires a LAMP Server. First, run tasksel
sudo tasksel
After, hit space to select LAMP server and hit Enter to install.
Now, to install PHP add php repository
sudo add-apt-repository ppa:ondrej/php
And after, install PHP and PHP extensions:
sudo apt-get install php7.2 php7.2-cli php7.2-common php7.2-mbstring php7.2-gd php7.2-intl php7.2-xml php7.2-mysql php7.2-zip php7.2-curl php7.2-xmlrpc
Step 2 – Install ownCloud
Now it’s time to install ownCloud. Download ownCloud zip file:
wget https://download.owncloud.org/community/owncloud-10.0.8.zip
Extract it:
unzip owncloud-*.zip
Move files to /var/www/html
sudo mv owncloud /var/www/html/
Give permission to files:
sudo chown -R www-data:www-data /var/www/html/owncloud/
sudo chmod -R 755 /var/www/html/owncloud/
Step 3 – Create Database
MySQL is need to store ownCloud informations.
Now, login to MySQL:
mysql -u root -p
Enter for none password and create a database for ownCloud:
CREATE DATABASE owncloud;
CREATE USER ‘owncloud’@’localhost’ IDENTIFIED BY ‘password’;
GRANT ALL PRIVILEGES ON owncloud.* TO ‘owncloud’@’localhost’;
FLUSH PRIVILEGES;
exit
Step 4 – Finish Setup
Open your browser and go to your ownCloud URL:http://youripaddress/owncloud
Create an admin account:
Click on Storage & Database and enter your data folder:
Now configure the database and click on Finish Setup button:
Now you can log in to ownCloud with the created account.
You have successfully installed ownCloud on Ubuntu.
Enjoy.