Code Area PHP Tips and Tricks Tools and Technologies Ubuntu

Depreciation Notice Error in Phpmyadmin With Ubuntu16.04

If you see the error notice properly you can understand what does it means. This error notice means some of your PHP has old constructors. So if you replace these old constructors with new constructor then the problem will be solved.

Depreciation Notice Error in Phpmyadmin With Ubuntu16.04


To do this, open streems.php file by this command.

sudo gedit /usr/share/php/php-gettext/streams.php

 StringReader Error: To find it go to line number 52 then

//Replace this line
function StringReader ($str='') {

function __construct($str='') {


FileReader Error: To find it go to line number 90 then

//Change this
function FileReader ($str='') {

function __construct($str='') {


CacheFileReader Error: To find it go to line number 146 then

//Change this
function CacheFileReader ($str='') {

function __construct($str='') {

Then save & close the file. After that open gettext.php file by this command.

sudo gedit /usr/share/php/php-gettext/gettext.php

Go to line number 101 then

// Replace this line
function gettext_reader($Reader, $enable_cache = true) {

function __construct($Reader, $enable_cache = true) {

Career Code Area Tips and Tricks Tools and Technologies

Install Elasticsearch in Ubuntu 16.04

Elasticsearch is a distributed, real-time, full-text search engine. Elasticsearch developer by JAVA (based on Lucene). It has an HTTP web interface and schema-free JSON documents. In this article, I will describe how to install and then configure elasticsearch in ubuntu 16.04. Let’s see

Before you install elasticsearch, please ensure java is installed on your machine. If not then install java first before doing anything.

Install Elasticsearch in Ubuntu 16.04
Install Elasticsearch in Ubuntu 16.04

Installing Java 8

 First Add the Java PPA to apt package database.

sudo add-apt-repository -y ppa:webupd8team/java

Then run update commands to update your apt package database.

sudo apt-get update
Then install Java 8 and verify it is installed, run following command.

sudo apt-get -y install oracle-java8-installer
java -version
After successfully install Java, now you can install  Elasticsearch on your machine.

Installing and Configuring Elasticsearch

You can download elasticsearch from their official website It would be always good to download deb (Debian) version for the ubuntu, cause it has everything integrated to successfully run elasticsearch. You can also download it through the command line:

sudo wget
Then install this as usual ubuntu way with the dpkg command:

sudo dpkg -i elasticsearch-1.7.2.deb

After execution this command your installation will be completed, now you have to configure elasticsearch. By default all configuration files of elasticsearch stored into the /etc/elasticsearch directory. Here you can get two files elasticsearch.yml and logging.yml. To configure the elasticsearch you have to open elasticsearch.yml file in your text editor.

sudo nano /etc/elasticsearch/elasticsearch.yml

Now find the line and in this file and uncomment it (remove # before them) and change the value of these two.

Find the line, network.bind_host uncomment it by removing the # character at the beginning of the line, and change the value to so it looks like this:


After all done, elasticsearch will be installed on your computer, now just run this command to start elasticsearch.

sudo service elasticsearch start

For testing elasticsearch output. just type http://localhost:9200/ in your browser and see the possible response.

  "status" : 200,
  "name" : "sohel-rana-pc",
  "cluster_name" : "sohel-rana-elasticsearch",
  "version" : {
    "number" : "1.7.2",
    "build_hash" : "e43676b1385b8125d647f593f7202acbd816e8ec",
    "build_timestamp" : "2015-09-14T09:49:53Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  "tagline" : "You Know, for Search"
Code Area Ubuntu

Few Basic Ubuntu Commends for Newbie User

Here is some basic commends for the newbie user who recently trying to use ubuntu. This tutorial is for them and welcome to ubuntu world. Cheers!!!