1
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.

エラー:Docker + Laravel 6 + Redis (Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.)

Last updated at Posted at 2019-09-11

エラー

Laravel 6をDockerのRedisイメージで動かそうとするとエラーが出た
Screen Shot 2019-09-11 at 20.04.46.png

公式ドキュメント

Before using Redis with Laravel, we encorage you to install and use the PhpRedis PHP extension via PECL. The extension is more complex to install but may yield better performance for applications that make heavy use of Redis.

解決策

Dockerfile

FROM php:7.2-apache

RUN git clone https://github.com/phpredis/phpredis.git /usr/src/php/ext/redis
RUN redis
1
0
1

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
1
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?