Linux Archives - CloudMinister

How To Create and Install SSH Keys on the Shell

SSH Key Authentication

1.1 SSH Keys-An Overview

SSH keys are a way to identify trusted computers without involving passwords. You can generate an SSH key and add the public key to your GitHub account by following the procedures outlined in this section.

1.2 How to generate ssh key on Linux

Run all these command on your local system

# ssh-keygen

( Users need to press ENTER in order to save the file to the user home )

Upon entering the primary Gen Key command, users need to go through the following drill by answering the following prompts:

Enter the file where you wish to save the key (/home/demo/.ssh/id_rsa) : enter

Enter passphrase: enter

The output should be like this :

Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
38:16:50:fe:8d:da:02:bb:46:1b:66:0c:10:8e:81:2d root@server1.example.com
The key’s randomart image is:
+–[ RSA 2048]—-+
|+o … |
|E.. o |
|.+ o |
| . + o |
| o. + S . |
| *+ + |
| +.oo . |
| o. . |
| .. |
+—————–+

Now we have generated two files ( id_rsa and id_rsa.pub ) and we need to check permission for both files. The permission should be 644 for both. if permission didn’t assigned accordingly then we have to assign.

# chmod 644 id_rsa
# chmod 644 id_rsa.pub

Now we need to locate key file on the Linux VPS server which one we want to access without password.

# ssh-copy-id  username@server IP address

Now try to login using key file.

# ssh -i id_rsa username@serverIPaddress

Linux vs windows : which operating system is best your website hosting ?

Website hosting is a kind of internet hosting service which give you a chance to release your website on internet. It is also known as virtual host. It will be usable for all those people who run any organization & for some individuals. It plays a very vital role in the world. It is one of the best way to increase the popularity, & starting a new online business for everyone. Website hosting needs some services like Apache for web server, MySQL service for database, PHP service for design & Operating System.

Website hosting offer many different types of hosting:

1.> Cloud hosting

2.> Dedicated hosting

3.> Shared hosting

4.> VPS hosting

5.> WordPress hosting

 

What is Linux Website hosting?

Linux website hosting is type of web hosting which we can perform on Linux OS and we can use technology for website hosting or virtual hosting on Linux is called LAMP which stands for Linux, Apache, Mariadb & PHP. This OS is highly secure, reliable, flexible, scalable, open-source, etc. In this OS we can do this on command line or install the panels on OS & then manage the website on many platforms &  Linux VPS Server will support many panels like plesk, cPanel, WHM, CWP panel, etc.

What is Windows Website hosting?

Windows website hosting is a type of hosting which we can perform on Windows operating system & in windows to setup the website is easily. It uses a technologies i.e .Net, MSSQL, ASP, Xampp, etc. This OS is also highly secure, reliable, flexible, scalable, but costly, etc. The website which we host by windows OS are only support plesk panel.

Linux Web hosting VS Windows Web Hosting

Linux and Windows both are different kind of OS (Operating Systems) which are based on Unix and Microsoft. Both of the operating systems will provide great and good features for website hosting and both of us recommended for website hosting. And now, we can compare both of us with these features & the features are:-

1.> Software-:

According to this feature, Linux is a open-source software which provide multiple options for cheap hosting provider , not single option and windows is isn’t an open-source software , not provide multiple options for hosting or provide only single option.

2.> Security -:

According to this feature, Linux operating system is highly secure than any other operating system including windows, so that the website is secure from viruses, online attacks, malicious attacks, etc. And windows is also highly secure but its changes & working is so easy that why it is not secure like Linux.

3.> Cost -:

According to this feature, Linux will fulfill the requirements and give resources & services at free of cost or low cost but windows will get high cost  for the service, resources & fulfill the requirements or users want to purchase the license for each service.

4.> Source Code -:

According to this feature, Linux access the source code and alter it according to the user need i.e the user access the source code of kernel & alter acc. to him. so the bugs in the OS will fixed easily but in windows only selected or few members can access the source code.

