Sudo command with no password in linux!

How to avoid reputations of sudo command in linux.

Just follow bellow steps to avoid reputations.

Create file or edit if exist

sudo visudo -f /etc/sudoers.d/90-cloudimg-ubuntu

Zend framework quick guide

Quick overview on Zend Framework 3 with enough details.

  • Zend\EventManager component allows to send events and register listeners to react to them.

  • Zend\ModuleManager. In ZF3, every application consists of modules and this component contains module loading functionality.

  • Zend\ServiceManager. This is the centralized registry of all services available in the application, making it possible to access services from any point of the web site.

How to switch default php version in linux?

Problem :- How to switch default php version in linux ?

Platfom :- Linux


Check which php versions are available with system

    sudo update-alternatives --config php

Solid principles

In object-oriented computer programming, SOLID is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible and maintainable.


    S — Single responsibility principle.
    O — Open closed principle.
    L — Liskov substitution principle.
    I — Interface segregation principle.
    D — Dependency Inversion principle.

Geany tried to access the unix domain socket of another instance running as another user

Problem :- Geany tried to access the unix domain socket of another instance running as another user

Run bellow command which resolve your issue.

    sudo -H rm ~/.config/geany/geany_socket_*

Nginx full configuration with best performance

NGINX Tuning For Best Performance

This post assume that you are linux user and logged as root user.

This post is written by margining many configuration files at once so you may find same configuration at nginx official websiteas well.

Nginx tune up are dived into two major part

  1. Nginx main configuration file called as nginx.conf
  2. Another one is called as virtual host file wich located in eather conf.d directory or sites-enable folder based on linux flavour.

Linux user permission right way

To solve linux user and group permission issue for any kind of project.

First of all find the right user and right group which is executing that process.

Silver bullet of linux user permission.

sudo lsof -iTCP -sTCP:LISTEN -Pn
export OWENRE=$(whoami)
export GROUP=$(whoami)

Nginx minimal configuration

Basic nginx configuration for with php-fpm as reverse proxy

Complete guide to php performance

I have a list of server config , tweaks and tricks for improving php performance.   (1) A one-page opcache status page GitHub Link   Direct download 

How to improve mysql performance?

There are various kind of improvement are available to tweek the mysql configuration to improve and measure how to improve but few of my favorites tips are noted here.