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
Thanks from Sweden :D
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...
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.
This is a great work Thanks for your effort
Thanks for watching!
Next video pls make aapanel and nextcloud in a server
This channel very interesting !!
Glad you think so!
🔥🔥🔥
wooow super dupper smart!
Thanks you so much!!!.
You're welcome!
Microsoft is a strong buy, point.
On both the domain DNS we need to use same ip address?
great works bro
Thanks 🔥
I think reverse proxy is the best way to do it
Great video.
can you share the notepad?
Great, Can you share with us the link of txt file contain cmds please
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
Great 👍
Thank you! Cheers!
Hướng dẫn cài từ đầu ubuntu server đi ạ
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
Hi how ru bro I need ur help bro for wifi tracking means
Super
Thanks
Can i have note file please. Thanks.
Great, txt link please)
Thanks