5.> Flexibility -:

According to this feature, Linux website hosting is more flexible than windows website hosting because the security of Linux is high & excellent that the website is maintained. And windows security is also high but not better than Linux so it is less flexible than Linux.

6.> Working -:

According to this feature, windows working is very easier than Linux because all the working in windows is easily configured. And in Linux the working is so harder than windows because all the working is done by commands or done manually so the worker has face some problems & editing manually also.

7.> System Speed -:

According to this feature, Linux operating system speed is faster than windows speed because Linux dedicated server management run 90% of the world fastest supercomputers & windows will run only 2-3% of the world supercomputers not fastest supercomputers.

8.> Reliability -:

According to this feature, Linux website hosting is more reliable than windows website hosting because Linux operating system speed is better, performance is better, security is better, etc than windows so we can trust easily or early on Linux website. And windows OS speed, performance, security, etc all are good & great but poor than Linux so it is less reliable than Linux.

9.> Scalability -:

According to this feature, Linux website hosting is more scalable than windows website hosting because all the working in Linux is done manually so the worker can change or modify easily. And in windows website hosting, all the work isn’t manually by worker so the worker wants more time to change or modify so that’s why windows is less scalable than Linux.

10.> Panels -:

According to this feature, Linux uses cPanel, WHM & plesk but windows only use plesk panel. So that we all recommend Linux website because it will work on all these 3 panels & the website hoster has many options & in windows the website hoster has only one option for panel.

 

Conclusion:

Now in this document we discuss the difference between Linux & windows website hosting & choose or decide which OS is best for website hosting & finally, according to these features, we all must recommend “Linux” is the best & better operating system for website hosting than windows.

How to install and configure LAMP(Linux, Apache, Mysql/MariaDB, Php) with WordPress CMS on Ubuntu 16.04.

WordPress is a popular open source Content Management System (CMS), which allows you to build dynamic websites and blogs. WordPress is the most popular blogging system on the web and allows updating, customizing, and managing the website from its back-end CMS.

In this blog, we are going to configure WordPress with LAMP in Ubuntu 16.04 for that the Prerequisite is Ubuntu 16.04 server.

Contents

1. Prerequisite

2. Install Apache Server 2.4.18

3. Install MySQL 5.7 

4. Install Php 7.0

5. Install WordPress File

6. Creating a WordPress Database in MYSQL

7. Test WordPress

  1. Prerequisite

Firstly required Ubuntu 16.04 VPS along with root privileges or you can also use sudo in starting of the commands.

Several commands are used to check the system status for the installation of WordPress CMS on the server.

# df -h (To check the status of memory in the system.)

#cat /etc/os-release(To check the operating system of the server.)

# apt-get update(To update all the packages in server.)

  1. Install Apache Server 2.4.18

Firstly install Apache server i.e. a web server that helps to host websites and blogs.

Now the next step is to install the apache server by using the command:

# apt-get install apache2

Check the status with the following command:

# systemctl status apache2

  1. Install MySQL 5.7

MySQL is a software used to create databases, stores, and get data when requested. MySQL is used by WordPress to store a database of its users. 

Now the next step is to install MYSQL and link it with PHP.

# apt-get install mysql-server php7.0-mysql

One dialog box is prompted for MySQL password, give the root password.

Now complete the MYSQL installation,

# mysql_secure_installation

Here, we have to configure the basic details of MYSQL and it asked for a password, enter the MYSQL password.

Would you like to setup validate password plugin? N (Use to set up  password policy)

Change the root password? N

Remove anonymous users? Y

Disallow root login remotely? Y

Remove test database and access to it? Y

Reload privilege tables now? Y

  1. Install PHP 7.0

WordPress requires all the components of LAMP and the last PHP 7.0 to be installed.

# apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcryptphp7.0-xml php7.0-curl php7.0-json php7.0-cgi

Check that php is installed correctly or not, For that remove default file from /var/www/html directory i.e. index.html and create new file i.e. info.php.

