phpmyadmin用户界面重复所有可点击的链接 [英] phpmyadmin user interface repeating all clickable links

查看:109
本文介绍了phpmyadmin用户界面重复所有可点击的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我界面中几乎所有可点击的链接都重复了两次.我一生无法理解为什么或如何解决它.其他一切工作正常.帮助将不胜感激!运行带有laravel 4的digitalocean ubuntu 14.04 NGINX
http://i.stack.imgur.com/ddbHW.jpg

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

附带说明:安装前,我必须通过以下方式编辑网站可用/默认文件 手动插入phpmyadmin位置以赋予优先级,以绕过想要覆盖的laravel.

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.

添加的>>

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;
           }    

[解决方案]

我的nginx配置文件中没有正确的代码,因此没有为pma依赖项提取正确的文件扩展名.通过将以下代码添加到我的nginx配置文件中,可以使其正常运行.

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.

注意* fastcgi_pass以及其他变量可能会因服务器而异.

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;
    }

推荐答案

[解决方案]

我的nginx配置文件中没有正确的代码,因此没有为pma依赖项提取正确的文件扩展名.通过将以下代码添加到我的nginx配置文件中,可以使其正常运行.

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.

注意* fastcgi_pass以及其他变量可能会因服务器而异.

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;
}

这篇关于phpmyadmin用户界面重复所有可点击的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