How to Install Nextcloud on OpenSUSE Latest
Nextcloud is a free and open source collaboration platform that allows you to store, share, and collaborate on your data. In this tutorial, we will guide you through the steps to install Nextcloud on OpenSUSE.
Prerequisites
Before installing Nextcloud, make sure your system meets the following requirements:
- OpenSUSE Latest
- Root access or sudo privileges
Step 1: Install Apache and PHP
Update the system package repository:
sudo zypper updateInstall the Apache webserver and PHP by running the following command:
sudo zypper install apache2 php php-mbstring php-pdo php-gd php-intl php-zip php-dom php-xmlreader php-xmlwriter php-json php-curlStart and enable Apache to automatically start at boot time:
sudo systemctl start apache2 sudo systemctl enable apache2
Step 2: Install MariaDB
Install MariaDB database server:
sudo zypper install mariadb mariadb-clientStart and enable MariaDB to start at boot time:
sudo systemctl start mariadb sudo systemctl enable mariadbSecure the MariaDB installation by running the following command:
sudo mysql_secure_installation
Step 3: Install Nextcloud
Download the latest version of Nextcloud from the official website:
sudo zypper install wget wget https://download.nextcloud.com/server/releases/nextcloud-20.0.9.zipExtract the downloaded file to the Apache webserver document root directory:
sudo unzip nextcloud-20.0.9.zip -d /srv/www/htdocs/Change the ownership of the Nextcloud directory to the Apache user and group:
sudo chown -R apache:apache /srv/www/htdocs/nextcloud
Step 4: Configure Apache for Nextcloud
Create an Apache virtual host configuration file for Nextcloud:
sudo nano /etc/apache2/conf.d/nextcloud.confAdd the following lines:
Alias /nextcloud "/srv/www/htdocs/nextcloud/" <Directory "/srv/www/htdocs/nextcloud/"> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /srv/www/htdocs/nextcloud SetEnv HTTP_HOME /srv/www/htdocs/nextcloud </Directory>Save and close the file.
Restart Apache for the changes to take effect:
sudo systemctl restart apache2
Step 5: Set up Nextcloud
Open your web browser and navigate to
http://your_server_ip/nextcloud. You should see the Nextcloud setup page.Set up the administrator account and database connection.
Follow the prompts and complete the installation.
Once the installation is complete, you can log in to Nextcloud and start using it.
Congratulations! You have successfully installed Nextcloud on OpenSUSE.