# cd /var/www/html

# nano info.php

And enter the sample code in info.php file,

<?php

phpinfo();

?>

Restart the apache server.

#systemctl restart apache2

After that open any browser and give IP i.ehttp://ip_address_server/

and here check the default page for PHP.

Now remove the index.php file,

# rm /var/www/html/index.html

  1. Install WordPress File

Once the configuration of the LAMP stack is completed, now go proceed with installing the WordPress file.

Go inside the html folder

# cd /var/www/html

And download the latest version of WordPress CMS from the internet,

#wget -c http://wordpress.org/latest.tar.gz

Now use tar to unzip the downloaded WordPress archive.

#tar -xzvf latest.tar.gz

After that set the appropriate file permissions,

# chown -R www-data:www-data /var/www/html

#chmod -R 755 /var/www/html

  1. Creating a WordPress Database in MYSQL

Before proceeding with the installation of WordPress we have to create Database for WordPress in MySQL console.

# mysql -u root -p

Enter the password of MySQL and after that create a new database for WordPress.

# mysql>CREATE DATABASE WordPress;

Now create a new user and grant all privileges to the WordPress database.

# mysql>GRANT ALL PRIVILEGES on WordPress.* to 

  ‘username’@’localhost’ IDENTIFIED BY ‘password’;

# mysql>FLUSH PRIVILEGES;

After that exit the MySQL console.

# mysql>exit

  1. Test WordPress

Now after all the configuration done successfully, Restart the Apache webserver.

# systemctl restart apache2

After the server is restarted go in any browser and type http://ip_address/

And then the installation page is open here i.ehttp://ip_address/wp-admin/

Now configure the basic details. And after the administrator prompt is open. Launch the website in its control panel and refresh the URL.

 

CONCLUSION – After the above installation you will we able to create a blog by using WordPress CMS in Ubuntu VPS.

How to install and configure LAMP (Linux,Apache Mysql/MariaDB,Php) with Joomla CMS in Ubuntu 16.04.

Joomla is one of the most popular and open source Content Management System(CMS), which is used to build websites and online applications. It is free and extendable which is separated into front-end and back end templates.

In this blog we are going to configure Joomla with LAMP in Ubuntu 16.04 for that the Prerequisite are Ubuntu 16.04 server.

Contents

  1. Prerequisite
  2. Install Apache Server
  3. Install MySQL
  4. Install Php
  5. Install Joomla File
  6. Creating a Joomla Database in MYSQL
  7. Test Joomla

1. Prerequisite

Firstly required Ubuntu 16.04 VPS along with root privileges or you can also use sudo in starting of the commands.
Several commands are used to check the system status for installation of joomla CMS on the server.

# df -h (To check the status of memory in the system.)

#cat /etc/os-release(To check the operating system of the server.)

# apt-get update(To update all the packages in server.)

2. Install Apache Server

Firstly install Apache server i.e. a web server that help to host websites and blogs.
Now the next step is to install apache server by using command.

# apt-get install apache2

Check the status with,

# systemctl status apache2

3. Install MySQL

MySQL is a software used to create databases, stores and get data when requested. MySQL is used by wordpress to store database of its users. 

Now the next step is to install MYSQL and link it with PHP.

# apt-get install mysql-server php7.0-mysql

One dialog box is prompted for MySQL password, give the root password.

Now complete the MYSQL installation,   

# mysql_secure_installation

Here, we have to configure the basic details of MYSQL and it asked for password, enter the MYSQL password.

Would you like to setup validate password plugin? N (Use to setup     password policy)

Change the root password? N

Remove anonymous users? Y

Disallow root login remotely? Y

Remove test database and access to it? Y

Reload privilege tables now? Y

4.Install PHP

Joomla requires all the components of LAMP and the last PHP 7.0 to be installed.

# apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt   php7.0-xml php7.0-curl php7.0-json php7.0-cgi

Check that php is installed correctly or not, For that remove default file from /var/www/html directory i.e. index.html and create new file i.e. info.php.

