phpmyadmin user interface repeating all clickable links

白昼怎懂夜的黑 提交于 2020-02-07 17:17:39

问题


Pretty much all click-able links in my interface are repeated twice. I for the life of me can't understand why or how to fix it. Everything else is working fine. Help would be much appreciated! Running digitalocean ubuntu 14.04 NGINX w/ laravel 4
http://i.stack.imgur.com/ddbHW.jpg

side note: on top of installation I had to edit the sites-available/default file by inserting manually phpmyadmin location to give priority in order to bypass laravel wanting to override.

addition that was made >>

location ^~ /phpmyadmin {
try_files $uri =404;
root /usr/share/; 
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
           }    

[SOLUTION]

I did not have the proper code in my nginx config file so it wasn't pulling proper file extentions for pma dependencies. Able to get it running normal by adding the following code to my nginx config file.

Note* fastcgi_pass along with other variables may differ depending on your server.

location ^~/phpmyadmin {
           root /usr/share/;
           index index.php index.html index.htm;
           location ~ ^/phpmyadmin/(.+\.php)$ {
                   try_files $uri =404;
                   root /usr/share/;
                   fastcgi_pass unix:/var/run/php5-fpm.sock;
                   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;
    }

回答1:


[SOLUTION]

I did not have the proper code in my nginx config file so it wasn't pulling proper file extentions for pma dependencies. Able to get it running normal by adding the following code to my nginx config file.

Note* fastcgi_pass along with other variables may differ depending on your server.

location ^~/phpmyadmin {
       root /usr/share/;
       index index.php index.html index.htm;
       location ~ ^/phpmyadmin/(.+\.php)$ {
               try_files $uri =404;
               root /usr/share/;
               fastcgi_pass unix:/var/run/php5-fpm.sock;
               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;
}


来源:https://stackoverflow.com/questions/27242486/phpmyadmin-user-interface-repeating-all-clickable-links

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!