Install phpmyadmin alongside Nginx and PHP 7

In Ubuntu setup if you have php7 along with nginx,then
sudo apt-get update
sudo apt-get install phpmyadmin
Press TAB when asked about the server since nginx is not in the list. Setup dbconfig password and the rest of it.
Create a symlink for phpmyadmin in Doc Root (here /var/www/html).Change it according to your setup.
sudo ln -s /usr/share/phpmyadmin /var/www/html
If you get mbstring not found error, then
sudo apt-get install php7.0-mbstring
If you get a 500 error saying not found php-gettext in the location,
sudo rm /usr/share/phpmyadmin/libraries/php-gettext/*
sudo apt-get install php7.0-cli php-seclib php-gettext
sudo ln /usr/share/php/php-gettext/* /usr/share/phpmyadmin/libraries/php-gettext


Leave a Reply

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

You are commenting using your 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