PHP 7, Phpmyadmin & MySQL 5.7 in Ubuntu 16.04

Hello folks

Ubuntu Xenial Xerus (16.04) is a cracker of a release. It is one of the best releases ever. While the desktop edition has several changes on the skin and under it making it one of the most stable releases of Ubuntu, the server edition has been updated with latest releases of various important software & packages. Some of the critical packages that have been updated that impact a lot are php, phpmyadmin, mysql as all of them have been updated. Standard installation techniques don’t work. Some additional packages have to be enabled and some modules have to be enabled manually for Phpmyadmin to work. Following are the steps you can follow for installing php 7, mysql 5.7 and phpmyadmin

In the terminal,

sudo apt-get install php-mbstring php7.0-mbstring php-gettext apache2 mysql-server-5.7 mysql-client php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 phpmyadmin

This will download all the required dependencies and will ask you to

  • Key in password for root for mysql
  • decide which webserver (select apache2)
  • Setup phpmyadmin with db-config – This time say ‘Yes’ and then enter the phpmyadmin db password you want to keep

Once this done

  • sudo mysql_secure_installation (answer the questions appropriately)
  • sudo phpenmod mycrypt
  • sudo phpenmod mbstring
  • sudo systemctl restart mysql
  • sudo systemctl restart apache2

You are done. Open up a browser and access – http:// <server ip address>/phpmyadmin

Leave a comment if you find this working or not working.

Cheers

Advertisements

2 thoughts on “PHP 7, Phpmyadmin & MySQL 5.7 in Ubuntu 16.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s