Cara Instalasi PhpMyAdmin di Nginx Server – CentOS 7 #005



Video tutorial bagaimana melakukan instalasi PhpMyAdmin dengan webserver Nginx untuk akses ke database MySQL/Mariadb di CentOS 7

————————————————————-
sudo yum install epel-release

sudo yum install phpmyadmin

sudo chgrp -R nginx /etc/phpMyAdmin
sudo chgrp -R nginx /var/lib/php

vim /etc/nginx/conf.d/example.conf

= tanda kurang buka dan tutup diubah menjadi tanda |

location /phpMyAdmin |
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpMyAdmin/(.+.php)$ |
try_files $uri =404;
root /usr/share/;
fastcgi_pass localhost: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;
|

#phpmyadmin #centos7 #mariadb
Download This Video

(Visited 5 times, 1 visits today)
treehoster
Author: treehoster

Share This Post
Have your say!
00