• 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

Is Renting a Cheap VPS to Run Docker Really Effective?
Network

Is Renting a Cheap VPS to Run Docker Really Effective?

July 2, 2026
How to get a free domain for 1 year from Gravatar
Network

How to get a free domain for 1 year from Gravatar

June 23, 2026
Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes
Network

Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes

June 20, 2026
Save image as Type contains malicious code: Remove immediately before losing money unfairly!
Network

Save image as Type contains malicious code: Remove immediately before losing money unfairly!

March 19, 2026
Instructions on how to register a .co.uk domain name for free for 1 year
Network

Instructions on how to register a .co.uk domain name for free for 1 year

March 12, 2026
How to Setup Paperclip AI: Create a Company for AI Agent
Network

How to Setup Paperclip AI: Create a Company for AI Agent

March 12, 2026
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

Recent News

Instructions on how to create POV product review videos using Flow

Instructions on how to create POV product review videos using Flow

July 13, 2026
How to fix “This PC can’t run Windows 11” error This PC doesn’t meet the minimum system requirements

How to fix “This PC can’t run Windows 11” error This PC doesn’t meet the minimum system requirements

July 13, 2026
Compact design, durable battery, excellent camera: Review of OPPO Reno 16 Pro 5G

Compact design, durable battery, excellent camera: Review of OPPO Reno 16 Pro 5G

July 12, 2026
Download the free 3D Pinball Space Cadet game on the App Store now

Download the free 3D Pinball Space Cadet game on the App Store now

July 12, 2026
Instructions on how to create POV product review videos using Flow

Instructions on how to create POV product review videos using Flow

July 13, 2026
How to fix “This PC can’t run Windows 11” error This PC doesn’t meet the minimum system requirements

How to fix “This PC can’t run Windows 11” error This PC doesn’t meet the minimum system requirements

July 13, 2026
Compact design, durable battery, excellent camera: Review of OPPO Reno 16 Pro 5G

Compact design, durable battery, excellent camera: Review of OPPO Reno 16 Pro 5G

July 12, 2026
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

Instructions on how to create POV product review videos using Flow

Instructions on how to create POV product review videos using Flow

July 13, 2026
How to fix “This PC can’t run Windows 11” error This PC doesn’t meet the minimum system requirements

How to fix “This PC can’t run Windows 11” error This PC doesn’t meet the minimum system requirements

July 13, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

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

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

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