• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Instructions for installing NextCloud on your computer

AnonyViet by AnonyViet
January 25, 2023
in Network
0

NextCloud is software that helps you create your own private cloud storage service. That is, the data will be stored on your own computer/Server. You will install, authorize, create a user and have an App to install on your phone. NextCloud is great if you want to access your data remotely or a company wants to create Cloud Storage for employees to use.

Join the channel Telegram of the AnonyViet 👉 Link 👈

Today, I will show everyone how to install NextCloud on Raspberry Pi. Of course, you can also install NextCloud on your personal computer.

What is NextCloud?

NextCloud is a form of Client-Server-Software for creating cloud storage services. This is one of the open software that allows users to change the Sourcecode and allows users to create their own Server

NextCloud has an easy-to-use interface that is friendly to a wide range of devices and they have provided additional client versions for Windows, Android or even iOS.

Prepare

  • A computer or VPS or Raspberry Pi has pre-installed operating system (I use Raspberry Pi 4GB Ram – 32GB microSD card and run Ubuntu Server 20.04 LTS)
  • Network (opened port 443 and port 80)
  • Logged in user root (can see instructions here)
  • It is recommended to use SSH to connect

Things we will install:

  • Apache
  • PHP 7.4.1
  • MySQL
  • NextCloud

Instructions for installing Apache

Step 1: Install Apache

sudo apt install apache2 -y

Step 2: Start and Enable Apache

sudo systemctl start apache2
sudo systemctl enable apache2

Step 3: Check Firewall with ufw . command

sudo ufw app list

ufw list is running

It’s ok now

Step 4: Allow traffic on port 80 and 443

sudo ufw app info "Apache Full"

Let traffic flow through ports 80 and 443

It’s okay now

Please check if the server is up

Since my raspberry pi’s IPv4 address is 192.168.1.5, I’ll try it out

Apache HTML

If it does, it means Apache is up and running

Installing and configuring MySQL

Step 1: Install MySQL

sudo apt install mysql-server -y

Step 2: Set root password for MySQL

sudo mysql_secure_installation

By default mysql root password will be blank. This step may or may not be present depending on the needs of the Administrators

Step 3: Configuration settings for NextCloud

mysql -u root

Create database and user

CREATE DATABASE nextcloud;
CREATE USER 'nc_user'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD_HERE';
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nc_user'@'localhost';
FLUSH PRIVILEGES;
exit

User settings for Database

Note: change YOUR_PASSWORD_HERE to your pass!

Install PHP

sudo apt install -y php libapache2-mod-php php-ldap php-mysql php-cli php-bz2 php-curl php-gd php-imagick php-intl php-mbstring php-xml php-zip

Install NextCloud

Step 1: Install NextCloud

wget https://download.nextcloud.com/server/releases/nextcloud-22.1.0.zip -O /opt/nextcloud.zip

Note: at the time of this post, the latest NextCloud version is 22.1.0! For those of you watching after 8/8/2021, check the new version here

Step 2: Extract that file

apt-get install unzip -y
unzip /opt/nextcloud.zip -d /var/www/
rm -f /opt/nextcloud.zip

Step 3: Enter Virtual Host configuration

cat << EOF >> /etc/apache2/sites-available/nextcloud.conf

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/nextcloud/
#ServerName example.com
#ServerAlias www.example.com

Alias /nextcloud "/var/www/nextcloud/"

<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>
EOF

Enter Virtual Host configuration

Step 4: Decentralize NextCloud

chmod 755 -R /var/www/nextcloud/
chown www-data. -R /var/www/nextcloud/

Step 5: Re-enable NextCloud supported modes

sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime

Step 6: Enable NextCloud’s Config and Restart Apache

sudo a2ensite nextcloud.conf
sudo systemctl reload apache2

Step 7: Access the page based on the ip address of the raspberry pi. Mine is 192.168.1.5

Create NextCloud admin account

  • user : nc_admin
  • pass : password you set yourself