# cd /var/www/html

# nano info.php

And enter the sample code in info.php file,

<?php

phpinfo();

?>

Restart the apache server.

#systemctl restart apache2

After that open any browser and give IP i.ehttp://ip_address_server/

and here check the default page for php.

Now remove the index.php file,

# rm /var/www/html/index.html

5. Install Joomla File

Once the configuration of LAMP stack is completed, now go proceed with installing Joomla file.

Go inside the html folder

# cd /var/www/html

And download the latest version of Joomla CMS from internet,

#wgethttps://downloads.joomla.org/cms/joomla3/3-7-5/Joomla_3-7.5-Stable-Full_Package.zip

Now install unzip to be able to unzip the downloaded archive.

# apt-get install unzip

Now unzip the downloaded Joomla archive.

#unzip Joomla_3-7.5-Stable-Full_Package.zip

After that set the appropriate file permissions,

# chown -R www-data.www-data /var/www/html

#chmod -R 755 /var/www/html

6. Creating a Joomla Database in MYSQL

Before proceeding with the installation of Joomla we have to create Database for Joomla in MySQL console.

# mysql -u root -p

Enter the password of MySQL and after that create a new database for Joomla

mysql>CREATE DATABASE Joomla;

Now create a new user and grant all privileges to the Joomla database.

mysql>GRANT ALL PRIVILEGES on Joomla.* to 

‘username’@’localhost’ IDENTIFIED BY ‘password’;

mysql>FLUSH PRIVILEGES;

After that exit the MySQL console.

mysql>exit

7. Test Joomla

Now after all the configuration done successfully, Restart the apache web server.

# Systemctl restart apache2

After the server is restarted go in any browser and typehttp://ip_address/

And then the installation page is open here i.ehttp://ip_address/instalation/

Now configure the basic details. And after the administrator prompt is open. Launch the website in its control panel and refresh the URL.

CONCLUSION:

After the above installation, you will be able to use Joomal CMS to manage your website content in your VPS server.

How to install and configure Linux Malware Detect (LMD) on Centos Web Panel(CWP) 7 with alert?

Linux Malware Detect(LMD) is a malware detector and scanner for Linux, designed for shared hosting environments. LMD is released under GNU GPLV2 license, it can be installed on cPanel, WHM and Linux environments with together other detection tools such as ClamAV. 

CWP doesn’t provide LMD service in it’s free version, it asks to take CWP pro for LMD service. You can install it from the terminal and scan for malware present in your server.

Prerequisite

CWP

Terminal access

Root user (If not use sudo)

ClamAV

Install Linux Malware Detect (LMD)

Linux Malware Detect is not available in CentOS or Epel repository, you need to install it manually from source, by using the following command:

First go inside tmp directory,

# cd /tmp

Now download and extract it from the source with the help of wget command:

# wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

# tar -xzvf maldetect-current.tar.gz

After downloaded go inside the maldetect directory and run the install script with the following command:

# cd maldetect-*

# ./install.sh

Now make a symlink of the maldet command in the /bin/maldet

# ln -s /usr/local/maldetect/maldet /bin/maldet

# hash -r

Configure Linux Malware Detect (LMD)

LMD has been installed into the /usr/local/maldet/ directory. Open the directory and edit the configuration file conf.maldet with vi editor:

# cd /usr/local/maldetect/

# vi conf.maldet

In this file, edit the following lines to enable various feature and alerts
Enable email alert by changing the value to 1 :

email_alert=”1”
Type your email address :
email_alert=”your@domain.com

We will use the ClamAV clamscan binary as default scan engine because it provides a high-performance scan on large file sets. Change value to 1:
scan_clamscan=”1”
Next, enable quarantining to move malware to the quarantine automatically during the scan process. Chang value to 1:
quarantine_hits=”1”
Change value to 1, to enable clean based malware injections.
quarantine_clean=”1”

Save and exit, you can also change other values based on your requirement.

Testing Linux Malware Detect(LMD)

