Tuesday, 23 January 2018

How to ssh Without Password

Here we have done send data from one server to another server by using rsync command without password for ssh its also same

    1. Test rsync over ssh (with password):

    rsync -avz -e ssh /home/test/ root@

    2. ssh-keygen generates keys.

    $ ssh-keygen

    Enter passphrase (empty for no passphrase):

    3. ssh-copy-id copies public key to remote host

    Use ssh-copy-id, to copy the public key to the remote host.

    ssh-copy-id -i ~/.ssh/id_rsa.pub

    4. Perform rsync over ssh without password


    Perform the rsync again, it should not ask you to enter any password this time.

    rsync -avz -e ssh /home/test/ root@

Friday, 19 January 2018

How to set up trapper in zabbix

Steps for setting trapper on items:

Step 1:

create host(trapper_junglee) under the host-group(teenpati-production) for which u need to create trapper. (Eg;

Step 2:

create item under created host(trapper_junglee)
Name  : Maintenance
Type  : Zabbix Trapper
key   : maintenance
rest all as it is & update it

Step 3:

create trigger under created host(trapper_junglee)
Name : Maintenance 00:25 - 00:40
Expression : {trapper_healthkart:maintenance1.time()}>002500 and {trapper_healthkart:maintenance1.time()}<004000
Severity : Information
Enable & update the trigger.

Step 4:

Go to particular machine( and select the trigger for which want to add trapper.
    In that go to dependencies and add the trapper time[trigger] by selecting right host-group and host.

Step 5 :

Finally update it.

Friday, 12 January 2018

How to create screen on zabbix Admin

Steps To Create A Screen:

1: First select a particular location or any machine of that location (eg:205.14796.214-a dataweave machine) which you want to create a screen.

2: Select Graph.

3: Select create graph.

4: Give name to the screen which you want to create.

5: Then add number of machine you want in that screen from host filter.

6: Then finally select the add button.

7: Then select Monitoring>screen>Create screen.

8: Give a name and select number of row’s and column’s.

9: Select that screen which you have created.

10 : Select Edit Screen>Change.

11: In graphs select the number of screens which you have created finally select add.

12 : Select slide show.

Thursday, 11 January 2018

How to install DKIM on Ubuntu server

Step 1: Install DKIM package
Use the following command in your terminal to install the DKIM package
sudo apt-get install opendkim opendkim-tools

Step 2: Edit configuration file

After installation of the package, there will be a config file created within the installed directory. Edit the config file  by adding the content given below at the end of the file.
Domain                  test.com
KeyFile                 /etc/postfix/dkim.key
Selector                mail
SOCKET                  inet:8891@localhost
Make sure to replace example.com with your domain name.

Step 3: Install and configure Postfix

(Skip to next step if already installed and configured). Postfix is the standard Mail Transfer Agent for Ubuntu. Use the command below to install Postfix.
sudo apt-get install postfix
Follow the instructions on the screen and complete the installation process. Open the postfix config file using the following command and edit as follows.
vim /etc/postfix/main.cf
Add the following lines towards the end of the file, then save and exit by pressing ESC key followed by typing :wq! and then hit the Enterkey.
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891

Step 4: DKIM key generation

Generate the DKIM key using the command
opendkim-genkey -t -s mail -d test.com
This command will generate mail.private and mail.txt file. mail.private is private key that will be used to sign outgoing emails. Move it to /etc/opendkim.conf
cp mail.private /etc/postfix/dkim.key

Step 5: Setting DNS records

Open the mail.txt file using cat command
cat mail.txt
The result will look similar to this
mail._domainkey    IN    TXT    ( "v=DKIM1; k=rsa; t=y; "
      "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDny/XOYgwb+zaDh/HNvrYVDIF5xRsVmKM4BKRyq4+3LVKvTtqtKG56wld1/xbBVRRtJKczYCjZPmDrepz7mXw+TSqYX5nURJdV+lxhHOK85c78ua4twI4XFfCrwr3q/kj4HuQLJ2ceN9VqRO5CoE5kPTunopNOB1Nv3TolP5wkKQIDAQAB" )  ; ----- DKIM key mail for test.com
Use the data available to set up your DNS records for your corresponding domain name.

Step 6: Setting up and testing

Start your DKIM service using the command
sudo service opendkim start
Restart the postfix service once before testing your setup
sudo service postfix restart
Now its time to set your DKIM setup. There are a few ways to test the setup out of which use the following.

Magento Installation on Linux

Please follow the below procedure to install Magento on linux machines

1. Download the latest magento tar file in your local machine by signing up on offical website.
2. Now using sftp or rsync copy the magento.tar file from local machine to server.
3. Extract Magento package file .
tar xvzf magento-
4. Copy all magento files/directories to domain root folder i.e,  /home/domainname/public_html
rsync -ravP magento/ /home/domainname/public_html/
5. We need to change the ownership of the files located in /publichtml
chown -R domainame:domainname public_html/
6. Now we need to change the permissions for the both Folder in /home/domainname/public_html
chmod -R 775 app/
chmod -R 775 media/
Magento configuration setup:
Now Open your browser and type your domain name, Now you’ll see the welcome/first page of domain.
Now start by continue button and give the concerned Local setting( time zone and currency )

Now go with continue button
Next page will be Database Configuration page. provide the database details
NOTE : If you added  domain through virtualmin by selecting mysql, it creates new MySql database and user, you can use the same details in magento Database connection
Now In the Web Access Options section, selcet skip the baseurl validation.
Now in the next page Create Admin Account page.
We need to an Encryption key.
If every thing is done correctly then following page displays to indicate a successful installation.
Backend will take you to admin login page
To login to Admin Dashboard of Magento, please go to the url http://ip-address or domain /index.php/admin and enter the required credentials created while installation Magento through web interface. We’ll see something like this.
Frontend will be the main site veiw
Magento Installation is done.

Magento Patching
After logging in through admin panel you will be seeing critical,warning messages, which means we need to do patch for concerned messages
The details of the patch will be given in the messages itself
Download the patches from the offical website and upload them in server through Sftp/Filezila
NOTE : If Patch is applied/removed the following message will be shown

Patch was applied/reverted successfully.
Thank you ! Enjoy Magento.

How to login with Filezilla

Please follow the below mentioned steps:

1. Run Filezilla and go to Edit -> Settings
2. In settings window expand FTP and click on SFTP.
3. Click on Add keyfile and browse to the location of your private key file(id_rsa).
4. When you select your private key file, it will give you a message to convert keyfile.
The file ‘/path/.ssh/id_rsa’ is not in a format supported by FileZilla. The file is also password protected. Password protected key files are not supported by FileZilla yet.
Would you like to convert it into a supported, unprotected format?
Press yes and save your converted private key file anywhere you wish on your local machine.
Your keys are now added for SFTP. Close the Settings window.
5. Provide the following details:
a. Host (your servers IP)
b. Username (domain user)
c. Port (22 i.e default SSH port)
6. Click on Quickconnect button.
7. The first time you login it will show you Unknown Host key message.You can ignore this message and click on OK to continue.
8. You will now be displayed a Filezilla window containing information about the local and remote computers. The left side panel will contain the files and directories present on your local computer whereas the right side panel will contain the files and directories present on the remote computer.
9. You can simply drag and drop or copy and paste the files and folder from left pane(your local machine) to right pane(remote server).

Wednesday, 10 January 2018

Turn Google pagespeed ON/OFF on Apache server


Google Pagespeed is a family of tools by Google which is designed to help a website’s performance optimizations. This article will briefly explain how to turn pagespeed ON or OFF by editing the the Apache configuration file.


Prior to editing the pagespeed configuration, you should have the following setup on your server.
  • Linux OS(CentOS/Ubuntu/Debian/Fedora) with Apache web server installed over it.
  • User account on server with sudo privileges.
  • mod_pagespeed package must be installed on your server.
You can learn how to install mod-pagespeed package with apache on Ubuntu/CentOS server by clicking here.
Step 1: Login to your server with root access
Step 2: Access the apache server configuration file using any editor. We will be using vim editor for this article.
In Ubuntu:
# vim /etc/apache2/mods_available/pagespeed.conf
In CentOS:
# vim /etc/httpd/conf.d/pagespeed.conf
Step 3: Identify the line starting with ModPagespeed and edit it to  ModPagespeed On (to enable) and ModPagespeed Off (to disable) page speed for your domain. Then save the changes and exit the configuration file.
Step 4: Post this please restart apache web server service using command
In Ubuntu:
# service apache2 restart
In CentOS:
# /etc/init.d/httpd restart

Tuesday, 9 January 2018

How to reset password in Webuzo panel


Resetting password is pretty straight forward in Webuzo panel. By the end of this article you will learn how to change user, mysql, file manager password using Webuzo enduser panel.

Step 1: Login to Webuzo panel

Login to Webuzo panel using your login credentials and navigate to the Enduser Panel located on the left side menu.

Step 2: Navigate to Security section

Once you have opened the Enduser panel, scroll down and find Security section. Click on the Change Password icon to change password.

Step 3: Change password

You can now change your user password, file manager password, MySQL password using the dialog box provided .
To change File manager password
To change User password
To change MySQL password
After changing the passwords you can login to your Webuzo panel using the new password.

How to set php short_open_tag=on/off in php.ini

To set the short_open_tag = on in php.ini
less /etc/php.ini | grep short_open_tag
short_open_tag = off
change it to ON in php.ini by using favourite editor
vi /etc/php.ini (search for short_open_tag )
Please replace the value OFF with ON under /etc/php.ini
Restart your Apache server.

How to Increase timeout session in phpMyAdmin

Step 1: Locate config.inc.php file

If you have installed phpMyAdmin on to the server, then you will find the config.inc.php file in the path as mentioned below.
For CentOS, Fedora servers:

For Ubuntu, Debian servers:

Step 2 : Increasing the timeout value

Open the config.inc.php file and add the following anywhere in the file
$cfg['Servers'] [$i] ['LoginCookieValidity'] = <your_new_timeout>;
In the place of your_new_timeout, enter the required timeout session in multiples of 3600.
For example :
$cfg['Servers'] [$i] ['LoginCookieValidity'] = <3600*3>;
Then save the changes to the config.inc.php file. Login to the phpMyAdmin page and verify the changes made.
After login in, you might get the message error below:
Your PHP parameter session.gc_maxlifetime is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.
To rectify this error:
Edit the php.ini configuration file depending on your linux server distibution:
  • Ubuntu  – /etc/php5 /apache2/php.ini
  • Centos  –  /etc/php.ini
  • Fedora –  /etc/php.ini
  • Debian – etc/php5/apache2/php.ini
You need to change the setting of session.gc_maxlifetime in php.ini to be greater than or equal to the value that you entered before which is 3600*3 in our example’s case.

How to Download and Install RHEL8 Beta For Free (Red Hat Enterprise Linux)

RHEL (Red Hat Enterprise Linux) 8 beta was released on November 14, 2018, 4 years after the release of RHEL 7. This tutorial will be showi...