Install + Running Phpmyadmin on nginx (Ubuntu 16.04)

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=9wm33sz6oe4



Duration: 7:17
26,462 views
172


How to install phpmyadmin on nginx, web server .. in Ubuntu 16.04.

Step :
1) sudo apt-get instal phpmyadmin
2) have two choice, apache / lighthttpd.. select none with click 'tab' on your keyboard - then enter.

config : dbconfig-common, select no.

3) sudo gedit /etc/nginx/sites-available/default, copy this script in server{ ..copy here.. }

====
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
==

4) restart nginx, sudo service nginx restart
5) open http://localhost/phpmyadmin

if you getting a error, like this :
502 Bad Gateway.
nginx/1.10.0 (Ubuntu)

you must install php-fpm, with :
sudo apt-get install php5.6-fpm

where 5.6 is your php version.

6) restart again nginx, sudo service nginx restart

7) bingo!

===========
See this video for details.




Other Videos By Ambar Hasbiyatmoko


2017-04-30Laravel 5.4 problem - Wrong Route (Not Found) on Ubuntu 16.04
2017-04-30Ubuntu 16.04 problem - Could not get lock in folder var lib when trying to install with apt-get
2017-04-28Fix PHP - Ubuntu 16.04 phpinfo shows blank Page (PHP 7.0)
2017-04-28Install Laravel 5.4 on Ubuntu 16.04 (with PHP 7.0) [part1]
2017-04-25Problem installing laravel(Ubuntu) - phpunit/phpunit 57 requires ext dom the requested PHP extension
2017-04-24Android Studio Error - android.os.NetworkOnMainThreadException
2017-04-24Android Studio Error - Cannot resolve symbol 'DefaultHttpClient'
2017-04-23VirtualBox - Connect guest to guest (Ubuntu and Centos7)
2017-04-22PHP tutorial : run C program from PHP on Ubuntu
2017-04-21Block port (SSH) on centos7 with IPTables
2017-04-20Install + Running Phpmyadmin on nginx (Ubuntu 16.04)
2017-04-19Install Arduino IDE on Ubuntu 16.04 from terminal
2017-04-19Tutorial Arduino Dasar - nyalain lampu LED arduino dengan koding
2017-04-19Arduino error (Ubuntu) - avrdude: ser_open(): can't open device "COM1": No such file or directory
2017-04-18Samba Tutorial (Centos 7) - samba share with password
2017-04-16Can't install Arduino (Ubuntu16.04) - xdg mime: file 'lin/cc.arduino.arduinoide.xml' does not exist
2017-04-16Phpmyadmin Tutorial - Create a user and grant privileges only their own databases
2017-04-15Membuat server web sendiri (laptop + ubuntu 16.04) menggunakan ISP firstmedia
2017-04-14Samba (Centos 7) - install and share folder from centos 7 to windows 7
2017-04-13Setting codeigniter in subfolder on nginx (ubuntu 16.04)
2017-04-12Codeigniter error (ubuntu) - mysqli::real connect: HY000/1698: Access denied user 'root'@'localhost'



Tags:
phpmyadmin
nginx
install
ubuntu
terminal
how to
web
server
fpm
block
linux
localhost
bad gateway