I installed phpmyadmin and I have the problem of the icons / images, just as everything in the themes folder does not work.
How much the permission of this folder stays the same as others
drw-r-r-- 11 root root 4096 Feb 5 22:48 templates
drw-r-r-- 4 root root 4096 Feb 5 22:48 themes
I'm using Nginx + PHP7.1, where in / I have a laravel hosted application.
/ etc / nginx / sites-enabled / JP_Digital
server {
listen 80;
listen [::]:80;
server_name http://IP_ADDRS
#return 301 https://$server_name$request_uri;
}
server {
root /var/www/html/meuprojeto/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name IP_ADDRS;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
}
location ~ /\.ht {
deny all;
}
location ~ /.well-known {
allow all;
}
location /phpmyadmin {
root /var/www/html/meuprojeto/phpmyadmin;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
#try_files $uri =404;
root /var/www/html/meuprojeto/phpmyadmin;
#fastcgi_pass 127.0.0.1:8080;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/$fastcgi_script_name;
include fastcgi_params;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /var/www/html/meuprojeto/phpmyadmin;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
}