How to Install and Configure ownCloud with Apache on Ubuntu 18.04
ownCloud is an open-source, self-facilitated document sync and record share stage, like Dropbox, Microsoft OneDrive, and Google Drive. ownCloud is extensible through applications and has work area and portable customers for every significant stage.
In this instructional exercise, we'll tell you the best way to introduce and arrange ownCloud with Apache on a Ubuntu 18.04 machine.
You'll should be signed in as a client with sudo admittance to have the option to introduce bundles and arrange framework administrations.
Creating a MySQL Database
ownCloud can utilize SQLite, Oracle 11g, PostgreSQL and MySQL information base to store all its setup.
We will utilize MySQL as an information base back-end.
On the off chance that MySQL or MariaDB isn't introduced on your Ubuntu worker you can introduce by following one of the aides beneath:
- Introduce MySQL on Ubuntu 18.04
- Introduce MariaDB on Ubuntu 18.04
Start by login into the MySQL shell by composing the accompanying order:
From inside the MySQL shell, run the accompanying SQL proclamation to make an information base :
CREATE DATABASE owncloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
Next, make a MySQL client record and award admittance to the information base:
GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'change-with-strong-password';
At last, leave the mysql reassure by composing:
Installing PHP and Apache
ownCloud is a PHP application. PHP 7.2, which is the default PHP in Ubuntu 18.04 , is completely upheld and suggested for ownCloud.
Introduce Apache and all necessary PHP expansions utilizing the accompanying order:
sudo apt install apache2 libapache2-mod-php7.2 openssl php-imagick php7.2-common php7.2-curl php7.2-gd php7.2-imap php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-pgsql php-smbclient php-ssh2 php7.2-sqlite3 php7.2-xml php7.2-zip
Step 3: Configuring Firewall
Expecting you are utilizing UFW to deal with your firewall, you'll have to open HTTP (80) and HTTPS (443) ports. You can do that by empowering the 'Apache Full' profile which incorporates rules for the two ports:
sudo ufw allow 'Apache Full'
At the hour of composing this article, the most recent stable form of ownCloud is rendition 10.3.2. Prior to proceeding with the following stage, visit the ownCloud download page and check if there is another rendition of ownCloud accessible.
Utilize the accompanying wget order to download the ownCloud zip file:
wget https://download.owncloud.org/community/owncloud-10.3.2.zip -P /tmp
Once the download is finished, extricate the file to the/var/www registry:
sudo unzip /tmp/owncloud-10.3.2.zip -d /var/www
Set the right possession so the Apache webserver can have full admittance to the ownCloud's documents and indexes.
sudo chown -R www-data: /var/www/owncloud
Step 5: Configuring Apache
Open your content tool and make the accompanying Apache design document.
sudo nano /etc/apache2/conf-available/owncloud.conf
Alias /owncloud "/var/www/owncloud/" <Directory /var/www/owncloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/owncloud SetEnv HTTP_HOME /var/www/owncloud </Directory>
Empower the recently added design and all necessary Apache modules with:
sudo a2enconf owncloud sudo a2enmod rewrite sudo a2enmod headers sudo a2enmod env sudo a2enmod dir
Initiate the progressions by restarting Apache administration:
sudo systemctl reload apache2
Step 6: Installing ownCloud
Since ownCloud is downloaded, and the important administrations are arranged open your program and start the ownCloud establishment by visiting your worker's space name or IP address followed by/owncloud :
You will be given the ownCloud arrangement page.
Enter your ideal administrator username and secret key and the MySQL client and information base subtleties you recently made.
Snap on the Finish arrangement button. When the establishment cycle is finished, you will be diverted to the ownCloud dashboard signed in as administrator client.
You have figured out how to introduce and design ownCloud on your Ubuntu 18.04 machine. In the event that you have a space name related with your ownCloud worker, you should protect your Apache with a free Let's Encrypt SSL testament.
To discover more data about how to deal with your ownCloud example, visit the ownCloud documentation page.
On the off chance that you have any inquiries, it would be ideal if you leave a remark underneath.
Particle is an open-source cross-stage code manager created by GitHub. It has an inherent bundle chief, inserted Git control, keen autocompletion, ...
An HTML editor is a software for enhancing HTML, the markup of an internet web page. It stands for Tiny Moxiecode Content Editor. TinyMCE is a effe...
Redis is an open-source in-memory key-esteem information store. It tends to be utilized as an information base, store and, message representative, ...
phpMyAdmin is an open-source PHP based instrument for overseeing MySQL and MariaDB workers over an online interface. phpMyAdmin permits you ...
While diverting the yield of an order to a document or funneling it to another order, you may see that the blunder messages are imprinted on the sc...
Deb is the establishment bundle design utilized by all Debian based dispersions. The Ubuntu vaults contain a huge number of deb bundles that...
CodeIgniter Subquery: This tutorial will explain you how to write subquery in codeigniter using active records. SubQuery is a query ...
Hi! In this tutorial we'll see how to find codeigniter version you are using. For pros it may sound basic but would be a challenge fo...
R is an open-source programming language and free climate that has practical experience in factual figuring and graphical portrayal. It is principa...
FTP (File Transfer Protocol) is a standard customer worker network convention that permits clients to move documents to and from a distant organiza...
Cup is a free and open-source miniature web system for Python intended to assist engineers with building secure, adaptable and viable web applicati...
Docker Compose is an instrument that permits you to characterize and arrange multi-holder Docker applications. It utilizes a YAML document to arran...
Spotify is a computerized music real time feature that gives you moment admittance to a great many melodies, from old works of art to the most rece...
sudo is an order line program that permits confided in clients to execute orders as root or another client. In this article we'll show b...
PHP is one of the most utilized worker side programming dialects. Numerous well known CMS and structures, for example, WordPress, Magento, and Lara...
Apache Maven is an open-source venture the executives and perception device utilized principally for Java ventures. Expert uses a Project Object Mo...
twist is an order line utility for moving information from or to a far off worker. With twist, you can download or transfer information utilizing o...
Vim/Vi is the word processor of decision for some product designers and Linux framework chairmen. As a matter of course, Vim doesn't sho...
Trade is a space on a plate that is utilized when the measure of actual RAM memory is full. At the point when a Linux framework runs out of RAM, in...