Connect to the database previously created.

  • nc_user
  • The database password that you set up in step 3 of creating mySQL
  • nextcloud
  • localhost

And then click finish Set Up

Wait a while for the installation to complete.

The interface after installation is as follows:

NextCloud

NextCloud

NextCloud

Instructions to open network modem port

Step 1: Go to the following address: 192.168.1.1

Step 2: Please login. This is usually provided by the carrier. For VNPT modems, they usually leave the username and password as follows:

  • Username: admin
  • Password: Passwd2@

VNPT network port

Step 3: On the top bar, select Advance Setup -> NAT. Once done, select Interface as wan1 and then select Virtual Server

Guide to NAT port

Step 4: Please fill in the following Local IP of Raspberry PI settings for virtual server

Note:

  • Index: ordinal number (when you open different ports, you need to change the index for each port)
  • Application: Name for you to easily identify
  • Protocol: Protocol. This one, you just leave it all to yourself
  • Start Port and End Port: you put two: 80 and 443
  • The Local ip adress section, you can find it via status -> DHCP Client

Step 5: Please click Apply

Apply button

You can Check Port here

Check port

Next you need to point the Domain to the IP of your Internet Modem, do the same how to point domain from freenom to cloudflare.

So I just finished guiding you to install NextCloud on Raspberry Pi. How do you feel? Leave a comment to let me know

The article achieved: 5/5 – (100 votes)

Tags: computerinstallingInstructionsNextCloud
Previous Post

Wombo is the best AI collage maker app

Next Post

Imitation Mechanical Key sound when using Normal Keyboard with Mechvibes

AnonyViet

AnonyViet

Related Posts

Guide to self -creation socket5 on Ubuntu
Network

Guide to self -creation socket5 on Ubuntu

May 28, 2025
How to create a separate mtproto proxy to use Telegram when blocked
Network

How to create a separate mtproto proxy to use Telegram when blocked

May 25, 2025
Script backup database and website on telegram
Network

Script backup database and website on telegram

May 2, 2025
Create 64GB RAM 16 core for free on Google IDX
Network

Create 64GB RAM 16 core for free on Google IDX

April 13, 2025
What is VPS running Vietnamese software? What is the reason for installing Vietnamese software on VPS?
Network

What is VPS running Vietnamese software? What is the reason for installing Vietnamese software on VPS?

February 17, 2025
Create Ronin wallet to play pixels on VPS Windows
Network

Create Ronin wallet to play pixels on VPS Windows

February 17, 2025
Next Post
Imitation Mechanical Key sound when using Normal Keyboard with Mechvibes

Imitation Mechanical Key sound when using Normal Keyboard with Mechvibes

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

Đá Gà Online Sonclub Đỉnh Cao Giải Trí 2025

August 22, 2025
How to view web access history in the anonymous mode (Incognito) of Chrome

How to view web access history in the anonymous mode (Incognito) of Chrome

August 22, 2025
How to automatically erase the web history after escaping to absolutely secure

How to automatically erase the web history after escaping to absolutely secure

August 22, 2025
Stainless steel flange price list at Asia Industry

Stainless steel flange price list at Asia Industry

August 21, 2025

Đá Gà Online Sonclub Đỉnh Cao Giải Trí 2025

August 22, 2025
How to view web access history in the anonymous mode (Incognito) of Chrome

How to view web access history in the anonymous mode (Incognito) of Chrome

August 22, 2025
How to automatically erase the web history after escaping to absolutely secure

How to automatically erase the web history after escaping to absolutely secure

August 22, 2025
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Đá Gà Online Sonclub Đỉnh Cao Giải Trí 2025

August 22, 2025
How to view web access history in the anonymous mode (Incognito) of Chrome

How to view web access history in the anonymous mode (Incognito) of Chrome

August 22, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí mm88 8XBET mm88 trang chủ new88

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí mm88 8XBET mm88 trang chủ new88

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply