Code

Redis for Laravel

When running laravel you get errors if redis is allowed in the .env file.

  • sudo apt install php-dev php-pear
  • sudo pecl install redis
  • sudo nano /etc/php/8.0/mods-available/redis.ini
  • extension=redis.so
  • sudo systemctl restart apache2

PHP extensions install for Laravel

Use this command to install php extensions

sudo apt install php php-cli php-common php-json php-zip php-gd php-mbstring php-curl php-xml php-bcmath php-json php-pdo php-tokenizer php-xmlwriter php-ctype php-json php-bz2 php-zip php-dom