LoginSignup
2
0

More than 3 years have passed since last update.

Fatal Error "opcache.preload_user" has not been defined

Posted at

問題

opcache を有効にしてアクセスすると次のエラーが発生しました。

Fatal Error "opcache.preload_user" has not been defined

原因

root ユーザーでプリロードするのは、セキュリティ上の理由から禁止されているそうです。

対策

php.ini に下記の設定を追記

php.ini
opcache.preload_user = www-data

opcache.preload_user はPHP7.4から追加されたそうです。

参考

2
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
2
0