phpmyadmin用户界面重复所有可点击的链接

时间:2014-12-02 05:29:13

标签: laravel nginx phpmyadmin digital-ocean

我界面中几乎所有可点击的链接都会重复两次。我为我的生活无法理解为什么或如何解决它。其他一切都很好。非常感谢帮助!运行digitalocean ubuntu 14.04 NGINX w / laravel 4
    http://i.stack.imgur.com/ddbHW.jpg

旁注:在安装之上我必须编辑sites-available / default文件 手动插入phpmyadmin位置优先,以便绕过想要覆盖的laravel。

添加>>

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配置文件中,能够使其正常运行。

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

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 个答案:

答案 0 :(得分:0)

<强> [溶液]

我的nginx配置文件中没有正确的代码,所以它没有为pma依赖项提取适当的文件扩展名。通过将以下代码添加到我的nginx配置文件中,能够使其正常运行。

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

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