For testing LMD manual scan with the maldet command, you will use the maldet command to scan the web directory ‘/var/www/html’.
Download some malware file with the help of following commands in web root directory:
# cd /var/www/html
# wget http://www.eicar.org/download/eicar.com.txt
# wget http://www.eicar.org/download/eicar_com.zip

Next, scan the web root directory with the maldet command:

# maldet -a /var/www/html

Check the scan report with the following command:

# maldet –report 18882——-*

Other LMD Command

To ensure Maldet is up-to-date, run the command below:

# maldet -u


You can see the details of the option available by running the following command:

# maldet -h


Perform a scan for specific file extension only:

# maldet -a /var/www/html*.php

Get a list of all reports:

# maldet -e list


Restore files from the quarantine directory.

# maldet -s SCANID

Enable monitoring of a directory.
# maldet -m /var/www/html

CONCLUSION-

The above configuration will show how to configure Linux Malware Detect in CWP and scan for malware data in your server.

How to create Automated Backup for website files with shell script?

Backup

With the help of shell script and crontab you can take automated backup in server with the help of following the document.

Archive the content

Backing up your files using tar is very simple using the following command: 

# tar -cvpzf /backup/backupfilename.tar.gz /data/directory

A real example would be backing up the HTML folder for your website, my case:

# tar -cvpzf /backup/file_name.tar.gz /var/www/html

Tar command explained

tar = Tape archive

c = Create

v = Verbose mode will print all files that are archived.

p = Preserving files and directory permissions.

z = This will tell tar that to compress the files.

f = It allows tar to get the file name.

Now create backup script with the help of vi editor.

Create Backup Script

Now let’s add tar command in a bash script to make this backup process automatic. Also it is good to add some dynamic value in the name to make sure there is no overwriting of backup files. 

E.g. Create the file using the vi editor and paste below script.

# vi /backup.sh

Paste the following script and change your details.

#!/bin/bash

TIME=`date +%b-%d-%y`                                                # This Command will read the date.

BK_FILENAME=backup-domainname.com-$TIME.tar.gz    # The filename including the date.

SOURCE=/var/www/html                                                 # Source backup folder.

DESCT=/backup                                                           # Destination of backup file.

tar -czf $DESCT/$BK_FILENAME $SOURCE

Note: The only risk that can occur is to get out of disk memory if the source folder is big, but you can configure it by removing file after 30 days or any number of days with the help of the find command.

find /backup -type f -name ‘*.gz’ -mtime +15 -exec rm {} \;

Automation

In Linux, we can easily use the cron jobs in order to schedule task and perform the above backup task easily.                The cron jobs line has 6 parts see below explanation: Minutes Hours Day of Month Month Day of Week Command 0 to 59 0 to 23 1 to 31 1 to 12 0 to 6 Shell Command Open crontab editor utility:
#
crontab -e 

Note: the edit rules are similar with vi editor.
Paste the following text in the editor:
# M H DOM M DOW CMND
00 04 * * * /bin/bash /backup.sh
This will run the script every day at 04:00:00.
Check the rules of crontab with the help of the following command:
#
Crontab -l 

CONCLUSION

After the above configuration, you can take backup automatically and remove it in some specific period of time.

How to improve GTMetrix score of websites?

GTMetrix

It is a tool that is used to get more and more detailed reports about our site’s performance. It is a free tool that analyzes your page’s speed performance using Google Page Speed and YSlow. 

 

In addition, Google uses page speed in their ranking algorithms. Therefore, a faster performing site may rank higher in search engine results.

Earlier Report

 

To improve your score here, the first thing you must purchase a server from the VPS server provider who provides compression on their server like CloudMinister Technologies. Without server compression, you won’t be able to get a good score.

 

Few more steps you need to consider to get a good score from GTMetrix like Optimize images, Enable caching, Minify HTML, JavaScript code, activate CDN.

 

  • Enable Compression From server-side

 

 

