CALL US: +91-9971329945 / +91-120-4312792 Live Chat Submit Ticket   Login

Author Archives: Pawan Sharma

About Pawan Sharma

Working as an IT support Engineer.
Installation of Zimbra Collaboration Suite on centos 7

A Mail Server (Sometimes Known as an Email Server) is a server that Sends and receives Email. It is one of the most critical servers for any organization as all communication is done via mail only. So We have multiple available software for Email servers but Today we will be discussing “ZIMBRA” one of the leading mail server solutions.

 

Zimbra Mail Server or ZCS (Zimbra Collaboration Suite) comes in two versions, Open source, and Enterprise Version.

Prerequisites of Zimbra Collaboration Suite

 

– Minimal Centos 7 without any mail, databases, LDAP, DNS, or HTTP servers up and running.

– FQDN (Fully Qualified Domain Name), In My case “mail.paws11.in”

– A and MX record for your server

The below article will show you how to install Open Source ZCS 8.8.15 on a Centos 7.

Step1. System Updates

 

Before proceeding further first update the system with the below command

# yum update -y

Step2. Configure Hostname

 

Set the hostname

#hostnamectl set-hostname mail.paws11.in

 

Now reboot the server

#reboot

Edit entry in “/etc/hosts”

#echo “XX.XX.XX.XX   mail.paws11.in    paws11.in”  >> /etc/hosts

NOTE: You have to set your own public IP.

 

To see the file

#cat /etc/hosts

Step3. Installing Zimbra dependencies

 

Now Install some Zimbra required  packages using yum

# yum install unzip net-tools sysstat openssh-clients perl-core libaio nmap-ncat libstdc++.so.6 wget -y

Step4. Download latest Version Zimbra (ZCS 8.8.15)

 

Create a directory in /home with the name “zimbra”

#mkdir zimbra

#cd zimbra

 

Use “wget” command to download the  latest Version Zimbra (ZCS 8.8.15) From terminal

#wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.RHEL7_64.20190918004220.tgz

Step5. Extract and install ZCS

Extract the downloaded file

#tar xfz zcs-8.8.15_GA_3869.RHEL7_64.20190918004220.tgz

 

Change the directory and run the install script.

#cd zcs-8.8.15_GA_3869.RHEL7_64.20190918004220

#./install.sh

Now Accept the License, Press “Y”

Now you have to press “Y” for installing Zimbra components

Now Press “Y” to modify the system

Now related packages will start installing

 

Now It will prompt you to change your domain name Press “yes”

Create domain name : paws11.in

Now we have to Set the admin Password so Press “7” and then “4” to set the admin user password.

 

Now press “r” to go to the previous menu and then “a” to apply the changes.

Step6: Open the below ports in the firewall and restart the firewall

 

[25,80,110,143,443,465,587,993,995,5222,5223,9091,7071]

Step7: Access from a web browser

 

Now open web browser and type “https://mail.paws11.in:7071”

Installation of  VSFTP on the centos7

The below article will help you to install VSFTP on the centos7

 

First Update the server with below command.
#yum update -y

 

Now install VSFTP with below command
#yum install vsftpd -y

 

Now make copy of the configuration file
#mv /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.old

Edit configuration file
#vi /etc/vsftpd/vsftpd.conf

###################################
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES
chroot_local_user=YES
allow_writeable_chroot=YES
pam_service_name=vsftpd
tcp_wrappers=YES
###################################

NOW restart the service:
#systemctl restart vsftpd

 

Then set the vsftpd service to start at boot:
#systemctl enable vsftpd

 

Now add New user
#useradd pawan

 

Change password
#passwd pawan

 

Now add user “pawan” in “/etc/vsftpd.userlist”
#echo “pawan” | tee -a /etc/vsftpd.userlist

pawan

 

We will use semanage command to set SELinux rule to allow FTP to read/write user’s home directory.
#semanage boolean -m ftpd_full_access –on

 

NOW restart the service:
#systemctl restart vsftpd

 

 

To get more updates clickhttps://www.datanethosting.com/blog/

 

To know more click

DATANET BACKUP AGENT INSTALLATION ON LINUX

The below article will guide you on how to install a backup agent on a Linux machine.

NOTE:  You should have root access to the Linux machine.

 

Steps To Follow:

  1. Login to the panel and Click the “DEVICES” and then click the “+Add” button for adding a new device.
  1. Select “Linux” under “SERVERS”
  1. Datanet backup agent (Backup_Agent_for_Linux_x86_64_Beta.bin) will get downloaded.
  2. Transfer that agent (Backup_Agent_for_Linux_x86_64_Beta.bin) to the LINUX SERVER from WinSCP. Or any other source.
  3. Go to the terminal as “root” and locate that agent file (Backup_Agent_for_Linux_x86_64_Beta.bin).
  4. Enter below command

#chmod +x Backup_Agent_for_Linux_x86_64_Beta.bin

# ./Backup_Agent_for_Linux_x86_64_Beta.bin

Now the installation will begin

Click “Next” for continuing and select “Acronis backup agent for Linux” and click “Next”

