0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2016-07-27

問題

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セッションデータの保存先

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?