It mostly happens that most of the server providers don’t enable compression by default, so we need to find those server providers who provide compression with the server.

 

 

  • Optimize Images

 

To get more score from GTMetrix we need to optimize all those images that we put on the websites because in large size images it takes more time to load, follow these steps to optimize images.

> Name your images descriptively and in plain language.

> Optimize your alt attributes carefully.

> Choose your image dimensions and product angles wisely.

> Reduce the file size of your images.

> Choose the right file type.

> Optimize your thumbnails.

> Use image sitemaps.

> Beware of decorative images.

> Use caution when using content delivery networks (CDN’s).

> Test your images.

 

 

  • Minify HTML , JavaScript code & CSS code

 

We need to Minify HTML & JavaScript as well as CSS code with this content will read fast by the browser and help your viewers to see the website more quickly. Cloudflare provides this feature to enhance the score on GTMetrix.

 

 

  • Activate CDN

 

A content delivery network (CDN) is a system of servers spread over multiple data centers located around the world. When a user visits your site they will be served content from the server closest to them.

The most popular CDN is Cloudflare – to activate you will need to sign up and add your site to a free plan. Once this is done you will need to change your nameservers so the domain looks towards Cloudflare. This can take up to 24 hours for the DNS to update but is usually much quicker.

After covering all the above points you will be able to get a better score over GTMetrix.

Conclusion – The above configuration shows how to achieve a better score on the GTMetrix, by following all these points your viewer will be able to visit your website more quickly. 

File compression in Linux

Here you will learn about the file compression and the full overview of types of file compression

File compression used to contain two or more file & directory in smaller size rather than original. Compression means reduce size of file.

In linux have many types of file compression
1. gzip

2. bzip2
3. xz
4. zip

 

# du -sh filename/or/path (This command use to check the size of file)

# yes “string” > file_name (This command use to copy string into file)

Alert :- immediately press (ctrl + c) after use yes command.If you not press (ctrl +c) immediately file size increase every second.

example :- 

  1. gzip :-

gzip is used to compress file but gzip not reduce more  size as compared to others. gzip extension is .gz.   

# gzip file_name (This command used for compress the file in .gz extension)


Uncompress gzip command

# gunzip  file_name.gz (This command used to unzip .gz file)

Example:- 


Create compress and tar file simultaneously 

#tar cvzf destination\path/file_name.tar.gz /source/path/ (This command used to compress in gz format and convert in tar file)

Example:- 


Uncompress and untar  file simultaneously

# tar xvzf file_name.tar.gz (This command used for uncompressing and untar file those extensions have .tar.gz or .tgz)

Example:- 

  1. bzip2

bzip2 is used to compress file bzip2 to reduce the size as compared to gzip. Bzip2 takes time to compress. Bzip2 extension is .bz2

# bzip2 file_name (This command used to compress the file with extension .bz2)

Uncompress bzip2 command

# bunzip2  file_name.bz2 (This command used to unzip .bz2      file)

Example:- 


Create compress and tar file simultaneously using bzip2 

#tar -cvjf destination\path/file_name.tar.bz2 /source/path/ (This command used to compress in bzip2 format and convert in tar file)

Example:- 

Uncompress and untar  file simultaneously using bzip2

# tar -xvf file_name.tar.gz (This command use for uncompress and untar file those extensions have .tar.bz2 or .tbz or .tb2)

Example:- 

  1. Xz

xz is used to compress file xz reduce more size as compared to other compression method.xz  extension is .xz.

# xz file_name (This command used to compress file with extension .xz)

Example:- 

Uncompress xz command

# unxz  file_name.bz2 (This command used to unzip .xz  file)

Example:- 


  1. Zip

Zip is used to compress the file or folder so that reduce the size of that package.
zip is available in linux,windows and unix. Many other software available that work same as zip. example:- WinRAR, 7zip etc.

 

Note: before use zip command first install zip package.

In centos installation :- # yum install zip -y

In ubuntu installation :- # apt-get install zip -y

Zip current all directory and file

