Mac LaravelでPlease make sure the PHP Redis extension is installed and enabled.

ERROR

MacのLaravelでRedisをインストールしようとしたところエラーになった

原因としてはMacにPHPのRedisがインストールされていなかった。

ターミナルのpeclでredisをインストールする


pecl install redis-5.0.2

php.iniにextensionを追記する


vim /usr/local/etc/php/7.3/php.ini
extension="redis.so"

brewコマンドでphpの再起動をする


brew services restart php
php -i | grep Redis
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x