In some cases, you need to change the SSH port and create and use an SSH key. Securing SSH is one of the most important tasks of a system administrator. CyberPanel allows you to change SSH ports, disable root login, and save your SSH keys. In his article, we learn about how to add your SSH key to the server using CyberPanel
Step 1: Login to the CyberPanel dashboard
Step 2: On the left side menu scroll down Click on the Security
Step 3: Go to the Security->Secure SSH
Now this page will be open. Here you can see the SSH port,permit root login
Step 4: Click on the SSh keys-> Add key
Step 5: After Clicking on the Add key you can paste your key and Click on save
Step 6: You can delete your key By clicking on the ‘X’ button Listed here
Step 7: You can also change your port and enable or disable the permit root login after changing these Click on Save changes
In this article, we are going to be looking at Postfix. It is a Mail Transfer Agent (MTA) which is used to send and receive emails. It is currently used by 33% of internet mail servers. Let’s move on to installing the Postfix.
Installing Postfix
To install postfix you need to type in the following command:
You also need to install mailutils utility for Postfix to work correctly.
Configuring the Postfix
We need to configure the inet_interfaces in the Postfix main config file. The network interface addresses that this mail system receives mail on. Specify “all” to receive mail on all network interfaces (default), and “loopback-only” to receive mail on loopback network interfaces only
nano /etc/postfix/main.cf
When the file is opened, scroll down the page until you see the line:
inet_interfaces = all
Now it’s up to you on which interface you want to receive emails. You can either go with the default one this all which listens on all interfaces or you can replace it with loopback-only to listen only on localhost.
Another directive that we need to look at is mydestination, the list of domains that are delivered via the local_transport mail delivery transport. By default, this is the Postfix delivery agent which looks up all recipients in /etc/passwd and /etc/aliases.
Mine is configured to:
mydestination = localhost, localhost.localdomain
After making changes, you need to restart the Postfix.
sudo systemctl restart postfix
Testing the SMTP Server
Now it’s time to test the Postfix whether it can send an email or not using the mail the command which comes with the package mailutils that we installed earlier.
echo "This is the body of the email" | mail -s "This is the subject line" your_email_address
In place of your_email_address, enter the valid email address to which you want to send the email. Now check the account on which you have sent the mail.
Creating a new server in Hetzner is a very easy process. In this article, I am going to tell you how easily you can create a server in Hetzner? You can create a server on the Hetzner cloud easily by following this article.
Hetzner is a service provider that provides you Hetzner dedicated server, Hetzner VPS server, and all. YOU just have to create an Hetzner account and log in to Hetzner and deploy any type of server.
Hetzner supports many Operating systems like ubuntu, centos, Debian, etc. the location of this service provider is only in Germany.
Now follow these steps to set up a Hetzner server for you.
1. Login to Hetzner account:
first of all, you have to log in to your Hetzner account if you already and click here and login if you don’t have then create an account and then log in.
Provide all information to create an account and click the continue button to process for the creation of an account.
2. Go to you project
Once you created or logged in to your Hetzner account now have to go to any project that you have created in your account.
Click on the project and go to the project dashboard to create a new server.
3. Create a server
once you are in the project dashboard you can see a create a server button there. Click on that.
And it will redirect to the page where you have to provide and do all setup.
Now you have to provide and select all information to create a server. This is the basic information that you need to provide while creating Hetzner dedicated server or Hetzner VPS.
3.1 Location:
In first here you have to select the location where you want to take your server. Hetzner has only Germeny locations.
there are Nuremberg, Falkenstein, and Helsinki. You can go with any you are comfortable with.
3.2 Image:
After selecting the location now select the Operating system for your server. You can select any OS on hetzner that you want to use for the server.
Hetzner Operating systems are:
Ubuntu 20.04
Fedora
Debian
CentOS
Rocky Linux etc
You can get any according to your choice.
3.3 Type:
IN this step you can choose a dedicated Hetzner server or a standard Hetzner VPS. You also have to choose the specification which you want for your server. like how many CPUs, ram, etc
3.4 Volume:
if you want any extra volume you can attach it from here.
3.5 Network:
This option will allow you to create a Network do your server. DO if you want.
3.6 Firewalls- BETA:
The firewall is right now in Beta but if you want to order and use
3.7 Additional features:
Use Hetzner additional features in this option
3.8 SSH key:
Integrate the user SSH key that you want to access and use the server.
3.9 Name:
Give a name to your server and press the Create button all done to create an Hetzner server.
While transferring your website from one server to another you may need to export your database in some cases. In this article, I am going to show you how to export Database from PHPMyAdmin.
Exporting a database is just a few-click process. Just login to your PHPMyAdmin dashboard providing username and password. to export Database from PHPMyAdmin
You can see all the database you have created In your database is there.
Select the database you want to export. To select a database click on it. And you can see all the tables of your database on your screen.
Now from the top bar click on the Export button to start theexport database.
Now you have to select the type of file in which you want to export your database. After selecting file type click on the Go button on the right bottom side.
on clicking the Go button process will start and you can see the download progress on your browser.
Some time you face 404 error on all internal pages of your website. This often happened when you move your website from one server to any other or change any internal configurations. Here in this article we will tell you How to resolve 404 error from website internal pages on LiteSpeed Cyberpanel.
Without going deep let me tell you the reason for this. This happened due to the permissions or the rewrite rules. As after changes Open litespeed need a restart.
To resolve 404 error from website internal pages on LiteSpeed/Cyberpanel we just have to do 2 steps.
Steps to resolve 404 error from website:
1. Fix permissions.
Login to your cyberpanel on port 8090.
https://<YOURIP>:8090
Got to the website->list websites then click on Manage button present in front of your domain which have issue.
Scroll down and find file manager click on it and here you will find fix permissions button click that a green pop up appears.
2. Restart LiteSpeed Webserver
After doing all restart the Open liteSpeed webserver. You can do it two way one through command.
Systemctl restart lsws
.Or go to the Server status-> LiteSpeed status and press restart.
In this article, we will know How to change time zone on a Linux server using command line. This is a very easy and a few steps process so follow along to change your time zone according to your need.
The Time zone is the standard time for any specific region. The server time zone is a basic and one of the important things. Server time zone set while installing and setup server. Sometimes we need to change our server time zone according to our requirements. There are many ways but here we will go through command line one. This is one of the easy ways while using Linux.
How to check Current TimeZone of your server?
Before changing your server time zone first of all you must know what is the current time zone of your server to do so you just need to run a very simple command. This command is available in all Linux flavors.
open terminal and run:
$ timedatectl
You can see your current time zone of your server.
2. Set / Change Time zone on Linux Server Using Command line:
Before changing your time zone first of all you must have to know about the time zone you want to set. Like if you want to set somewhere in Asia. you must have to know about your region and cit. Now, how you can do it.
For this there is a command to list all time zones:
$ timedatectl list-timezones
Select your required time zone from the list and add it to this cmd.
timedatectl set-timezone “you time zone”
Make sure that you are login from root account if not use sudo with this.
$ sudo timedatectl set-timezone <your specific time zone>
After running this run the timedatctl again and verify if time zone updated or not.
$ timedatectl
Now you can see time zone that you set using above methode.
NOTE: Time zone is one of the core important things many features and services depend upon it so before doing anything make sure that you understood all. moreover, you just need a reboot to apply a new time zone on all servers.
Sometimes we need to log in to the rainloop dashboard to do some configurations. Here in this article, we will tell you how to log in to rainloop admin dashboard?
Rainloop is an efficient memory webmail solution. it is a fast, simple, and modern web-based client email client. Rainloop is the email solution that comes with CyberPanel. It has an amazing user interface. Not only the interface also works great as any other email service.
RainLoop Admin Dashboard access address:
To access rainloop dashboard you just need to go to.
You always need a secure URL for your website. Secure means your website will be accessible with SSL(Secure Sockets Layer). It’s very important to access your site on HTTPS instant of HTTP. Today I will tell you how you can add ZeroSSL to your website. ZeroSSL is totally free for your website.
ZeroSSL allows the free start of three domains. You can add free-of-cost SSL to your first three sites after those you have to buy if you want to issue SSL for more sites.
Create ZeroSSL account:
In first step you have to create an account on ZeroSSL website. For this go Here.
Here on this page you can see the Get Free SSL button click on that and visit to registration button.
On this page you have to provide some information to signup.
Subscription Plan
Email Account
Password
After providing these all press to the Next Step button.
Once you press this button you can see the ZeroSSL dashboard.
Create New SSL Certificate:
Here on Dashboard you can see New Certificate button press this button present in the above image.
On the next page you have to provide following information:
Enter Domain (Enter your domain name for which you want to issue SSL)
You will see this Green ticks for a valid domain name.
2. Validity (For how many time this ssl is valid )
Usually for 90 days its free and if you want for 1 year you have to buy.
3. CSR & Contact
Finalize Your Order (you have to select )
You have limit to issue three free ssl to your domain. Once the process of plan selection done now you have to verify your domain.
Verification Method:
ZeroSSL allow three types of verification:
Email Verification
DNS (CNAME) HTTP
File Upload
You can chose any one you are comfortable with. If you have this email then use it, or update DNS records according to the second or upload the file to dns.
After this you will get a option to download SSL. you can download crteficate.
Add ZeroSSL to your Website?
When you got your SSL file there must be three files after extracting. ca_budle, certificate, private key
Add these files values according to the require mint on your site.
A lot of users install ImunifyAV but after some issue, if they want to uninstall they do not know how to do this. Here in this article, we will tell you How To Uninstall Or Stop ImunifyAV?
ImunifyAV – an intelligent antivirus and security monitoring tool for websites with one-click automatic malware cleanup, domain reputation monitoring, and blacklist status check. Read more about ImunifyAV
A lot of users install ImunifyAV but after some issue, if they want to uninstall they do not know how to do this. Here in this article, we will tell you How To Uninstall Or Stop ImunifyAV?
In this artical we provide the way where you can able to uninstall or Stop ImunifyAV.
Uninstall ImunifyAV:
To uninstall ImunifyAV, you need to first download the imav-deploy.sh script with the following command:
if you are uploading a file on file manager in CyberPanel. and getting some error there. Follow this short solution for can’t upload the file on CyberPanel file manager.
Solution
There is very easy and short solution for this issue. Access your root through Bitvise or putty open your terminal(CLI) and run this Command
Systemctl restart lscpd
This simple command will restart all of your CyberPanel services and now if you can try you can easily upload any file but there may be upload limit issue if so you can follow this tutorial to solve that Link below.