[Tanya] Running phpmyadmin on Nginx?


Status
Not open for further replies.

damblue

Poster 1.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.
 

arieonline

Expert 1.0
mending anda download phpMyAdmin dari web nya langsung, kemudian anda extract ke /var/www/
 

mustafaramadhan

Hosting Guru
Darimana anda dapat setting 'aneh' terkait 'location' (yang anda tambahkan tersebut) ?.
 
Status
Not open for further replies.

Top