# zip file_name.zip * (This command use to zip all current working directory and file) 

Recursively zip all directory file

# zip -r file_name.zip directory\path (This command use to recursively zip all file in a directory)

Exclude some file in zip 

# zip -r file_name.zip directory\path –exclude “*.extension”

(This command use to zip all file in directory but exclude some files using exclude option)

Extract zip file 

# unzip file_name.zip (This command use to extract zip file)

Extract zip file into directory 

# unzip file_name.zip -d directory\path (This command use to extract zip file into a directory)

By following this tutorial you will configure Centos Web Panel on your server through shell :-

Before installing CWP, you must know the following information:

:- CWP only supports static IP addresses. It does not support dynamic, sticky, or internal IP addresses.
:- CWP doesn’t has an uninstaller. After you install CWP, you must reinstall the server to remove it.
:- Only install CWP on a freshly installed operating system without any configuration changes.
:- Need atleast 512MB RAM for 32 bit systems.
:- 1024MB for 64 bit systems.
:- Need 4GB RAM or more to deploy all modules.
:- At least 20GB or hard disk space is required.

Step 1 :- Install Wget Package.

# yum install wget -y

Step 2 :- Update your server.

# yum update -y

Step 3 :- Download and Install CWP.

Download latest CWP version with command:

# wget http://centos-webpanel.com/cwp-latest

If the above URL doesn’t work, use the following link instead.

# wget http://dl1.centos-webpanel.com/files/cwp-latest

Then, start CWP installer using command with maria db database:

# sh cwp-latest -d mariadb

Now You can login your centos web panel on browser with URL :- https://xxx.xxx.xxx.xxx:2031

Conclusion: by following this tutorial you will able able to configure CWP panel.

Ports numbers those are used in Hosting 

These are the commonly port no. that are used in different type odf panels

Panel Port Numbers

Cpanel

Way of establishing an unencrypted connection to the server through http 

opens a connection to the port number 80

2082

Cpanel-SSL

It is the way of establishing an encrypted connection to the server through a secure socket layer through https  opens a connection to the port number 443

2083

Webmail

2095

Webmail-SSL

2096

WHM  (Web Host Manager)

It is a powerful program that allows administrative access to the back end of cPanel.

2086

WHM-SSL

2087

plesk  -: Web hosting platform with a control panel that allows a server administrator to set up new websites, reseller accounts, e-mail accounts and DNS entries

8880

plesk-SSL

8443

CWP ADMIN ( Centos Web Panel)

2030,2086

CWP ADMIN-SSL

2031,2087

CWP User-SSL

2083

CWP User

2082

Protocols Port Numbers

These are the commonly port no that are used in the below protocols

POP 3

110

POP 3-SSL

995

SMTP ( Simple Mail Transfer Protocol)

SMTP is a set of communication guidelines that allow software to transmit an electronic mail over the internet is called Simple Mail Transfer Protocol.

25

SMTP_SSL

465

SMTP alternate

26,587

IMAP (Internet Message Access Protocol)

 The Internet Message Access Protocol is an Internet standard protocol used by email clients to retrieve email messages from a mail server over a TCP/IP connection

143

IMAP-SSL

993

MYSQL  -MySQL is an open-source relational database management system.

3306

RDP (Remote Desktop Protocol)

Remote Desktop Protocol is a proprietary protocol developed by Microsoft which provides a user with a graphical interface to connect to another computer over a network connection

4489

MSSQL

1433

SSH  (Secure Shell)

Secure Shell is a cryptographic network protocol for operating network services securely over an unsecured network

22

FTP (File Transfer Protocol)

21

FTPs

990

SFTP – : SSH File Transfer Protocolthe

SSH File Transfer Protocol is a network protocol that provides file access, file transfer, and file management over any reliable data stream

22

MongoDB -:MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program

27017

Postgresql

5432

DNS

53

MTA

25

Conclusion: By using this port no you will be able work on panel and use the protocols easily.

Get started with CloudMinister Today