Answer the question
In order to leave comments, you need to log in
How to install phpmyadmin on debian9 (nginx)?
The installation was carried out according to this instruction
https://www.howtoforge.com/tutorial/how-to-install...
Everything turned out and works.
Total Debian9+MySql+PHP-FPM
Next, you need to install phpmyadmin.
I used to install it without problems along with Apache, but here nginx.
Did according to different instructions (of course, I did not choose Apache or lighthttpd when installing phpmyadmin). Ruled configs, created links - but still does not work.
But when calling site/phpmyadmin, a 502 Bad Gateway error occurs.
How to install phpmyadmin on debian9 (nginx)?
Is there a working manual? I have already tried several options and so far without success.
Answer the question
In order to leave comments, you need to log in
It is put exactly the same as on apache. just create a nginx config file so that it directs /phpmyadmin requests to the folder on the server where you installed pma.
here is a working config for nginx+fpm+pma:
server {
listen 7535;
server_name localhost;
root /usr/share/phpmyadmin;
index index.php;
error_log /var/www/logs/pma.error.log;
access_log /var/www/logs/pma.access.log;
keepalive_timeout 1600;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
service nginx restart
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question