How to create multiple websites on one server

Поделиться
HTML-код
  • Опубликовано: 23 авг 2024
  • It's useful when you can create two or more websites on one server. So how do you want to do that? Watch this video till the end to know how
    TP-Link 24 Port Gigabit Switch amzn.to/3Obs0ii
    NETGEAR 24-Port Gigabit Switch amzn.to/3DyTDgt
    Dream 600K Sub / netvn82
    #netvn #webserver

Комментарии • 30

  • @anderskarlsson3719
    @anderskarlsson3719 Месяц назад

    Thanks from Sweden :D

  • @sureshjyo777
    @sureshjyo777 Год назад

    Hi...
    Thank you for your best tutorials...
    You a great knowledge in this... I learnt many regarding nextcloud and websites installing on ubuntu server....
    But: with this two websites + also how to install nextcloud server... Please make a video on this...
    Thank you for your hard work...

  • @baruchben-david4196
    @baruchben-david4196 2 месяца назад

    I know there are many reasons why you might use a generated voice, but it would help make things clearer if you could adjust the text to help the voice. For example, it tried to pronounce 'mysql' as written. It would have been clearer if you did something like: 'My S-Q-L'. Stuff like that. It's a bit tricky to understand this voice.

  • @shady2388
    @shady2388 2 года назад

    This is a great work Thanks for your effort

    • @NETVN82
      @NETVN82  2 года назад +1

      Thanks for watching!

  • @r.robbi.s3319
    @r.robbi.s3319 2 года назад +2

    Next video pls make aapanel and nextcloud in a server

  • @hornchamroeun6064
    @hornchamroeun6064 2 года назад

    This channel very interesting !!

    • @NETVN82
      @NETVN82  2 года назад

      Glad you think so!

  • @grandprime7397
    @grandprime7397 2 года назад +1

    🔥🔥🔥

  • @tarayera17
    @tarayera17 Год назад

    wooow super dupper smart!

  • @pataslocas4595
    @pataslocas4595 2 года назад

    Thanks you so much!!!.

    • @NETVN82
      @NETVN82  2 года назад +1

      You're welcome!

  • @karsinds
    @karsinds 2 года назад +1

    Microsoft is a strong buy, point.

  • @faruksardar8829
    @faruksardar8829 Год назад

    On both the domain DNS we need to use same ip address?

  • @BaseeraEngineeringSdnBhd
    @BaseeraEngineeringSdnBhd Год назад

    great works bro

  • @anveshreddy2150
    @anveshreddy2150 2 года назад +1

    I think reverse proxy is the best way to do it

  • @ChiquiSistemas
    @ChiquiSistemas 3 месяца назад

    Great video.
    can you share the notepad?

  • @oussamazaoui805
    @oussamazaoui805 2 года назад +1

    Great, Can you share with us the link of txt file contain cmds please

    • @NETVN82
      @NETVN82  2 года назад +2

      1. Install Apache
      sudo apt update && sudo apt upgrade -y
      sudo apt install apache2 -y
      2. Install PHP
      sudo apt install php libapache2-mod-php php-mysql -y
      3. Site1
      3.1 Install Database
      sudo apt install mysql-server -y
      sudo mysql_secure_installation
      sudo mysql -u root -p
      CREATE DATABASE wpdb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
      CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'password';
      GRANT ALL ON wpdb.* TO 'wpuser'@'localhost';
      3.2 WordPress
      cd /var/www
      sudo mkdir site1
      cd site1
      sudo wget wordpress.org/latest.tar.gz
      sudo tar xzf latest.tar.gz
      sudo mv wordpress/* .
      sudo chown -R www-data: .
      3.3 Apache configuration
      cd /etc/apache2/sites-available/
      sudo cp 000-default.conf site1.conf
      sudo nano site1.conf
      ServerName netvnsite1.tk
      ServerAlias www.netvn.site1.tk
      DocumentRoot /var/www/site1
      sudo a2ensite site1.conf
      sudo a2dissite 000-default.conf
      sudo systemctl reload apache2
      4. Site2
      4.1 Install Database
      sudo mysql -u root -p
      CREATE DATABASE wpdb2 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
      CREATE USER 'wpuser2'@'localhost' IDENTIFIED BY 'password2';
      GRANT ALL ON wpdb2.* TO 'wpuser2'@'localhost';
      4.2 WordPress
      cd /var/www
      sudo mkdir site2
      cd site2
      sudo wget wordpress.org/latest.tar.gz
      sudo tar xzf latest.tar.gz
      sudo mv wordpress/* .
      sudo chown -R www-data: .
      4.3 Apache configuration
      cd /etc/apache2/sites-available/
      sudo cp 000-default.conf site2.conf
      sudo nano site2.conf
      ServerName netvnsite2.tk
      ServerAlias www.netvnsite2.tk
      DocumentRoot /var/www/site2
      sudo a2ensite site2.conf
      sudo systemctl reload apache2
      5. Port Forwarding
      80,443
      6. HTTPS
      sudo apt install python3-certbot-apache -y
      sudo certbot --apache -d -d

  • @amankhan-uc7jm
    @amankhan-uc7jm 2 года назад

    Great 👍

    • @NETVN82
      @NETVN82  2 года назад

      Thank you! Cheers!

  • @khanhvan1124
    @khanhvan1124 2 года назад +1

    Hướng dẫn cài từ đầu ubuntu server đi ạ

  • @iSeven77
    @iSeven77 Год назад +1

    THANK YOU so much for sharing all this info!
    Just one this I tried this today 11/29/2022 and in after step 3.1 sudo apt install mysql -server -y when I did the step sudo mysql_secure_installation i get an error :
    ... Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters.
    but I found out in another video from : Abstract programmer
    @abstractprogrammer3471 - How to install phpadmin...
    that you have to do sudo mysql then the password and when you are in mysql> you type this: alter user 'root'@'localhost' indentified with mysql_native_password by 'mypassword''; where 'mypassword' is the password you are going to use after you get out from 'mysql>' prompt with exit
    then instead of typing sudo mysql_secure_installation just type mysql_secure_installation then use the 'mypassword' and you then dont get the ERROR !
    I hope this helps someone . Thanks Again for all the knowledge you share with the new linux users , we are noobs lol

  • @salmonbokinala9952
    @salmonbokinala9952 2 года назад

    Hi how ru bro I need ur help bro for wifi tracking means

  • @prahaladupadhyay
    @prahaladupadhyay 2 года назад

    Super

  • @pareshsojitra
    @pareshsojitra 4 месяца назад

    Can i have note file please. Thanks.

  • @Topper1980
    @Topper1980 2 года назад

    Great, txt link please)