Failed to generate random CSRF token! (phpmyadmin 4.6.4)

后端 未结 3 577
栀梦
栀梦 2020-12-19 22:46

I installed newest versions of MySQL, IIS (on windows 10) and PHPMyAdmin.

But PHPMyAdmin 4.6.4 returns an error:

Failed to generate random CSR

相关标签:
3条回答
  • 2020-12-19 22:59

    royhutw is kind of right.

    The default session.save_path is C:\Windows\Temp. If you're getting this error IIS probably doesn't have permissions to create a session file there.

    Only thing you'll have to do is give "IUSR" modify permissions on this folder and reload your phpMyAdmin page.

    0 讨论(0)
  • 2020-12-19 23:18

    modify php.ini :

    session.save_path = "c:\session"
    

    grant modify c:\session permission to USERS

    run command: iisreset

    0 讨论(0)
  • 2020-12-19 23:21

    I will write here, maybe it will be useful to someone. I have a similar problem but with mysql 8 on debian 9 and sometimes I get an error token. This kind of stupid solution works for me: I change the line in php.ini:

    session.save_path = "/ var / lib / php / sessions"
    

    For anything, later I run:

    sudo service apache2 restart
    

    And once again I change the exchange line above to the correct one and reset again and I can log in to phpmyadmin ...

    0 讨论(0)
提交回复
热议问题