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
Step 2. Install Apache and PHP.apt-get update -y
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
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.
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';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Step 6. Download and install the Nextcloud.
wget https://download.nextcloud.com/server/releases/nextcloud-23.0. 0.zip
unzip nextcloud-23.0.0.zip -d /var/www/html/
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
<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 মন্তব্যসমূহ
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
উত্তরমুছুন