Now select “Show registration Code” and copied it.

  1. Now that code will enter in the Panel which you have logged in
  1. After clicking “REGISTER” Enter that code here.
  1. In the Linux terminal, you will see “CONGRATULATIONS” Press “EXIT”.
Amazon S3

Amazon S3

 

Amazon S3 stands for Simple Storage Service. It is a storage for the internet. Commonly known as S3.

Amazon S3 is used to store and retrieve any amount of data

 

Benefits:

 

1. highly scalable
2. reliable
3. Fast
4. Cost-effective

 

Terms:

 

1. Bucket: Bucket is a directory where the object is stored Or Bucket is the container of the object
2. Object: An object is a file and any optional metadata that describes the file.

 

 

Now the question arrises:

 

************************************************************************************************************

 

1. How to create a bucket?

 

Steps

 

a. First login to Console and Search and select S3.
b. Click Create Bucket.
c. Enter the unique* name for the bucket

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

NOTE:

 

A. Bucket Name rules:
> Be unique across all of Amazon S3.
> Be between 3 and 63 characters long.
> Not contain uppercase characters.
> Start with a lowercase letter or number.

B. After you create the bucket, you can’t change its name.

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

d. In Region, choose the AWS Region where you want the bucket to reside and remember If you want to take the benefit of minimum latency then choose the region which is closer to you.
e. In Bucket settings for Block Public Access, keep the values set to the defaults.

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Note: By default Amazon S3 blocks all public access to your buckets. It is recommended that you leave all Block Public Access settings enabled.

 

f. Finally Choose Create bucket.

 

************************************************************************************************************

 

2. How to Upload an Object to a bucket?

 

STEPS:

 

a. In the Buckets list, Select the bucket that you want to upload your object to.
b. On the Objects tab for your bucket, choose Upload.
c. Under Files and folders, choose to add  Files.
d. Choose a file to upload, and then choose Open.
e. Choose Upload.

You’ve successfully uploaded an object to your bucket.

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

3. How to Download an object from a bucket?

 

STEPS:

a. Select the bucket, And choose the object that you want to download.
b. The object overview opens.
c. On the Details tab, review information about your object.
d. To download the object to your computer, choose Object actions and choose Download.

You’ve successfully downloaded your object.

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

4. How to copy an object to a folder?

 

STEPS:

 

a. Select the bucket and Choose Create folder and configure a new folder and give a folder name.
b. For the folder encryption setting, choose None and Choose Save.
c. Navigate to the Amazon S3 bucket or folder that contains the objects that you want to copy.
d. Select the check box to the left of the names of the objects that you want to copy.
e. Choose Actions and choose Copy from the list of options that appears.

Alternatively, choose Copy from the options in the upper right.

f. Choose the destination folder:

> Choose Browse S3.
> Choose the option button to the left of the folder name.
> To navigate into a folder and choose a subfolder as your destination, choose the folder name.
> Choose Choose destination.

The path to your destination folder appears in the Destination box. In Destination, you can alternately enter your destination path, for example, s3://bucket-name/folder-name/.

g. In the bottom right, choose Copy.
h. Amazon S3 moves your objects to the destination folder.

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

5. Deleting objects and buckets

 

Steps: For Emptying your bucket

 

a. In order To empty a bucket
b. Select the bucket that you want to empty, and then choose Empty.
c. To confirm that you want to empty the bucket and delete all the objects in it, in Empty bucket, enter the name of the bucket.

Note: Emptying the bucket cannot be undone.

d. To empty the bucket and delete all the objects in it, and choose Empty.
e. To return to your bucket list, choose Exit.

 

Steps: For Deleting an object

 

a. In Order to delete an object.
b. Select the check box to the left of the names of the objects that you want to delete.
c. Choose Actions and choose Delete from the list of options that appears.

Alternatively, choose Delete from the options in the upper right.

d. Enter deletes if asked to confirm that you want to delete these objects.
e. Choose Delete objects in the bottom right and Amazon S3 deletes the specified objects.

 

Steps: For Deleting your bucket

 

a. After you empty your bucket or delete all the objects from your bucket, you can delete your bucket.
b. To delete a bucket, in the Buckets list, select the bucket.
c. Choose Delete.
d. To confirm the deletion, in the Delete bucket, enter the name of the bucket.

Note: Deleting a bucket cannot be undone. Bucket names are unique. If you delete your bucket, another AWS user can use the name. If you want to continue to use the same bucket name, don’t delete your bucket. Instead, empty and keep the bucket.

e. To delete your bucket, choose Delete bucket.

 

 

To get more updates on AWS click https://www.datanethosting.com/blog/

 

To know more click https://docs.aws.amazon.com/s3/?id=docs_gateway

 

cPanel & WHM restore backup through Command Line Interface

cPanel & WHM is a hosting tool used by hosting providers to manage their sites. Sometime we want to restore backup of an account from command line interface.

In order to do that use below command.

 

1. To restore backup of an account.

# /scripts/restorepkg <username.tar.gz>

Note: Replace <username.tar.gz> with your backup file.

 

Point To Remember: It will restore all the files, databases and Emails related to that user.

 

 

To get more updates on cPanel & WHM click https://www.datanethosting.com/blog/

 

To know more click https://docs.cpanel.net/whm/backup/