
ownCloud is an open-source file hosting, file sync, and content collaboration web application that lets users store and share personal content on a private server. ownCloud's cross-platform compatibility allows you to access your files anywhere, and since it runs on your private server, it eliminates any need for third party cloud hosting services.
Similar to cloud hosting services like Dropbox, Google Drive, One Drive among many others, ownCloud allows you to store files and share them with anyone on the Internet.
ownCloud requires a MySQL database. To create a database, login to the MySQL console.
Enter the MySQL root password you created earlier when asked. Once logged in, create a new database for ownCloud.
Create a new database user and assign a password.
Now, grant the new user full rights to the ownCloud database.
Refresh MySQL user privileges and exit.
You need to install PHP along with all necessary modules required by ownCloud.
With webserver software, a database server, and PHP extensions installed on your server, Owncloud can now run without any difficulties. To get started with installation through a web browser, you must download the Owncloud latest version using wget on your Ubuntu server.
Move the downloaded file to /var/www/html.
Confirm the existence of the moved file.
Now, uncompress the owncloud-complete Zip file to ready files for installation
Next, grant Apache read and write access to the new directory
Edit the default Apache virtual host configuration file, 000-default.conf and make /var/www/html/owncloud/ your domain’s root directory. Replace cloud.example.com with your actual domain name.
Save and close the file.
Restart Apache for changes to take effect
Next, open a web browser on your personal computer (PC) and enter your domain registered on the Ubuntu 21.04 server, or simply enter your server’s public IP address in the URL bar.
You will be presented with the Owncloud post-installation screen; enter your preferred administrator username, password. Then, click the Storage and database drop-down to choose MySQL as your database server, enter the database name, user name, and password created on Step 1 of this guide.
Click Finish Setup to finalize the installation of ownCloud on your server once the provided database information is correct. Next, you will be redirected to the main ownCloud dashboard, where you can get started with configuring your private cloud, upload files, and share links with other users.
To create a new folder and upload new files to your ownCloud server, click the + symbol on the directory bar and choose between your preferred options. Also, uploaded files can be shared with anyone on the Internet by clicking share and selecting the public link to share your files like you would on file hosting platforms like Google Drive, Dropbox, among others.
With all required software installed on your server, ownCloud can be manually installed by adding a new repository to apt. But first, a release key has to be downloaded and signed in order for the ownCloud repository to be marked secure.
Add the downloaded Release package key to your server
Now, add the ownCloud repository to your server’s apt sources list.
Next, update your server
Incase apt update pops errors on the ownCloud repository, simply run
Install ownCloud
ownCloud will be automatically installed on your server. By default, the ownCloud directory will be created at /var/www.
Now, you need to assign the application a default administrator username, password, then set up a database connection to auto-install necessary tables and data using the ownCloud console.
The above commands notify the server to execute php occ arguments as user www-data to write new files in the ownCloud directory. Once executed, ownCloud will be successfully installed on your server, now, you will need to point your Apache virtual host configuration to the ownCloud directory.
Save and close the file
Restart Apache
Next, you need to add your domain to the trusted list.
View the current list of trusted domains.
Add your domain to the list
Now, visit your server URL to login and start using ownCloud.
You have successfully installed ownCloud on Ubuntu 21.04 and can upload, share and download files from your self-hosted cloud server.
0 Comments
Be the first to comment and share your perspective with the community.