Webhosting control panel plesk and cPanel

In linux web hosting industry there are two most famous control panel ie. Plesk and cPanel. We will see difference and similarity between these two control panel also advantage and disadvantages of using them.

The choice of the control panel is client personal needs and comfort with the interface.

Advantages and disadvantages.

Major difference is plesk control panel usage database to store all records but cPanel uses simple text files to store all records and all tasks are executed using perl scripts.

Plesk and cPanel both offers all features to user such as managing email accounts, FTP account, hosting account and resellers account , creating database etc.. Also configuration of services like FTP , Mysql , Apache/Httpd , Named , mail and configuration of applications like php.

Since plesk use mysql database operation of tasks take bit more time than cPanel. Also if due to any bug in update any problem appears hosting provider have only option is to contact their support and let them fix. But in case of cPanel we can easily go back to previous version and sometime fix manually by updating records in files.

If mysql service goes down for any reason or database of plesk crashes then this takes entire plesk down that is not in case of cPanel. If case of any crash like if you are terminating any account from plesk and if server crashes before it terminate account you will need to work on DB to remove partially terminated account which is impossible without help of plesk support. But in case of cPanel it goes very easy to finish partially completed task by making changes to some text files this great advantage.

Migration of hosting account as it is from plesk to cPanel or cPanel to plesk nearly impossible so it is important to test both Panels and make decision. Personally I recommend go for cPanel.

Performance security

Although Resources usage of cPanel is less than plesk both fast in terms performance , secure and most stable panels in available hosting control panels.

Price:

Most of the people use cPanel because it is cheaper than plesk.

Operating system:

cPanel runs only on linux but plesk works on windows. For windows server plesk is highly recommended control panel.

Un installation:

cPanel it is not possible to un install cPanel. You only have option backup data and then re install server.

Plesk offer uninstall feature but it is not recommended.

Install java on ubuntu

In this tutorial we will learn how to install java and setup required java variables on ubuntu.

Java is one of the famous programming languages which allow developers to compile programs once and then run anywhere.

In this tutorials commands are provided to install java on ubuntu 16.04.

Installing java using default packages.

First of all we will update all existing packages on OS to latest version.

apt-get update && apt-get upgrade

Once OS’s packages updated install latest version of Java Runtime Environment (JRE) by executing following command:

apt-get install default-jre

You can install jdk instead of jre which is required to compile java programs. JDK is recommended as it includes jre as well.

apt-get install default-jdk

That’s all java is ready to use.

java -version
javac -version

Now setting up java installation path as JAVA_HOME variable. To find location execute command

update-alternatives --config java

Once you get path set it as JAVA_HOME by adding it to file /etc/environment like

JAVA_HOME="/usr/lib/jvm/java-9-oracle/bin/java"

To activate this variable for current session execute following command

JAVA_HOME="/usr/lib/jvm/java-9-oracle/bin/java"

Verify it is activated by executing command

echo $JAVA_HOME

That’s it.

How to add files folders to an existing TAR archive

It is possible to append on existing TAR archive.

We can add additional files/folders to an already existing TAR archive.

For example:

Create 3 files named as file1 file2 file3

[root@linux midnight]# touch file1 file2 file3

List file created.

[root@linux midnight]# ls -l
total 0
-rw-r--r-- 1 root root 0 Oct 29 10:26 file1
-rw-r--r-- 1 root root 0 Oct 29 10:26 file2
-rw-r--r-- 1 root root 0 Oct 29 10:26 file3

Create tar archive named as file.tar using following command

[root@linux midnight]# tar -cvf file.tar file1 file2 file3
file1
file2
file3

List contains of tar file file.tar

[root@linux midnight]# tar -tf file.tar
file1
file2
file3

Create additional file

[root@linux midnight]# touch file4

Add file4 to existing file.tar

[root@linux midnight]# tar -rf file.tar file4

List files of file.tar and see 4th file is added.

[root@linux midnight]# tar -tf file.tar
file1
file2
file3
file4