Transcripts
1. Course Preview: Hi, my name is Axel Mt. I'm web developer, educator, and author. Welcome
to my course. Create your own web
hosting server using BPS, Linux and esta CP. In this practical
course, to make it real, we purchased a dominum
and BPS at low cost. Then we'll be install a web control panel and
configure it correctly. After that, we test a live
site using WordPress, Google workspace for email and server optimization
and so on. My website is hosted on
shared hosting before. I realize my site is slow performance and the
server are limited resources. I decide to transfer
on BPS hosting. Once you get hosted
on BPS, you will say, I never get back on
shared hosting and droll now and make your websites
better for four months today.
2. Why Build Your Own Web Hosting Server: Before we get
started, let's talk about BPS pros and cons. BPS stands for virtual
private server. The offer a flexible, and scalable alternative to
traditional shared hosting. Like I host my sites before, and I transfer to BPS. I providing dedicated resources
and improved security. However, they also come with lower to higher costs and
management complexity. Of course, we will choose a resondable price for
BPS they're $5 a month, $8 a month or $10 a month. BPS Pros. Of course, BPS is faster than shared hosting because they
have a dedicated CPU, dedicated RAM, dedicated
storage, and dedicated network. And full root access, you can do whatever
you want on your BPS. I have dedicated IP
address for your website, and also you can add
another IP address if you want for another
application of your BPS. You can install any
app at your own will. You can install web
hosting panel like VPN, Docker, and so on. You can store files
by storage base. Also, you can add another additional storage
example of this. You can store any
files until full. Unlike on shared hosting, they have a limit on store
files on your storage. You can modify configuration in apps and best option
for ecommer sites because ecommers have a lot
of images on every product. So it need more storage
for your website. Automatically backup depending
on the service in Contabo, we choose a BPS,
Drive backup service, and also drive a cheap price. BPS Cs, staff support
only on BPS itself. For example, if your BPS
have outage can access it, you need to contact the
support to fix the issue. And also example, the
port 25 is disabled. You can send an email of this. You need to contact the
support to open the port 25, so you can able
to send an email. In Contabo the port 25
is open by default, we don't need to
contact the support regarding the port 25. If in case you need to
contact the support, so you can able to send email. And number two, apps
are do it yourself. BPS is empty. You need to install operating
system to run apps, for example, in this course, we install Send OS seven, then we will be install
a web control panel, the apps, so we
can host our site. Number three, BPS apps issue, solve it in your own. If the issue on the
apps we installed, we need to solve it in our own. The staff support on the
service can solve this. We need to research
and solve it. And lastly, manual backup. Also automatically backup on the BPS service,
mostly automatic. Some service are Manual, and you can and you can restore it Manual,
depending on the service. And see you next.
Lecture, guys. Bye.
3. Purchase Domain name for VPS: Hi, guys. In this video, we will be purchase domain
name for our project. We will use Go Daddy for
purchasing domain name. I have a referral link on the course or
video description. Please use that link
to purchase it, and thank you very
much for your support. That helped me a lot. Okay, let's proceed to purchase domain name
using Go Daddy. We will be purchase example Dominim will be walk
through, search. And as you see, the dominim
is available, make it yours. Continue. Make sure you choose this, choose this no tanks
and continue to cart You can choose a term here. One year is fine. Click this I'm ready to pay. Just purchase your
domain name guys, and we will be configure
this domain name in the next video soon. Thanks for watching. Bye.
4. Purchase VPS: Hi, guys. In this video, we will purchase BPS
for our project. We choose Contabo
because the price are affordable and reliable
based on the price. They provided a good
ram and storage. As you see, to get you
to the right page, I have a referral link on the
course video description. Please click that link
and use that link to purchase a BPS on Contab
that helped me a lot, guys, and thank you very
much for your support. Personally, guys, I have a plan on ContaboHsted
several websites. I purchased this plan
already for my websites. This plan perfectly
for my websites, hosted with Wordpress
and E Commerce, you should get definitely this plan for your
web boosting project. But in the course purposes, we purchase this plan for this course
demonstration and click this Select you can choose
12 months is better, but I choose one month only. And the region are
important to your BPS. You must choose the right
region for your BPS. If your most visitors
live on United States, you must choose these three
region, one choose only. If your most visitors
live in Asia, you must choose Asia
or Japan or Australia, if you're visitors
most in Australia. But if you visitors most of
the countries like India, Europe, Asia, and so on, United States central
location is fine. Personally, I choose
United States Central for my BPS region for my website, and we choose this
and storage type. Never mind for the
storage space, but I definitely choose NVME
storage type because NVME is faster than SSD and choose
the SN OS here, SN 07. And the username is Roth
for PS and generate a password and save this password to the
right place like Notepad. And no one IP address. If you want additional
IP address, choose this. No, no managed. And this is fine. Click Next. And you can choose here,
private or business. And this is personal
information, guys. Just fill in this information and click Next and
see you next section. After successfully
purchase your BPS, you'll receive confirmation
emails which I have received. Let's check this. This is the access credentials to
your Contabo Control panel. Access this site, my dot con tab.com and use the
login credentials, and you need to wait
for your BPS getting approved by the
Contabo as you see, just check your order
status on this URL, and after they approve your BPS, you'll be received an email. The subject is your login data. This is too long guys. You will receive
this approval email within minutes in my case. In my case, it is 10 minutes. I received the survey data, which is the IP address and the location and the
password and so on. And let's log into the
Contbo Control Panel. This is the Contabo
Control Panel, which is this is the
BPS information I purchase and see you
next video, guys. Bye.
5. Domain Point to VPS: In previous video, we
purchased domain name and BPS, and now we need to point this BPS to the domain name
that we purchased before. Copy this IP address
on your BPS copy and go to your Go Daddy
account under this my product, the domain names
will be listed here. This is the domain name that we purchased earlier
on this example. Click this DNS, go to host name, add host name, and a Swan
pays the IP address. Save add another and to save and after that, go to name servers change copy domain name for BPS. Save, click Continue. And success, as you see, this propagation, guys,
it takes 72 hours. And let's try to
reload this page, Control F five on your keyboard. Click to name servers. And as you see, guys,
it's already changed. I strongly suggest, guys, we need to wait for 72
hours for completely propagated on this domain
between domain name and BPS. For now, we will be edit
the RDNS of the BPS, go to reverse DNS management. Edit this IP from this IP, edit the PTR record. And the RDNS is PS that
your domain name hosting. Say and this is it takes
time to propagate. I suggest to wait 70 hours
to completely propagate the reverse DNS and the
dominme that we point to BPS. See you next do guys. Bye.
6. Download the Tools we need: In the previous video, we point the BPS to domain name. And I say it takes 72 hours to make propagated between
the domain name to BPS, and I guess I have
a mistake on that, not 72 hours, but it
takes 24 to 48 hours. Sorry about that, guys. Anyway, let's proceed to
the topic on this video. We'll be prepared tools we
need for setting up the BPS. We need a Filezilla. Go to this website,
plozlapject.org, download this Filozla
client and install your OS. Download this Putty and install your OS and also download
this putt Putty, sorry. And install to your OS. Also the last one,
notepad plus plus.org, download the latest version
and install to your OS. In my case, I have Windows OS. I already installed
this Filezilla, Put MT Putty, and
Notepad plus plus. See you next video, guys. Bye.
7. Connect the VPS and install VestaCP: Hi, guys, in this section, we will be install a Vista control panel
to our BPS we purchase, and we'll be connect, of course, to the BPS to make install. I have a copy of my password
here, root password. We secured this in the
previous video that we purchased on this BPS, and this is the IP
address of the PPS. I copy to the notepad. Copy this and let's
connect to the BPS using the MT Putty. First, locate the
Putty installed. Go to this directory on
your computer and click this this putty dot X to make it connected to
the Putti and MT Putty. Click Okay. And add server SSH, The password. Oh root password. Copy, check this and
click Okay, NSCC, the server are added, click it, and already
successfully connected. Let's try on Filezilla. Add new password, SFTP, copy the IP address, root and successfully connected Enter. And let's check the RD ands. We can figure in the previous
video I already propagated. I have a command here. I will be shared this command
on this course, of course. Will be installed a bind Utils. First, I copy this
command to make this fast copy Control C on your
keyboard on Windows machine. Copy, Control C, and right
click on the mouse to make it pace on the UI of the MT Putty, not Control V, right
click on the mouse. Like that, right
click, hit Enter. For Y, hit Enter. Okay. I have a command here to
verify the RDNS copy, I past host, and this is the BPS IP address
and hit Enter. And as you see, it's already
propagated RDNS or PTR, IP address, domain name pointer,
PS, traveling photo.com. I showed is not found, it means not propagated yet. Okay, it's clear. Clear. And let's update this BPS, this command. Don't worry, guys. I'll be sharing this command
on this course. Hit Enter. This SN OIS is already updated, so no need to update and no
need to reboot, of course, if the SNT OIS is not updated, it need to reboot command, but in this case,
no need to reboot. Also the date, check the
date first on this server. Will we change this date
based on the country I live. Let's back up the
date on this command. And let's see. I will go to the Filezilla
and paste this directory. And this is the country's
which in my case, I live in Asia and Manila. Okay. And I pase a command. Right click, and this
is the time zone I leave on my country,
Asia fords Manila. Hit Enter, and let's check
the date on the server. And as you see, the date and time are updated
to my country. And let's install Nanoditor Yum Install Nano. Why Enter and already installed, and let's install the BestaCPF our web hosting, of course. Go to this website,
stacp.com and click Install. We don't need this, of
course, soft Acos Chen. And this is fine, guys. Generate install command. And this is the command. We need to run to install
the Mista Control panel. Copy this. Control C on
your keyboard on Windows. Control C, and right
click on the mouse. Hit Enter. Control C. Right click and hit Enter. And yeah, y for yes and
your email address, of course, I input here
my personal Gmail. Head Enter, head Enter, port 80 83 for this Vista CP. That's fine. And enter
the FQDN whose name. This is important. Same on RDNS. That's fine. Bips.travelingf.com, head Enter. And this takes time, guys. It takes 15 minutes. So I will skip this video and let's see on the
installation done. BPS. I and now,
guys, as you see, the sta CP is
successfully installed. Just I say before,
if the domain is fully propagated to the BPS, this address shows the BPS traveling photo.com
with port 80 83. If not yet propagated, it will show IP address
on this server, but that is fine. Let's copy this to the notepad. And let's access this. This is the URL of our weosting Click Advance, proceed. This is fine, guys.
Admin and password. And as you see, guys, we
successfully log in our BPS and reconfigure this
BPS in the next videos. See you next video, guys. Why?
8. Add new root user: In this video, guys, we'll
be add a new root user. We'll disable the default
root user on this BPS because this PS will be getting attack from guessing password
using the root user, and we will be disabled the default root user at
the end of this course. Of course, for now, let's add a new root user. Pace, and this is the example, new root user, save to the safe place and
password, hit Enter. Oh, I already add Yi's, so just follow the command, and this command will be input
the password of this user. Password, I copy my password. Let's copy to the notepad. Password Copy this Control
C, and right click. This will be hidden
for some reason. Hit Enter, right
click and hit Enter, and the password successfully updated on the user superperson. And let's add credentials
for root on that user. Copy. This command and find
the root section. First guys, press any letter on the keyboard or I press I. And copy the user, paste and hit tab and type this, sorry, to this user, super person are allowed to
run any command anywhere with root permission to escape
this or to exit on this V pseudo press
on your keyboard, scape and hold hit on your keyboard and
press double Z, Z Z. That's save. And let's type the
command again, user space user means switch user pseudo switch user, and enter the password. Great handsome. Copy and pace, this
will be hidden. Pace right click. And as you see, we have
another root user on the BPS. Okay. And that's
it for this video. See you next video, guys. Bye.
9. Setting up Users, Name servers, DNS, Adding Domain, SOA, DNS, Sub Domain, SSL: Hi, guys. In this section, we will be properly configured
the Besta CP. This is your web hosting
on your website. Some functionality here are not working at this time
because you need it to input some properly
configuration. And this is a fresh
installment of Vista CP, and we need to modify
some information here. And let's get started. First, let's edit
the admin user. And we will be edit this to NS one
traveling photo.com, and NS two save that one. Hit back, follow me along, guys. Back to the user. Okay. Let's add a second user. We will not use the admin user here for
adding a new domain, adding a cron tab, adding
a database, we will not. We will add that domain database and so on to the new user. Admin is a default user. We will not add
anything on this user. Let's create a new user. Let's put in the notepad, and this is the example user and generate a password based on the notepad and the email of the new user, same on the admin. That is fine. This is
the example email guys. This is not my personal email. And Okay, Save and back to the user, and let's edit this again. One, yeah, you need to
change this to Bash and save so you can able
to access HHH on this user and the
user already created. This is the admin user. We will not log in yet
to the grand Zeno user, default settings on this
admin user or default data. Go to database and delete
this admin sample database. You need to delete
this. We will not add a database under
the admin user. We will add a database
on the grand Zenoser. Oh, that's fine. DNS, we
need to edit this. Edit. And let's replace this in
this one to traveling Photo. Save and click DNS again
and click these records. And we need to edit this DNS. Save Back. Yeah, this is fine, guys. And let's disable the updates. A vista CP will be
automatically update if something might go
wrong on the update. Of course, the sta CP
will be breaking down. I have past experience on this. That's why on my personal
Vista CP, I disabled. If we need to update the sta CP, of course, you need to
backup first the BPS. On Contabo go to BPS Control Panel and
create a snapshot. It will be back
up your whole BPS if something happened when
updating the Vista CP, of course, you're safe. You can roll back the
whole BPS in the snapshot. After clicking this,
they have a rollback. You can roll back the BPS and the Vista CP will roll back. For now, let's disable
the auto update. This is the auto
update on Vista CP. Check all check all and disable update, auto update. And the website is
not accessible yet. We'll add this domain
to the user we created. So this domain will
be accessible Okay, log into this user, and let's configure this. We will do this on
the main domain guys. This is the main domain. On this BPS, we will
add the main domain. And back for now, you can add yet. We need to configure the DNS
to make this accessible. The site is not accessible yet. We need to add a DNS
to make accessible. BPS. And IP address on this BPS. The first one, and let's add a second one and it's one only. And the third one and two. And back and click this
all our 17 records. And let's reload this. Of course, the site is
already accessible. This is a default index dot HTML on the directory on this side. Okay, close this. Reload. Yeah. And let's add, let's add
SSL on this website. Click Edit, and
this is a free SSL. All website you add here
or have a free SSL. Click this Let's Encrypt. Save Okay, the SSL already installed
to the domain back. And as you see, let's encrypt SSL supported and
reload the page, and let's add HTTPS. Colon slash slash and already have a lock means the SS
already successfully installed. Of course, if you add a
subdomain here or domain, you can click this add Domain. If you want to add a subdomain
on this traveling photo, you can add a sub like that. It will work just fine. And as you see, this
is the subdomain. And also, we need
to add a database, email in the future video. And if you need to add
another domain here, just click the Ad web domain. For example, I add
a new domain here. I won't save this, but
this is surely working. You need to add NS one and NS two in the Go Daddy after you
adding a domain here. Go to your Go Daddy
and click DNS. This is for new Domain guys. Click name servers and
change name servers, and you need to edit
the NS one and NS two. Like that. This is
you need to add it. No need to add in the
host name section, NS NS two and clicks, and it should be work. After you save it,
you need to wait a few hours or 24 to 48 hours. I should work. Your domain
will be accessible, of course. After that, you can add
SSL for this domain. The next video guys
will be test pHP and install a WordPress
on the domain, we added. See you next video guys. Bye.
10. Testing PHP, Database and Installing WordPress: Okay. In this video, we will test the PHP, at the database, and install
a Wordpress on the domain. Okay. Let's add a new user to the FileZilla to access
the website directory. You can change the
name any one you like. I see the credentials
in the notepad, host user, and the password, and the host is the
BPS IP address, FTP, not SFTP for user. Connect Otras and scroll down. Web. This is the website
folder directory. And public underscore HTML. And this is the files of
the website directory. This index, this
is the index file. And let's delete this
and create a new file, HP info that PHP di This is the Notepad. To make the edit inherited
to the Notepad plus plus, you need to go settings and file editing and make sure you choose
Notepad plus plus, click File Type Association, transfer, make it ten. That's all on this
and click Okay, and let's test the HP. Save. And yes, to make it save. Reload. You can reload inside the file directory by pressing
a five on the keyboard. And reload for HP info. And as you see, the
pagB version is 8.1 and the PHP extension are listed here in add ons. Okay. Let's create a database. Create a database. You can
add unlimited database here. Example, database name,
generate for the password. Oop, sorry, database
user, database name, WP as example and copy the database credentials. And the password. Database. And let's open
the page fem admin. Log in the user. This is the HP Madmin. The database already added
here using this interface, and let's go to Import
and as you see, the Max upload or two megabyte. Will be edit this and
make this 50 megabytes. Go to the MT Putty to
access the root user, type this command to
edit the php INI. Actually, guys, you
can edit the php INI through FTV or FileZilla. Just log in the root user. And go to this directory ts directory and find the pH NNI here. You can edit here
or through ASH. It's your choice.
But in this video, I will show you how
to edit via SH. Let's edit this HB INI hit Enter and find this variable. Drab a command here. Just hold, press the control on the keyboard on the Windows and W and the command I copy
somewhere in the notepad. Okay, let's space on the Copy, Control C, and right click, hit Enter, and this is the Okay. So this variable are enabled. Next, the Max input bar. Control W, right click
Enter, Let's try again. This is the one. We need edit this to 2000 and
Control W, Enter. You can enter the maximum
upload max file cells. A size you want. Oop. Cancel, Enter. 50 and B for now. Control W, post max size. 15 B. Not that one, have another MAX input time. There is 18,000, sorry. MAX execution time. Same value. Memo limit. This is depending
on your server. If you have eight gig or 16 gig, you can increase
this if you want, but for now, two gig is fine. And the last one time zone. One more time to make it sure. Okay. This is one. In this case, I live in Asia, Manila to save this
file using the SSH, press control on the keyboard, hold control, and X, it will show modified buffer, press Y first, and hit Enter. Okay, that's already saved. And let's reload the PHP. Restart the PHP or HTTPD, and status, the PHB
already defined. And the version. And
let's reload this. As you see, it's already change. You can upload up to Max 15 B. And also here, the values
are already change. For example, post max size,
it's already changed. Okay, let's upload
the Wordpress. Now, let's install. There are two options to upload the WordPress in
the site directory. You can use Let's delete this. You can use the SSH on the
user or upload directly here. Get Wordpress. Okay, so copy the copy link. Let's use the SSH user. Add the ad server. SSH. Same grand childs, sir. IP address and the user and
check this. Click Okay. And as you see, this is the user on the BsaCPT
check the directory, type LS, and as you see, this is the same
root user directory. CF mail, TEM, and web and
let's go to city webs, and let's go to the site. Actually, you can
copy here, Control C, copy, and City SDS, we already on the root
directory on the site to download the Wordpress
file directly on the SSH type W
and copy the URL, copy link address and page. It will be download here. You can check the
ASIC latest or LS. You can also view here.
This is the same. Yes. Copy and zip this file. And already and zip.
Let's delete this. And we will be drag all
files inside this folder. You can use a
command on the CNOS. You can research it if you want. But for now, I'll be
using the FileZilla to do click and hold Shift on the keyboard
and drag on this folder, to make move these files. That's very easy.
Using file Zilla. Delete this, and this is
the WordPress installation. Let this and edit this
WP config, of course. You need the credentials here. This is the WP config and credentials user password, local host, that's
fine. Copy the SLT. And change this prefix
characters you want and save, and this will be re
upload and save. And let's access
the website now. And as you see, WordPress
installation is on it. Dine. Example, her name. It's Copies example. Example, email, of course. Check this. This is a
example Wordpress install. And as you see, the wordpress
is successfully installed. It's looking good, guys. Yeah, this is a full
Wordpress installed. And yeah, you can
add unlimited domain here as long as your
BPS RAM can do. Of course. Also
unlimited database. Yeah, that's it for this video, guys. U Nx video. Bye.
11. WordPress fix ERR_TOO_MANY_REDIRECTS: Hi, guys, if in case your Wordpress site showing
this error like this, too many redirects, try to clear the cookies
on your browser. If not working, just
go to WP config on Wordpress directory and add this code HTTPS
server variable and on and save And reload. It should be back to normal, okay? See you next video.
12. Accessing phpmyadmin and rename the access url: Hi, guys in this video, we will be edit the
PHP my admin, URL. If I click this, go to database, PHP my admin URL. And as you see, this
is a plane, URL only. This URL is vulnerable
to the bad guys, so we need to edit this URL. To make that happen, go to FileZilla and
log in as root user and go to this directory ATC fordslashPHP Madmin
hit Enter and edit and I have a code here. We'll be share this
course, of course, and remove this and paste it in save and go to the this URL, ATC, HTTPD, CFD, had Enter, and php my admin.co f Edit and my cheat sheet, we will be renaming this to
this new URL, like that. And you can edit this
URL guys, this string. If you want, you
can edit like that, at the characters, modify it, make sure it match. This two is both match. And save, yes. And after that,
reload the Apache. Reload. And let's try this. The plain URL is not
accessible anymore. And let's try this new alias. And as you see, the new URL and cannot be guess on the bad guys. Copy this to the safe place. Delete this DB Okay, that's fine. And let's log in. Let's
log in the database user. The password, and as you
see, guys, the error. If we log in to the form, fail to set session Cookie. This is a common issue on PHP
my admin on Google Chrome. And I believe we can
log in in Firefox. Let's switch to Firefox. And let's copy the password. I already entered the password. Let's copy the user. Sorry. I paste the URL. Log in. Same. Let's
try a trick here. Click this URL and hit Enter and type the password again, and as you see, you
can able to login. This is the database
Wordpress database. And this is the HP admin. Let's try to fix this if I can go back to admin user. Okay. Let's re log in. And let's add HDTPS to the
BPS, that traveling photo. As you see, SSL support
is have a line. Let's try some testing
if it's working. Back and as you see
already have SSL, yeah, let's back again. Reload. Let's add HTTPS. And as you see, SSL, let's try same issue. Let's enter this, click
this address bar. Enter. Yeah, same issue. But in Firefox, it's working. Oop. I'm sorry, guys. I
have a wrong here. This is the password. Let's back to the, I copy the right password. Log in. Oop, same again, Enter. Same again. And yeah, only five fox
can either has no HTTPS. It's back at HTTPS. Yeah, it's working
on Firefox, guys. I suggest use Firefox to log
in in PHP my admin for now. And let's research about
this why this happened. And I believe they
have a solution here. But for now, use Firefox
to plug in on PHP Admin. See you next week you guys. Bye.
13. Adding Domain Email and fixing issues: In this video, we will be at email address
for our website. Go to Mail section, and we will be at email addresses on this
website, click Add account. And this is the form. You can add limited
email here if you want. I will be at general
email for the website. For example, info or service or contact. It's your choice for me info, and don't add Adsign here. It's already included
to this section, just email name here and
generate a password. You can type your own
password here if you want. Just make sure add a special
characters or number. Let's save this to
the right place. Like that and save or add. We add one more
email account here for personal generate password. Like that and add. And let's try to access this. Click this Open with mail
under this on mail section. Open with mail. Oop, we
have unexpected issue here. We need to fix this. If
in case in your side, this issue will occur, I have a solution. If not, that's good. Maybe Vista CP will update or fix this issue in the future. So go to Pal zilla
aginasootUser. Go to this section, ATCwardlash Run
Cube Mail and edit this config And as you see here, they have a variable here. Skin, change this
to elastic, save. And let's reload the page. And as you see, the
login page is working. Let's try to log in the email. This is your business email
guys, and it is free. If you want this email integrate or make this
to Google workspace, we will do that on
the separate video. Let's try to test this if
it is working. Compose. I think they have issue here because there's
no email shows here. This input must show the email
address and did not show. Let's try fixing this, go to settings and go to identities, create your email. Let's try this. Save N as you see
guys, they have error, unexpected issue again for the second time, let's
try to fix this. I believe the database of Round cube are
something missing. Let's check that on the
page PM admin using the root user or HPM admin root, go to FileZilla and go
to this directory to get the mySQL root user, not BPS root user. This is different. And find the password and
copy the password, save to your notepad. Close that and go to PHP my admin using Firefox, copy the password, type root and past the password, log in. And as you see, we log in the
root user of the PHP admin, and they have databases here, and they have a round cube. And as you see, guys, there are three tables
here on Run cube database. That's why the issue occur
on Run cube webmail. Let's try to fix this. I think I solved this before, and we will re upload the
tables for Round cube, delete this, check all and drop and we upload the
tables in Round cube. We will find that in the
Round cube directory. Go to this directory, user share Round cube
MilQL And as you see, there have mySQL, that
initial SQL here. This is the database
for round cube. Let's edit this. Control A on the keyboard and
Control C to copy. Go to SQL. Make sure select the round
cube database first, select SQL and pace the query. Click Go. Oop, there have
unexpected issue again. Let's try to research this. What's possible solution? And I believe they have
issue on the queries. We need to change
the var car to 9191 instead of 255 because of
this UTF eight MB four. Okay? Copy Control
F in the notepad, replace like that, and Oh, sorry. Let's copy it. One, two, eight.
Let's find a 255. Okay. There it is. 255 barkar change to
one and one. Like that. Let's see that
again, one in one. Click on the top on
the very top of the Not plus plus to make sure
it will be replaced all, replace all and replace
all seven occurrences. A change to Warkar
9191 instead of 255. Okay, copy again, Control C, and Let's delete this again, drop. Go to SQL and paste it again. This is 191 characters
on the Barker. Click Go. And as you see, guys, the tables are uploaded
on the Run cube database. Click Run cube, and all
tables are listed here, complete tables for Run cube. And let's check on the webmail. We log in. Like that. And let's try to compose. Make sure you test these guys. And as you see now, they
have a email from already. Let's try to send on this
email test hopefully it works. O They have an error again. And we will solve this again. Let's try to reinstall the EIM. Go to SSH and copy this command. And copy this command, And let's reload the EIM. Change this to EIM. Okay. Let's check the
status if it's working. Okay, reload again. And test I send. It wing, guys, and go
to the email Gmail. And as you see, I received
email from webmail. And let's try to check this. Show original. Yep. And let's try to reply it. Test again. And as you see, guys,
the email I received. And the email is working. That's so much painful on
this video because they have a lot of issues,
and we fix it. Lastly, one, we will be fixing to prevent this
issue in the future, go to this directory. Yeah. Op, sorry,
user share only. Let's find public
if there have no, there's no public folder here. Go to SSH, past this
command to make folder, public suffix on this directory. Oop CD sorry Make command, make the folder already created. Oh. Yep. This is created and go to CD and download that file
for Public Suffxs list. I do this because some
issue will occur. We log on the Summay
directory on the SN OS. This is a D filure log. Installing this
will be preventing the errors issue
for DMA and yeah, that's it for this video. See you next video, guys. Bye.
14. Fix Cache Login: Okay, guys, another
unexpected issue here. I can't log in. I don't know how and
I don't know why. This issue occur after a few minutes when
I'm trying to log in, invalid requests,
no data was saved. Let's try to do something. Let's delete this email and re add and let's
see what happened. Delete email and let's
re add the email. Okay, added. And
let's log in. Oop. Let's try to empty
the cache. Last hour. Okay. That's a
cache problem only, guys. I thought something. Let's re add the email again. Okay, that's a cache problem
only. No other issues. Okay, let's log in this user. Okay. The login works fine.
That's a cache only. Just clear the cache on the
Google Chrome or Firefox. Control, Shift and delete your keyboard and clear
the cache. Thank you.
15. Testing Email and Improve Sending Email Score 10/10: Hi, guys. In this video, we will do testing email if our email score is good
or bad, and let's see. Go to this website,
mailtester.com, copy the address
here, go to webmail, compose and pase in to email. T tests, and so on. Send and test your score. Hopefully, it's good score. Yes, it's a very good score. 10/10. The IP address on
Contabos not blacklisted. Properly authenticated
because we set the RDNS DMark. Yep. If you remember, guys, we set the RDNS in the
Contabo web panel. RDNS is important. It makes your email
score get trusted. In Contabo go to
reverse DNS Management, and as you remember, we add this ps dot
traveling photo.com. This is RDNS or PTR record. This is connected here, RDNS also the email already have DMark if this demark not pass, they have a suggestion
here to make it fix. We already have DKIM and SPF
record already on the DNS. Go to is record. And as you see, DKIM,
DMark, and SPF. And let's change this Let's edit this demarc
to prevent the spoofing. I believe this is reject value Like that. Save. That's fine. And yeah, our email score is good. Very, very good. And that's
all for this video you guys. See you next video. Bye.
16. Setting Up Domain Gmail (Google Workspace): Hi, guys. In this video, I will be share how to set up a Google Workspace or
Gmail for our domain. If you don't like the Round
cube webmail, this is free. You can add a
limited email here. If you don't like the UI
or the functionalities, you can switch to
another email platform, such as Google Workspace for Gmail or Microsoft
365 for Outlook. Of course, that's not free. You need to pay it every
month, monthly subscription. You need to pay every
email, every email account. For monthly subscription,
once we switch to Gmail, you can't use the Round
cube webmail anymore because we need to edit
the MX record on the DNS, so you can use the
round cube anymore after we switching to Gmail. I have referral link for Google Rgspace and
I have upon codes. Just check the course description
or video description. And please guys use that link when you register on
Google Rickspace. That helped me a lot, and
thank you very much for your support on registering my referral link on
Google Rickspace. And yeah, we will go to it. And once you click
my referral link, you will go to the right page. I will choose the
free trial here. As I say, you can pay by
per user or per email. Let's choose the
business starter. Just, for example, 229, choose this option if you want. And the business
email is like that. Next, and your
personal information here, your personal Gmail. Do your business have a domain? Of course, we already have it. Yes, I have in this case, the main email on PS. Next. No thanks, no
thanks and your username. Let's do the same
on Round cube user. This is Case one user Pi
point something dollars. Let's put the same
password. Check it. Agree and continue. And
now you can sign in. Click Next. I'm not a robot. Next, the password, Oh, this need mobile verification. Okay. I understand. As I say earlier, guys, I have a promo code on the course description
or video description, check it and add a promo
code here and click Apply. In this case, I won't need it because this is for
course purposes only. Try for 14 days for me. Agree and continue.
Continue to set up Kinax close it and protect. We will be at DNS
here, DNS value. I'm ready to protect my domain. You need to verify it to make
sure you own the domain. Copy it. Copy this back
to Pesta CIP, go to DNS. Add record under this domain. Text record at, and the
value already added, and hopefully we don't wait
for days after adding this. Let's try to protect Domain. This is verify button, click checking your
verification record for the domain if
you really own. Okay, guys, as you
see, great job. Traveling photo is protected. So the domain are
verified and continue. Create new user. We skip this because we already
have a user, one user only. If you want to add more user, you can create it
or skip it for now. Let's activate the Gmail for
traveling Photo. Activate. Okay. Step two, Copy it. Setting up now is different, guys, like other old days. Today, you need to
add one record only. Unlike before, you need
to add four records, but now it's different. It's only smtp@google.com.
Okay, copy. Back to Denis, Op back for
now and delete the MX record. Delete the existing MX record. This is for Run cube. Where the X here. Delete this. This is the MX
record on this BPS. This use for Run cube, delete it and add
new MX record, SMTP. Add value. Priority,
don't forget. Priority is one. Add. And
let's see activate Gmail. And as you see, great job. MMX records are updated. Finish. We successfully activate the Gmail. We can
use it for now. Skip now Skip now. Skip this all, go to Min
URL workspace dot Google, go to Admin Console. And this is the admin
Console on Google Workspace. The users listed here. You can add extra user
here if you want. If you want to pay more,
just click Add New User. And of course, don't forget
to set up the DKIM for Gmail. DKIM, Select the domain, generate record. 1024 is fine. Generate. Oh, I see. You must wait 24 to 72
hours after enabling Gmail. You can back this guys in
the future after 48 hours, put the DKIM on the DNS
section after 48 hours, back here, generate record
and copy and paste here. That is a text
type and the value and DKIM and at record,
just like this. Just like this. Like that. Okay, guys, this
video ends here. In the next video, we will
be login in the Gmail, and we will be sent
a test email and fix possibilities
issues on the Gmail. See you next video. Bye.
17. Testing Gmail and fixing: Hello, we will test the Gmail on our website,
our business email. And let's see if there
have a possible issue. We will go to this
website, mail tester, copy it and open the email, compose, send two, and send. And let's see. Check your score. I assume this will
be a bad score. Yep, it's very bad. 3.5 over ten, and
let's see the problem. I listed it blacklisted. But this is fine because
the email is Gmail. You're not fully
authenticated. Let's see. Demark verification. I don't know about this. Dicky IM is valid. I think no need to add Dicky IM or from
the good workspace. But let's see the possibilities. DikiIM and Okay. Let's see. You do not have SPF record. Okay, let's try to add this. Go to DNS is record, find SPF. Oh, I see. They
have a demark here. I guess I have a mistake
in the previous video, why do have a
double demark here. This is must be one
record only for demarc. Let's delete this. Let's see and make sure
the DNS is correct. Yep. Let's find SPF where it is. Control F in the keyboard, SPF. There's no SPF. Let's re add it. Again, the SPF. The
default SPF is gone. Let's see on other DNS, for example, this is
your reference guys. Other website. Yeah, they have a SPF here. And let's add SPF. Add text type. And let's copy from
the suggestion. SPF. Like that. Add it back. Already have SPF. Yep,
this is complete. Okay, let's try it. Try again. These tester guys have a limit. I think it's four times per
day or three times maybe. If you reach the limit, you can try to use BPN. So your IP address will be different and you
can test another. If in case, check your score, it increased to five. The demark have a problem. You're not allowed to
message with this address. I don't know why this happened. Demarc reject. Okay, let's rename it to none. And let's see. I reached the limit
guys on mail tester. Let's try again. And as you see, guys, the limit shows
three times per day. So we'll find a way on
how to re access this. We will use PN, free BPN on Google
Chrome prosaic add to Chrome, already added. Just click this pin
the shows on icon here and let's enable the BPN. Select the free United
States, let's try again. Also, this IP have three limits. If the limit reach per day, you can switch another location. Sent. And as you see, guys, the score is not bad, and it's good because our email are properly
authenticated, DMark, DKIM, and SPF and just don't mind blacklisted because
we're using Gmail. And let's try to send this to email to make
sure it is working. Because there have some
cases will be bounced back. Let's check my email if
there have And now, guys, as you see, we received
the reply email, so our sending and receiving
are perfectly working. One last thing to do. I
need to delete the mail, the domain in the mail
section here because Okay, let's switch to Let's off
this and let's reload. Yep, it auto log out. Copy, I have one
more thing to do. We need to delete the
domain on the email. Go to mail section and
you need to delete this. We need to delete this
because this domain under mail section are connected to webmail because we
are using Gmail now. If you don't delete this, this will be issue
bounce back issue. If you send an email using Gmail to these email
addresses under your BPS. That's why we need
to delete this. If in case you switch to
Round cube in the future, you need to re add
the domain here. Just re add the domain and re add the email address if you switch to round cube
from Gmail. Okay? Delete it. And that should be fine. Okay, guys, I guess
that's all for this video guys and see
you next video. Bye.
18. PHP Downgrade version (if you need): Hi. In this video, we will be downgrade the PHP
version on our web server, if you need version 7.4, we can downgrade it via command. Make sure you back
up your BPS using the snapshot feature in Contab Control Panel before you do downgrading
the PHP version. Okay, let's proceed, Log
in your root user on SSH. And let's see the
current version. The current version is 8.1. For example, we will be
downgrade this to 7.4. I'll pass a command. Yum install is the install
command on SNOSseven. We'll be installed
these Yam utils, for Y. And after that, the
second command, we will be disabled
first the PHP version. And also this command, and next enable 7.4 version. And we'll be removing the PHP. Yum remove PHB. Yes. And to make sure
we'll be removing all pH files or versions. Or extensions it yes. As you see, erasing. By the way, the
command Yum remove PHP has already removed the
round cube and PHP my admin. We will be installed up. Also, we'll be reinstalled up. Okay. This is the last command. We'll be reinstalled
a round cube. Yes. And the next
is PHP my admin, am installed PHP my admin. Yes. And will be changed the folder
permission of PHPMyAdmin. The temp directory. This command will be changed
permission, Chimd 777. And we successfully
downgraded the PHB version. Let's see. But this is not
finished yet. Page VV. Yes, as you see, guys, the downgraded
version is 7.4. We successfully downgrade, but we have a few
commands here for PHB, admin, and webmail for webmail
if in case you use it. We will reuse the
previous configuration for PHP my admin. Go to this directory, and we will be removed
RM means remove the file on the we
installed the PHPM admin, and the previous configuration are overrided of a new file. So the old configuration
are already backup. When you removing the
PHPM admin, let's remove. And also for round que yes the old configuration are
already there and renaming us phpmadmin.co dot RPMs. This is the old configuration. We edit this file in
the previous video. What we'll do here
is we'll be renaming this file to this
name by MV command. Okay. Also round cube LS, and there you have it. And we will be reconfiguring the PHP INI because we reinstall the low
version of PHP 7.4. We will use the
FileZilla in this case, go to this directory at C, and php INI there it is. And Control F and the
keyboard, find this variable. Same in the previous video. In the previous video, we doing in SSH. But in this case, note PAT. Okay. 2000 Post Maxie. I Max time. Memory limit. This is depending on your server
in the daytime zone. If you live in the
Asia and after that, save and don't forget to restart the Apache
and the status, and let's see if
it's running, yes. And finally, pageP version 7.4. And let's see to make sure, let's see on the website. This is the ContaboUuser. In this example, I will put the pH B version
here or PHB info. Let's add PHP info, that PHP. As you see guys, we
successfully downgraded the PHP version from 8.1. And let's do some check. Make sure the page B my admin is accessible
after downgrading. It works fine. And webmail, if you use webmail, make
sure it's accessible. Okay, that's fine. And yeah, that's
it for this video. Thank you for watching and
see you next video. Bye.
19. Activating Paid VestaCP Filemanager: Hi, guys. In this video, we will be talking about
the file manager on BistaCP accessing
the file manager on BistaCP is not free. You need to pay it, but it is one time payment
only, and it's cheap. Also, if you use Wordpress
on your website, you can install
file manager plug in you can edit the files directly to your
Wordpress admin side. Also, you can use file
management using the FileZilla. You can edit this, of course. And if you really want a
web based file manager, there have free script, but I don't recommend
it because there have subg and PHP version issues. So that's why I
don't recommend it. But I will walk
through to you how the file manager
looks built in Vista. To enable it, you need to go
to server and configuration. Go to Mesta Control
Panel plug ins. They have a file manager in, and you need to buy
a lifetime license. It's $28 if you want
to support BistaCP, you definitely buy a license and just put your
license here and the file manager will
show up on this menu. And let me show you the
file manager on istaCP. And now, guys, as you see, I activated the file
manager on Vista CP. They have a new menu
here, file manager. Let's log in to the user. And let's walk through
the file manager. And if you click, you will go on the
website directory, actually, same on FileZilla
directory. Of course. Yeah. Public, you can edit it. If you edit this, you need
to double click or click it, Edit and save deleting file here is very easy the FileZilla. If you delete a folder
with a bunch of files, it takes time on FileZilla, but in file manager,
it takes seconds only. Of course, they have
another option to delete files on the website, directory, you can use
the SSH, the RM command. Just research Send OS
seven, delete folder. Like that, past the command and the files under the folder will be
deleted immediately. Yeah, that's it for this video. And see you next do guys. Bye.
20. Memcache, Redis and Composer: In this video, we will be install MMCsRds and composer if you need for your project, and also we will reconfigure it. Let's start on MMCchh. Log into your SSH
using the root user. Let's clean Yum
clean all command, and let's install the
memcache for senos seven. And y and press Enter. And the MMcach installed. Let's configure using
the nanoditor in SSH, you can use FileZilla two
via Notepad plus plus, and port, let's change this 256. Oops, sorry. Okay. Two, five, six, to save it, control X on your keyboard
to exit and press Y and enter and start command. Make sure we need to start this MM cache on the
system background, start and enable it. And let's see if the MM cache are running
on this command. Yeah, this command MM cash tool. Yeah, it's already running. And let's open it the
port 1121 for MMCche. We need it to add on
the firewall to make exception and let's go
to Best CP Log Out. We need admin user here for
Firewall exception, Firewall, and under Firewall, add
rule and accept and TCP. We need to put here the port of MM Case and the IP address, let's open a new tab. Let's copy, it's 00. I guess this is
local, no spaces, and MMCche add rule has
been created successfully. Let's see, on this
command, we will see it. Let's clear it first, clear, and this command that starts, and let's find the port port is for MMCash already
added on TCP. That's all for
MMCaseO last time, check the remote connectivity. Okay, wait a moment. Control to exit this
Control Z, maybe. Okay. This command, IP on the
PS in the Mm cache port, Enter, and it's
already connected. Yeah, we need to add it for PHP. We need to install it for PHP. You can use it in Wordpress. We will do Wordpress testing
later on this video. Let's add for PHP.
Let's clear it. Clear. This command,
yum install PHP, pickle, memcache yes. And we need to restart the
Apache to make it effect. And before that,
let's see it first. Let's check the PHP info
before we restart the Apache. As you remember, we add PHP
info file on this subdomain, and let's Control A and
the keyboard and type MMCche if there have they
have a MM case here, but this is not related. Yep, there's no MM cache yet. And let's restart
the Apache Restart. And let's see the MM case
status on this command. Already active, let's
reload this page PB info, and let's search the
memcache already have it. Yes, already added
on the PHP version of memcach and the port already
excluded on the firewall. The next is Redis. If you need redis, I
have a command here. Let's clear it first.
Pseudo yam install Redis. Yes. And let's enable the reds Enable and Oop, sorry, Enable and start the reds and check the
service already active. Let's try this command, red Ci ping pong. So the reds already
installed successfully. Let's configure it. Let's make it clear. And let's find the
bind variable. Control W O, control Control V. This is make me crazy. Let's use the Let's use the file Zilla. Reds on F, and let's find
the bind local host. Okay. And let's replace it
to the server IP like that and save and close this exit, restart the radius
and check the status. If the error, it will
show error here. And let's add the
firewall exception. This is a port
three sorry, 6379. Go to Firewall, accept
TCP port 6379 for reds. And 00 and type here, reads and add let's see. Let's test this reddest on IP, your IP server and Ping Enter. Oop Drab an issue. Protected mode is enabled. Let's try to fix this. Protected mode. Let's back to the reddest config Hopefully, this variable is here. Yes, there have.
Let's change to no. Let's save and save, and let's try to rest restart the red this, let's try to ping. Yes, it works. Ping Pong. And now, guys, as
you see, it works. Redes CI is a main
command on reds. You can try redes command here, just research it and I don't
include redes tutorial here. Of course, quit
and it's working. Let's try Let's start command. Let's find the reds here. Yes. There it is. And you need to add
in on PHB, of course. There's no redis on PHB yet. There's no reds, as you
see in the PHP info. Let's add on pch B. Let's clear this first. Am install PB reds. Yes. And we start the Apache. And restart the reds. And let's reload
this speech painful. Reload Control F. Let's find reds and have a
redis already on page B. And the last one is composer. By the way, have extra command on redis flashing like that. If you type Redis CLI,
you can flush it. You can flash all like that, and of course, exit. You can research about
reads if you want, and let's clear next
is the composer. If you need composer,
pay this command, pHBR and so on. Page this command, PHB
composer setup the PHP. And delete the setup file
of composer and Link, and let's see, composer. Do not run composer as root. Okay. Press end to no. And let's try to
run on the user. Using the grand
Zeno user composer. And now, guys, as you see, the composer is working. This is related to
Github project. If you want to run as composer, you can type on here,
composer command. And the next video, we will be testing the reds and
memcache on Wordpress. See you next video by
21. Testing with WordPress: Hi, guys. In this video, we will be testing
the reds in MM cache. Log into your Wordpress, admin, and go to Plug In adn and search W three total
case install now. And let's try another one. Reds e Let's activate. And as you see, reachable, the IP and port are reachable, so the reads are working good. You can activate the
three total cache. Let's do it on three
total case first. Go to settings. Decline. Let's skip this. And let's go to
general settings. If the MM case and redes
successfully installed, it will show up on the options. As you see, there have
MMcase and reeds. You can select it on
the dropdown because we installed on the server
successfully like that. Yeah and database cache, you can use reds and
Daba upcase here, it's not available
because we did not install upcase Opcode cache. Sorry. I have a bad
experience on Opcode cache, the Raba issue, and I
don't know how to fix it. That's why we did not
include it on the course, but reds and memcache is
fine as long as your server hosted on NVME yeah, you need to configure this. There are lots on
video on YouTube, how to configure this. And of course, this plug
in reds is optional. You can choose between W
three total cache or reds. And yeah, it's working, and that's all for this video. See you next video. Bye.
22. Optimize Apache: Hi, guys. In this video, we will be optimized the Apache. This optimization is tested based on my own experience
and no have issue at all. And let's do it.
Go to root user, clear first and download
this Apache body. And change the permission chmod Apache body that PL
and run the Apache body. It will show up the
suggestion for Apache. And as you see, there have settings
considered for this report, the Apache Max request workers. The settings is 256. This is a current settings. The current settings, they
have a suggestion here about Max request workers based on the available memory is 139-155. Okay, I have a
optimization code here, and we will adopt this
optimization code. I'm using this in
my own server too. So let's apply it
for this course. Go to Fal Zilla LginsRootG
to this directory. HTTPD and edit the HTTPD or short code only. And let's put my own
optimization code here. Put a note here. The purpose of this
is you can remember you put this code
excel like that. This is a common syntax. Like this, this is
a common syntax. Comment, have a sharp sign. Keep live on. The Apache will keep alive on. And as you see the
Max request worker, we follow the Apache body 155 like that and save restart the Apache. Status. And it's running fine. Let's run the Apache body. Current settings. Your recommended MX worker
settings is between Oh, yeah. Okay. You can explore this. Let's
try to replace this to 877. I think this is fine, guys. In my own server, I put 1516. And this atorial we put 887. Make sure you keep alive on. And this is good to go. We start. And yeah, in the next video, we will be optimized Maria
DB or MySQL on this server. See you next video by
23. Optimize MariaDB: Hi, guys. In this video, we will be optimized Maria
DB or MQL go to Firefox. We will need to access the BHB Madmin Log in a
root and click Log N. Maria DB, right. And let's check the
general log if it's off. Let's go to SQL,
pase this query. Let's check if this is off. Go. And as you see, this is off, guys, this is fine. If in case this is on, just turn it off
to set this off, pace this query like that, and this variable will be turned off because if you
don't turn it off, this log file will came
bigger and bigger file, it consumes space
on your server, and let's back to the SSH. Clear and paste this command, download MySQL tuner and
same on Apache body, will be change the permission
and run the MySQL tuner. And they have general
recommendations here. You can explore this, but I will be using my own
optimization code here. This is tested and
working in my own server, and we will be adopt this here. Let's go to Fal Zilla etc let's search them.co f. This is related to
Maria DB configuration. And let's put the code here. Like that. Let's add
that comment here. This is a comment. This is not a code, and this is the code. Query cache type, zero, and so on, and this should
be fine and good to go. Save it and restart
the Maria DB. Restart And let's check the status if there
have no problem. And as you see,
it workings fine. And the next video,
we will optimize the NGINX. See you next video
24. Optimize Nginx: In this video, guys,
we will be optimized the NGINX for Vista because
I have experience before. I have a site produce an error, 500 internal server error. You can check the logs on
your site here for errors, logins root and have
a directory here. There have an error log here. You can check the logs
on this directory. And I don't know what the heck
is this very mind on that. And yeah, if the site produce
500 internal server error, they have error in the
log, like this log. Upstream timeout, 110
connection timeout. And I fix this via
editing the ANG INx on F. I have a code here, and
let's use this code. I'm using this code on my server too and
don't have an issue. Let's go to at C and NGINX, edit this file and Control F, find the proxy settings. There it is. And
replace it all like that or to make sure you
can comment this out. Remove this all. Like that. And paste it here. This is a backup guys, backup code like that and save and restart the NGINX, restart and check the status. It's running. If not
running, do a problem. And as you see, the
NGINX are running fine. That's good to go. See you
next video, guys. Bye.
25. Automatic Server Cleaning: Hi, guys. In this video, we'll be doing a server
cleaner for BPS. We will be doing a Bash
script for server cleaning, and this is the script we run
instantly via Bash script. And we will be test
this one by one. And this journal
command, let's try this. As you see, there's no file because this is
newly purchased BPS. There's no archive journal yet, but the days will pass. This archive journal will
be bigger and bigger files. You need to truncate it. You can run this one by one. And after vacuuming the journal, you need to restart
the journal like that, and you need to vacuum
the SQL because the failed even database
will be bigger and bigger files on coming months, you need to truncate it because this is
newly purchased server. This file this file
is small for now. But the days, weeks
and months will pass. This file size will be bigger and you need
it to truncate it. You can truncate this file by using this command.
Let's try it. Let's try this one by one first. Okay? And that should work. Refresh this, control F five, and let's see the file
size will be truncated. As you see, the file size is truncated using this command. And if you're using
asterisk on your BPS, you need to truncate too. But in this case, we're
not using asterisk. But we are using
filled band log file. We need to truncate. Okay. Go to Warlog directory, and actually SNO seven has automatically truncated
this file by schedule. That's a feature itself on SNO seven, don't worry about it. This file log will be
truncated on SNO seven. Okay. Let's truncate it Filovn let's reload. Oop. Let's reload.
And as you see, the file cells of filter
Van dot log is truncated. And after that, you need to
restart the Failed van and IP tables, restart and restart. And you can use Send
Email Gimi if you want. This command will be
sent a notification on your email and will convert
the file to those Unix. So let's let's create
a Bash file or that H because we want to run this in one time using the
Bash script or that is H file. Okay. Okay. Let's create a
HFile using the nan editor. Using the nanocommand, and we will create
on this directory. Home Admin, this
is the filename, server cleaner H Enter and
copy paste this script. This will be run. All of this line will be
run in one time. This is incomplete. Et's
add this at the very top. Make sure you check the course
resources on the course, this script will be shared
on the course resources. And you need to
start this syntax. And the second line will
be read as comment. This is a syntax, and this is the command
will be run by line. And this is a comment, command, and this is a syntax exit zero. And let's save this control
X on your keyboard, press Y and hit Enter. And let's install
those unix first. Yum install those two nick. Yes, Enter. Complete, clear, and let's go to the admin directory because we save the file here
on this directory. LS see the file, and this is the
file we created via Nanoditor let's
convert this to DSN. Dos Unix able to
read the SH file. Those unix and this file, this file will be converted
to those unix to make readable the SH file Enter, and as you see, converting
a file to the Unix format, and after that, change the permission on the
file server cleaner. Change permission, CH mod, and this permission
will be able to read the server cleaner H Enter. And this command can able to
read the server cleaner is H dot forward slash and server
cleaner is H. Press Enter. And if you enter this This
line will be run at one time. Press Enter, as you see, vacuuming done and
so on and so on, and fail to ban or truncated
for the second time. Let's try again. Reload. Yeah, that work. So this command will be run
all of this at one time. Also, if you run this script, you need to execute
via this command forwards server cleaner
dotsH like that. And we will do this via
cron to read automatically. So we don't need to type
this command to make it run and let's do that
on Cron Cron tab. Type this command,
Cron tab space E. And let's add a cron tab here. Press I on your
keyboard to insert a code on Cron tab,
press I insert. As you see it changed to insert, so you can able to type on the Cron and I have
a command here. Just copy this in pase. This is from course
resource. So just copy. I will be copy this
command, copy, and right click to Pase on
SSH, right click, like that. So we'll run this file every
once a month on this cron. Let me show you a reference for Cron go to your Besta CP cron, add Cron job and check monthly, generate, and as you see, 001 Asteris asterisT is the once a month cron command 001
Asteris Asteris like that. So if you want to run the
PAS script every week, drive every week in daily
hourly minutes. Okay. To save in cron, press skip on the
keyboard, escape. So the insert will be gone, and you need to shift
on the keyboard, hold Shift and press double Z, Z Z like that. And as you see,
installing new cron tab, the cron tab are
successfully saved. And this script server cleaner H will be
run once a month. Automatically, you
don't need to type this command if you
want to server clean. And, yeah, that's
all for this video. Thanks for watching. Bye.
26. Extra and Disable SSH Root User: Guys, in this video, we will be doing some extras and disabling the root
user on the BPS. Log in as root for now. And as you see, guys, there have login attempts
here, five login attempts. That's why we need to
disable the root user. The bad guys trying
to log in using the root user with
random password. So that's why we need to
disable it later on this video. For now, let's do some extras. This command will be showing up this space on your BPS and have details here of your
storage on your BPS, this line. We have available
space on BPS 47 gig, and we consume the 3.1 gig. And this command will show
up this space on your BPS. As you remember in
my previous video, we purchased the
NVME storage type, and we choose the NVME 50 gig, and this is the details. It's not perfect. And
we consume the 3.1 gig. You have available
space of 42 gig. And let's try another command. Let's try the CPU usage. And this is the CPU usage
command on your BPS, And let's try to exit this, Control Z on your
keyboard, like that. And let's check the RAM
memory of your BPS. It's clear at first. Clear and we choose
the eight gig RAM. And they have five
gig available, and we consume the two
gig of RAM on our BPS. Okay, to exit this, control Z on your
keyboard. Like that. And now we will be
disable the root user. Just type this command, Nano Etc, forward slash, and hit Enter, and let's find the permit root
login variable. Yes, at the bottom and
replace this to no. Control X on your keyboard. Hit yes for Y, and enter. Already saved, and you
need to restart the SSHD. Before you doing this, make sure you have
a second root user as we do on the previous video. As you remember, we add
a second root user, and we save it to
the notepad here. This is my second root user. I added this in my
previous video. After I enter this restart, we can able to log in. We can able to log
in on the root user. Okay. And let's try. As you see, it access denied because we
disable the root user. And for making root command, we will be logging in the second root user
that we created earlier on the
course copy, paste, The password check,
SSH and Okay. Let's rename this properties Root out one, root two. And let's log in to
the second root user. Yes. And for the first time, logging in the second root user, to we need to get the permission of superoot Just pasting
this command a username. Yeah. Sorry. My mistake,
DSU. Like that. And past your password. Pase, copy, and right
click, right click. This will be invincible, Enter and like that. And yeah, if you need to
enable back the root user, you need to go back
to this command using the second root user Nano Etc, H, SSHD config, Enter and
go to the very bottom. And sorry, and change this to, like that and control X, and EY, press Y and Enter, and like that, and make
sure you restart the SSHD. And now you can able to
log in the root user. Okay. And that's
all for this video. And see you next
video, guys. Bye.
27. Setting Up Free CDN for Domain: Hi, guys, in this last
section on this course, we will add a free
CDN for our website. We can add a CDN for this
website or for this website. And this is the main website. This is the BPS placeholder
or holder on your BPS. You can add CDN on this domain. That's fine. Also on the
subdomain and other domain. And we will be using the
Cloudfare which is free. CDN, Drive benefits using
Cloudflare on your website. It can prevent a threats and attacks like this I email
receive Cloudflare stops. 500 something
threats last month. And yeah, which is very good. And also, your BPS server
can say Badwid consumption. And yeah, let's do this. Just go to this website,
cloudflare.com and register. Once you register, you can
add your site on the panel. And I have here, and I will be at my
main site traveling photo and add that ad site. I'm clicking here, adst and
this form will show up. And we'll select
a free plan here, select free and continue. Yeah, it's working. This will be scanning
your DNS on your BPS, and these DNS guys are
same on your DNS here. Once we use Cloudfare, this DNS will be not
going to use anymore. It will be migrated here and Make sure the DNS here, all DNS here records, make sure are all added here. Import DNS records. And let's check this one by one. SMTP On Togo and there's no SPF on Cloudfare. Yeah, SPF already there. And let's check this one by
one to make sure all DNS are added Google site
verification already there, DMark already there, and BPS already there. NS one and NS two already there, NS one and S two, which
is very important, BPS NSO ands two. And yeah, I think that
DikiIM is not included. DickiM Where's the
DickiM here? It missing. Why the DiCIM is missing. Okay. Let's add DKIM. You can add it using
the DM generator. IM and generate. This is fine. I don't know why the
DKIM is missing. Maybe I guess I delete
it accidentally. Add a DCIM It's back and they have a DKIM, Dickey, I am one, and let's
try to see the reference on Axl Mulat I have wrong. The record is Let's edit this. We can edit it again. Let's delete it, delete and re add the right Domin ki and the text type and the value. Eight. And this is good to go. Already have DKIM.
Sorry about that. And let's add this on
Cloudfare manually. Add record. Text. Text type. And the value save. And yeah, let's do Import type. Let's go to let's try
on this root user home. And log in and go to the Vista CiPi root user on F DNS and they have a DNSRFle. This file can show
only on root user. Actually, you can import
the DNS using this file or you can let's
drag this like that. We'll doing second option and rename this to
that test like that. And yeah, you can import this file or you
can add manually. Let's import. Oh, sorry. Import upload. And as you see, have a double digim here have a double dickiM because
we add this manually, delete this delete this. You need one only. And
you can turn off this. We need to just turn off this we don't need to
cloud fare on that. Just we need to proxy
on Cloud fare is the domain and subdomain. And WW. Turn off that. Yeah, once you use
the Cloudfare, you can use anymore
this Denis on esta CP. If in case you need to add
a subdomain, for example, if you want to add
more subdomain on this side, Example like that. This is a subdomain.
You need to add this subdomain manually on Cloudfare to make it accessible. Just add here, add on a
record and add that and save. Yeah, if you add a subdomain, and yeah for now, cancel it. And let's hit Continue. And we need to rename the
name servers on Go Daddy. Copy and rename it. Rename Copy. This takes time propagation. It takes hours and save and click it. And as you see, reload. And let's see if already
save name servers, yes, it change and done checking
name server and get started. Yeah, save always use
HTTPS, save Oh, sorry. You can back that,
turn off that rode previous and save you can
turn it on if you want. I don't know about this. This is new to me. That's why I disable this for now and finish and
there have it. We added a free CDN
for our website. And one last thing
if you go to web. If you are coder
HTML or CSS coders, if you need a modification of your teams on CSS and HTML, make sure the you need
some section to turn off. You need to turn
off the caching on a cloud flare configuration. And yeah, enable this
development mode. If you need to modify the
CSS and HTML on your site, if you don't this turn on, your modification
will not reflected. That's why you need to enable
it on development mode. And after you're done, you can turn this off, and this is automatically
turned off after a few hours. And yeah, let's try to access the site if it's
already propagated. Yeah, the site is accessible, and it's powered
by Cloudfare CDN. And yeah, see you next
video, guys. Bye.
28. Final Words and Vestacp Forum: Hi, guys. Thank you very much
for watching on my course, and I hope you enjoy it. And I have final
words on this course. And yeah, if you have a problem on your Besta
CP control panel, you can register or
sign up on the forum and post the post
your queries here, ask question, and
contribute to the forum. Yeah, just go to this
website, forum Besta CP. And also, if you
have a question on the course related
to the course, I try my best to answer it, and don't forget to leave a
five star on this course. It will help me a lot, and thank you very
much for your support. See you next course, and
thank you very much. Goodbye.