Install the latest stable releasewe will use phpmyadmin from the Michal Čihař ppa :
https://launchpad.net/~nijel/+archive/phpmyadmin
When prompted:
Configure nginx
map $scheme $fastcgi_https {
default off;
https on;
}
add to the server { }
### phpMyAdmin ###
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_pass unix:/tmp/phpfpm.sock;
fastcgi_param HTTPS $fastcgi_https; # <-- add this line for https support 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 ###
https://launchpad.net/~nijel/+archive/phpmyadmin
- add-apt-repository ppa:nijel/phpmyadmin
- apt-get update
- apt-get install phpmyadmin
When prompted:
- do not select any webservers.
- configure the database for phpmyadmin with dbconfig : yes
Configure nginx
- vim /etc/nginx/conf.d
map $scheme $fastcgi_https {
default off;
https on;
}
add to the server { }
- vim /etc/nginx/sites-enabled/
### phpMyAdmin ###
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_pass unix:/tmp/phpfpm.sock;
fastcgi_param HTTPS $fastcgi_https; # <-- add this line for https support 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 ###