Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Install NextCloud on Fedora

This post will show you how to Install Nextcloud on Fedora.

Prerequisites

  • A server running Fedora 34 on the Atlantic.Net Cloud Platform
  • A root password is configured on your server

Step 1 – Create Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server. Next, create a new server, choosing Fedora 34 as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Once logged in to your server, run the following command to update your base system with the latest available packages.

dnf update -y

Step 2 – Install Apache and PHP

First, install Apache web server using the following command.

dnf install httpd -y

Next, add the Repi repository to install the latest PHP version.

dnf install -y http://rpms.remirepo.net/fedora/remi-release-34.rpm

Next, reset the default PHP module and enable the Remi repository with the following command.

dnf module reset php -y
dnf module install php:remi-8.1

Next, install PHP using the following command.

dnf install php php-gd php-curl php-dom php-xml php-simplexml php-mbstring php-json -y

Next, install other required PHP extensions using the following command.

yum --enablerepo=remi install php-intl php-zip

Finally, start and enable the Apache service using the following command.

systemctl enable --now httpd

Step 3 – Install and Configure MariaDB Database

First, install MariaDB on your server.

dnf install mariadb mariadb-server -y

Next, start and enable the MariaDB service.

systemctl enable --now mariadb

Next, log in to the MariaDB shell with the following command.

mysql

Once you are connected, create a user and database for Nextcloud.

create database nextcloud;
create user 'nextcloud'@'localhost' identified by 'password';

Next, grant all the privileges on the Nextcloud database.

grant all privileges on nextcloud.* to 'nextcloud'@'localhost';

Next, flush the privileges and exit from the MariaDB shell.

flush privileges;
exit;

Step 4 – Download and Install Nextcloud

First, download the latest version of Nextcloud using the following command.

wget https://download.nextcloud.com/server/releases/latest.tar.bz2

Next, extract the downloaded file with the following command.

tar -xjf latest.tar.bz2

Next, move the extracted directory to the Apache web root.

mv nextcloud /var/www/html/nextcloud

Next, create a data directory for Nextcloud.

mkdir /var/www/html/nextcloud/data

Next, change the ownership of Nextcloud.

chown -R apache:apache /var/www/html/nextcloud

Step 5 – Configure Apache for Nextcloud

Next, create an Apache virtual server block to host Nextcloud on the web.

nano /etc/httpd/conf.d/nextcloud.conf

Add the following configurations.


    ServerName nextcloud.example.com
    DocumentRoot /var/www/html/nextcloud
    ErrorLog /var/log/httpd/nextcloud_error.log
    CustomLog /var/log/httpd/nextcloud_requests.log combined
    
    
  Options +FollowSymlinks
  AllowOverride All

 
  Dav off
 

 SetEnv HOME /var/www/html/nextcloud
 SetEnv HTTP_HOME /var/www/html/nextcloud

Save and close the file, then restart the Apache service to apply the changes.

systemctl restart httpd

Step 6 – Access Nextcloud Interface

Now, open your web browser and access Nextcloud using the URL http://nextcloud.example.com. You should see the following screen.

Provide all required information and click on the Install button. Once the Nextcloud is installed, you should see the following screen.

Conclusion

In this post, we explained how to Install Nextcloud with Apache on Fedora. You can now install Nextcloud client software on your desktop or mobile device and then sync and share your data with other users. Try to install Nextcloud on dedicated server hosting from Atlantic.Net!

The post How to Install NextCloud on Fedora appeared first on Atlantic.Net.



This post first appeared on The Atlantic.Net, please read the originial post: here

Share the post

How to Install NextCloud on Fedora

×

Subscribe to The Atlantic.net

Get updates delivered right to your inbox!

Thank you for your subscription

×