[Tanya] Running phpmyadmin on Nginx?

Status
Not open for further replies.

damblue

Poster 2.0
Saya sudah instal phpmyadmin. dengan Commands berikut:
apt-get update
apt-get install phpmyadmin
ln -s /usr/share/phpmyadmin /usr/share/nginx/html
service nginx restart
service php7.0-fpm restart

nah setelah instal config di nginx saya tambahin ini
Code:
location /phpmyadmin {
        alias /usr/share/phpmyadmin;
}
location ~ ^/phpmyadmin(.+\.php)$ {
        alias /usr/share/phpmyadmin;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$1;
        include fastcgi_params;
}
location ~ ^/phpmyadmin/(.*\.(eot|otf|woff|ttf|css|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|xls|tar|bmp))$ {
        alias /usr/share/phpmyadmin/$1;
        expires 30d;
        log_not_found off;
        access_log off;
}

tapi ga jalan jalan Tuan phpmyadminnya
karena ga jalan saya tambahin ini lagi
ln -s /usr/share/phpmyadmin /var/www/
soalnya web saya simpannya disitu bukan di /usr/share/nginx/html
tetap ga jalan.

kira-kira apa yang kurang dan salah.
Please Bantu.

Terima Kasih.
 
Darimana anda dapat setting 'aneh' terkait 'location' (yang anda tambahkan tersebut) ?.
 
wah udah bisa ternyata.
nunggu proses kayaknya. makasih Tuan.
biar ga lupa saya taruh caranya disini :D:

# cd /var/www/
# wget https://files.phpmyadmin.net/phpMyAdmin/4.6.4/phpMyAdmin-4.6.4-all-languages.zip
# unzip phpMyAdmin-4.6.4-all-languages.zip

rename folder "phpMyAdmin-4.6.4-all-languages" menjadi "phpmyadmin"
lalu buka IP/namedomain/phpmyadmin
login deh :*

2016_09_04_023602z.jpg
 
Status
Not open for further replies.
Back
Top