iT邦幫忙

0

透過 brew 安裝 nginx mariadb phpmyadmin 但 phpmyadmin 卻錯誤 Token mismatch

  • 分享至 

  • xImage

首先透過 brew 安裝了 nginx mariadb php phpmyadmin 並確認運行

a @ nginx $ brew services list
Name    Status  User         Plist
mariadb started a /Users/a/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
nginx   started a /Users/a/Library/LaunchAgents/homebrew.mxcl.nginx.plist
php     started a /Users/a/Library/LaunchAgents/homebrew.mxcl.php.plist

也使用了 mariadb-secure-installation init mariadb 設定

db.conf

server {
    listen       8001; 
    server_name  localhost 127.0.0.1;
    root   /usr/local/share/phpmyadmin/;

    location / { 
        root   /usr/local/share/phpmyadmin/;
        index  index.php index.html index.htm;
    }   

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include        fastcgi_params;
    } 
} 

進入 phpmyadmin 也能夠看到介面
但點擊任何一個功能出現錯誤:Token mismatch
https://imgur.com/O4MnrBs
我是不是哪裡少設置了?
我是安裝php8.0然後有去php.ini的 session.save_path = "/tmp" 啟用
也重新啟動nginx
但都會出現這個錯誤
直接透過 mysql -u root -p 登入是可以的

$ mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 3371
Server version: 8.0.23 Homebrew

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MySQL [(none)]> 

tmp使用率也不是滿的

$ df -h /tmp
Filesystem     Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk1s5  234Gi   39Gi  178Gi    19%  966829 2448158531    0%   /System/Volumes/Data
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答