php-redis on amazon linux 2

2

I'm working to deploy a laravel application on an Amazon Linux 2 instance.

I'm getting this error: Class "Redis" not found and the last error in the stack trace: vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:81

While looking around, it seems that the solution on CentOS and other "yum" distro's is to install php-redis. I haven't been able to find any such package for the Amazon Linux AMI.

How can I install php-redis?

질문됨 일 년 전2525회 조회
2개 답변
1
sudo yum update
sudo amazon-linux-extras install epel -y
sudo yum install php-pecl-redis

php -i | grep Redis
Redis Support => enabled
Redis Version => 2.2.8
profile picture
전문가
답변함 일 년 전
profile picture
전문가
Artem
검토됨 한 달 전
0
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