Skip to content

Commit

Permalink
Fixed php-redis for PHP 8.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki authored Oct 24, 2021
1 parent 33c9490 commit 60a6523
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .platform/hooks/prebuild/install_phpredis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
# Enabled by default since it's latest Laravel version's default driver.

sudo yum -y install php-redis

# For PHP 8.0+, you can use the pecl command to install it. You may disable the previous command.

# pecl install redis
# sed -i -e '/extension="redis.so"/d' /etc/php.ini
# echo 'extension="redis.so"' > /etc/php.d/41-redis.ini

1 comment on commit 60a6523

@ThanhSonITNIC
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pecl install redis error
No releases available for package "pecl.php.net/redis"
install failed

Please sign in to comment.