So I just upgraded my VPS from 14.04 to 16.04, the upgrade went well for most parts, but MySQL failed to update. I needed to manually remove mariadb-client first, and then I was able to install MySQL again, and everything on my website is now working fine, except for phpMyAdmin. Whenever I open the site.com/phpmyadmin page it displays an nginx 502 error, bad gateway.
The relevant parts of my nginx config file looks like this:
location ~ \.php$
{
fastcgi_index index.php;
fastcgi_keep_conn on;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /phpmyadmin
{
root /usr/share;
location ~ \.php$
{
include php.conf;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$
{
root /usr/share/;
}
}
I looked around the net to see if anyone faced similar issues, but in most cases the solution was an incorrect php-fpm setting.
In my case it seems to be working well:
root@server:/etc/nginx/conf.d-enabled# service php7.1-fpm status
php7.1-fpm start/running, process 28542
root@server:/etc/nginx/conf.d-enabled# ls -l /var/run/php/php7.1-fpm.sock
srw-rw-rw- 1 www-data www-data 0 Jan 9 15:01 /var/run/php/php7.1-fpm.sock
PhpMyAdmin worked well before the upgrade to 16.04, and apart from removing mariadb-client nothing else happened besides the automatic process.
Any ideas where should I dig to find a solution? Thanks in advance for any help!