How to Create Your Own Personal Cloud Storage in 5 Minutes - NextCloud

Create your own cloud server for Free.

In this video, I want to show you, How to Create Your Own Personal Cloud Storage like Google Drive or Onedrive. I will show you How to create your Cloud server for free. You can easily create your Cloud Storage Server Free.





Step 1. Server Update.

First, You will need to log in to your Ubuntu server as the root user and Update your System with the following command:

apt-get upgrade -y
apt-get update -y
Step 2. Install Apache and PHP.

Install Apache and PHP with the following command:

apt-get install php7.4 libapache2-mod-php7.4 php7.4-xml php7.4-cli php7.4-cgi php7.4-mysql php7.4-mbstring php7.4-gd php7.4-curl php7.4-zip php-imagick php7.4-json php7.4-intl -y

Step 3. Install the MariaDB server

You need to install the MariaDB server and other packages with the following command:

apt-get install mariadb-server mariadb-client unzip wget -y

Run the MariaDB installation the following command:

mysql_secure_installation

Below are all Answer to the questions and set the MariaDB root password for installation:

Enter current password for root (enter for none):
 Set root password? [Y/n] Y
 New password:
 Re-enter new password:
 Remove anonymous users? [Y/n] Y
 Disallow root login remotely? [Y/n] Y
 Remove test database and access to it? [Y/n] Y
 Reload privilege tables now? [Y/n] Y

Step 5. Log in to the MariaDB and create a database.

Log in to the MariaDB with the following command:
mysql -u root -p

Create a database and user for NextCloud with the following command:

MariaDB [(none)]> CREATE DATABASE nextcloud;

Create a database user and assign the required privileges as provided in the following command:

MariaDB [(none)]> GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'your-password'; 

Exit from the MariaDB console with the following command:
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

Step 6. Download and install the Nextcloud.

Download Nextcloud with the following command:

wget https://download.nextcloud.com/server/releases/nextcloud-23.0. 0.zip 

Unzip the downloaded nextcloud file to the Apache root directory:
unzip nextcloud-23.0.0.zip -d /var/www/html/
Ownership change of the nextcloud directory to www-data:
chown -R www-data:www-data /var/www/html/nextcloud

Step 6. Nextcloud Configuration.

Configure Apache for Nextcloud conf file with the following command:

nano /etc/apache2/sites-available/nextcloud.conf
Now add the lines shown below. For the ServerName attribute, provide the of your server or IP address if you don’t have a domain name pointing to your IP Address.

<VirtualHost *:80>
DocumentRoot "/var/www/html/nextcloud"
ServerName cloud.bdold.com
ErrorLog ${APACHE_LOG_DIR}/nextcloud.error
CustomLog ${APACHE_LOG_DIR}/nextcloud.access combined
<Directory /var/www/html/nextcloud/>
Require all granted
Options FollowSymlinks MultiViews
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
Satisfy Any
</Directory>
</VirtualHost>

Run and enable the configuration Apache host file with the following command:

a2ensite nextcloud.conf 


Enable Apache modules with the following command:

a2enmod rewrite headers env dir mime setenvif ssl

Reload the Apache for the changes to take effect.

systemctl restart apache2

Open your web browser and browse your IP or Domain.

http://Server IP/ Or http://your domain.com/



একটি মন্তব্য পোস্ট করুন

1 মন্তব্যসমূহ

  1. Hey, I'm doing this in the cloud and i used yhe public ip address of my cloud virtual machine as name server but then when i go to my browser and put my cloud virtual machines ip address it doesn't loads anything. Please help

    উত্তরমুছুন
Emoji
(y)
:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
x-)
(k)

Close Menu