Thursday, 11 January 2018

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 file

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

For Ubuntu, Debian servers:

Step 2 : Increasing the timeout value

Open the 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 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 Installing mod_pagespeed with Apache on Ubuntu/CentOS


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 install mod_pagespeed package from google on an Ubuntu/CentOS server running apache.


  • Ubuntu/CentOS server with apache web server installed over it.
  • User account with sudo privileges.

Update Linux OS

Before downloading the package, make sure that Ubuntu/CentOS is updated and upgraded. To do this run the below commands in succession
# sudo apt-get update
# sudo apt-get upgrade
# sudo yum update
# sudo yum upgrade

Download mod_pagespeed

Now let’s move on to downloading the mod_pagespeed package (64-bit) for Apache by running the following command,
# wget
# wget

Install mod_pagespeed

Having downloaded the package, you can install it using the command below
# dpkg -i mod-pagespeed-stable_current_amd64.deb
# sudo apt-get install -f
# yum install at
# rpm -U mod-pagespeed-*.rpm
After installing the mod_pagespeed module successfully, you will need to restart apache to load the module.
# service apache2 restart.
# /etc/init.d/httpd restart

Verify the installation

You can verify the status of mod_pagespeed module by running the command in the terminal
curl -D- localhost | less
If everything is running fine, you shall see an output similar as the following,
Date: Fri, 03 Feb 2017 05:49:23 GMT
Server: Apache/2.4.7 (Ubuntu)
Accept-Ranges: bytes
Vary: Accept-Encoding
Cache-Control: max-age=0, no-cache
Content-Length: 10724
You should now have mod_pagespeed up and running on your server.
You can check out this article if you want to turn pagespeed ON/OFF on apache web server.

How to mount s3 bucket on local machine

If we want to use our s3 bucket as a hard disk and want to mount same on our server then we need to perform following steps:-

Kernel >= 2.6.32
S3fs = 1.74
Fuse = 2.8.4
libcurl >=7.0
Libxml >=2.6

  1. Create API Key Set :- Create access key and security key and download.
Login AWS console → My account → AWS management console → create an user account with API key set and download key.
Define user policy, allowing s3 access to an account.
  1. Go to IAM → identity & access management → user → create → Download Key
  2. Select created user → give access permission → Amazons3fullaccess

   2) Create Bucket:-
Create bucket → name → region (from properties we can manage access)

   3) login in server and create password file :-
Vim /etc/passwd-s3fs
Write accesskey:securitykey

Change permission :-
chmod 640 /etc/passwd-s3fs

4) Install & configure packages :-
~)# yum install gcc gcc-c++ curl-devel libxml2-devel curl libxml2-devel openssl-devel mlocate
Download fuse package:-
~)# cd /usr/src
src)#  tar-zxvf fuse-2.8.4.tar.gz
src)# cd fuse-2.8.4
fuse-2.8.4)# ./configure --prefix=/usr/local
fuse-2.8.4)# make
fuse-2.8.4)# make install
fuse-2.8.4)# ldconfig
fuse-2.8.4)# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
fuse-2.8.4)# pkg-config --modversion fuse (check version of fuse)
Download s3fs package :-
~) cd /usr/src
src)# tar -zxvf s3fs-1.74.tar.gz
src)# cd s3fs-1.74
s3fs-1.74)# ./configure --prefix=/usr/local
s3fs-1.74)# make
s3fs-1.74)# make install
s3fs-1.74)# s3fs --version (check version)

Now s3fs and fuse both are successfully installed, now this time to create directory and mount with s3:-
~) mkdir /s3-demo
~) s3fs lakhan-bucket /s3-demo   (where lakhan-bucket is name of bucket which you need to mount)
~) df -h :- (check is it mounted or not)
Permanent Mount s3 bucket on local machine:-
If you want to mount the S3 bucket permanently, add the following entry in the /etc/fstab

s3fs#lakhan-bucket  /s3-demo  fuse allow_user,use_cache=time 0 0
Lakhan-bucket = this is the bucket name
/s3-demo = this is the mounting directory
Fuse :- file system
allow_other – It allows other users to access the file.
use_cache – Local folder to use for local file cache

Errors and resolutions :-
  1. If got error :- cannot open shared object file

Then there is fuse library is missing, Install same by following command.
Yum install fuse-libs :- It will be of 251k package.
Then try to install the fuse in system then it will work.
2) if got error :- fuse >=fuse 2.8.4,or no fuse is installed then check following things:-

  1. Are you installing with root user
  2. Are you installing version fuse-2.8.4
  3. This happen because of fuse configuration, remove fuse and again install same with root user, It generally happen when you install with other users.

Step-by-step OpenLDAP Installation and Configuration on server

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Conf...