Help us understand the problem. What is going on with this article?

Mautic初回設定時orログイン時に「The CSRF token is invalid. 」

More than 3 years have passed since last update.

問題

Apacheユーザを変更した際、初回設定のNextstepボタン押下後、またはログイン時、先に進まず、

「The CSRF token is invalid. Please try to resubmit the form.」

と表示される、という問題が発生した。

解決方法

PHPセッションデータの所有者権限を変更後のApacheユーザにしてあげると解決した。

#自分の場合apacheからdeployに変更
$ sudo chown -R deploy:deploy /var/lib/php/session
drwx------. 2 deploy deploy 4096  7月 26 18:14 session
...

sessionのディレクトリはphp infoを見ると分かるらしい。
自分の場合はCentOS6.5のphp5.6で、上記の場所にあった。

参考サイト

https://www.mautic.org/community/index.php/962-invalid-csrf-token-at-install/0
http://tweeeety.hateblo.jp/entry/20121218/1355802787
https://ymyk.wordpress.com/2012/03/15/PHPセッションデータの保存先

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away