How can I fix the MediaWiki error “Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.”?

前端 未结 12 2849
春和景丽
春和景丽 2021-02-14 02:03

The problem I am having is that I can not log on to my newly created wiki that I made using MediaWiki. I have searched the web for an answer, and the ones I found did not help w

12条回答
  •  不要未来只要你来
    2021-02-14 02:25

    If you are using NGINX + PHP-FPM the previous answers will likely not solve your problem.

    From my experience, this issue is caused when php-fpm doesn't have write access to the cookie_path. You can find this path by running:

    php-fpm -i|grep --color cookie_path
    

    See what your cookie_path is, then stat the folder and ensure your php-fpm user has write access to it.

    To resolve this issue using Nginx and Php-Fpm, I had to change my cookie_path from it's default of / (seriously, why would this be a default?) to /tmp.

    After restarting nginx and php-fpm, it works perfectly.

提交回复
热议问题