Skip to content

Commit 60a6523

Browse files
authored
Fixed php-redis for PHP 8.0+
1 parent 33c9490 commit 60a6523

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.platform/hooks/prebuild/install_phpredis.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99
# Enabled by default since it's latest Laravel version's default driver.
1010

1111
sudo yum -y install php-redis
12+
13+
# For PHP 8.0+, you can use the pecl command to install it. You may disable the previous command.
14+
15+
# pecl install redis
16+
# sed -i -e '/extension="redis.so"/d' /etc/php.ini
17+
# echo 'extension="redis.so"' > /etc/php.d/41-redis.ini

0 commit comments

Comments
 (0)