Bonjour,
Voila je rencontre un petit problème avec mon phpmyadmin sous antergos, il fonctionne mais les icones n'apparaît pas et c'est difficile de travailler dans ces conditions.
Voici un screenshot de mon interface phpmyadmin:
J'ai suivi l'installation via le wiki arch linux https://wiki.archlinux.org/index.php/PhpMyAdmin.
J'ai utilisé l'option 2 pour nginx (créer un lien symbolique).
Si quelqu'un aurais une idée d'ou vien le problème ?
tu as mis root = /usr/share/nginx/html pour location /
et c'est là ou nginx va chercher les images (fichiers non php)
voici ma config
sachant que j'ai mis phpmyadmin dans le dossier /usr/share/nginx/html/pma
server {
root /usr/share/nginx/html/pma;
index index.php index.html;
error_log /var/log/nginx/error_pma.log;
access_log /var/log/nginx/access_pma.log;
server_name localhost;
log_not_found on;
location / {
error_page 404 /404.html;
try_files $uri $uri/ /index.php =404;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
Le pb doit venir du chargement des images
qu'indique les outils de dev du navigateur (onglet réseau) ?
As-tu essayé de changer de thème : original ou pmahomme ?
Sinon montre nous ta config nginx, normalement il n'y a rien de particulier à faire pour les images
l'url suivante ramène l'icone "sens interdit"
http://localhost/phpmyadmin/themes/pmahomme/img/b_drop.png
qu'est-ce que ça donne chez toi ?
Salut, non je n'est rien changé, j'ai installer phpmyadmin via les paquets.
Pour ton lien j'ai une erreur 404, sinon voici ma config nginx (celui fourni avec l'install avec une modif sur la partie php):
#user html;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/nginx/html;
#root /home/fukotaku/www;
index index.php index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /srv/http;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
c'est un pb de root
Si le php fonctionne, ça veut dire que root = /svr/http
pourquoi mettre autre chose dans location / ?
Ah d'accord !
Je pensais que ma partie en php fesait exception si j'était sur un fichier php.
Merci ça fonctionne !