Welcome to Fedora Tutorial. Today, we are going to install Nextcloud on Fedora 28. Nextcloud is a powerful, rich features personal cloud appliance. You can use Nextcloud as an online file sharing and storage service. The new Nextcloud 13.0.5 server is now available for download. It comes with many new features, better performance and many bug fixes. To install Nextcloud on Fedora 28, there are several things we need to prepare. Let’s jump into it.
In my previous tutorial, I have written some tutorial to install Nextcloud server on various operating systems. Please check out from the link below:
Table of Contents
- Install LAMP Server on Fedora 27
- Install additional PHP modules
- Download Nextcloud
- Configure Apache-Nextcloud
- Create a MySQL database
- Configure SELinux
- Finalizing the Nextcloud installation
Steps to Install Nextcloud 13 on Fedora 28
Step 1. Install LAMP Server on Fedora 28
We are going to run Nextcloud on top of LAMP Server. LAMP (Linux, Apache, MySQL/MariaDB and PHP) is a powerful appliance that will turn your Linux into a powerful web server. Please read this post to install LAMP Server on Fedora 28.
Step 2. Install additional php modules
Nextcloud requires some php modules to be installed. After setting up LAMP Server, continue installing some php modules with the following command.
su dnf install php-zip php-pdo_mysql php-imagic php-ctype php-dom php-gd php-zlib
Step 3. Download Nextcloud
Download the latest package of Nextcloud. By the time we write this article, Nextcloud 13.0.5 is available on the official website. So, let’s download this one.
cd /tmp wget https://download.nextcloud.com/server/releases/nextcloud-13.0.5.zip
Extract the file
Change ownership to Apache user
chown -R apache:apache nextcloud
Move the nextcloud directory to /var/www/html
mv nextcloud /var/www/html
Step 4. Configure Apache (Create new Virtual Host)
After we move the nextcloud directory to the web server root folder, we need to create a new virtual host for Nextcloud.
Now paste the following lines
Alias /nextcloud "/var/www/html/nextcloud/" <Directory /var/www/html/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/html/nextcloud SetEnv HTTP_HOME /var/www/html/nextcloud </Directory>
Please note that you will need to modify the lines above if you install nextcloud to a different location. Close and save the file.
5. Create a new MySQL Database and User
The following step will create a new user and database for our Nextcloud.
Login to MySQL console
mysql -u root -p
Create New user:
CREATE USER 'dhani'@'localhost' IDENTIFIED BY '12345';
Create new Nextcloud database
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'dhani'@'localhost' IDENTIFIED BY '12345'; FLUSH PRIVILEGES; EXIT;
6. Configure SELinux
We need to set SELinux to permissive. By default, the SELinux policy is set to enforcing.
Set the SELINUX to permissive as shown in the following image.
Now reboot Fedora
Step 7. Configure Nextcloud via Web Browser
Open a web browser and then type the Fedora IP address.
Don’t forget to change the IP address with your Fedora IP address. We will need to create an admin account that responsible to the Nextcloud server.
Create a new admin user and password.
Select MySQL/MariaDB and then enter the MySQL database and user we created earlier. Click Finish setup. In few moments, Nextcloud is ready.
Thanks for reading this How to Install Nextcloud on Fedora 28. Please share this article if you think its useful. See you in the next Fedora tutorials.