-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start due to missing PHP Redis Extension #302
Comments
Instead of docker run, does it work for you with just |
@driesvints nope tried deleting all the volumes even manually. Docker-Compose.yml as per below -
|
I should also note that the above is using the command to install the composer requirements as per the docs at - https://laravel.com/docs/8.x/sail#installing-composer-dependencies-for-existing-projects |
@MattHadfield113 your app is a PHP 8.0 project, correct? |
OP states a PHP 8.1 version.
This is probably a PHP version conflict on Windows if it isn't a typo. |
@driesvints correct. |
@MattHadfield113 any reason then why you reported this as 8.10? |
@driesvints apologies, that was a typo, its all running PHP 8.0 |
@taylorotwell @driesvints upon further investigation, this happens when the following is set in the .env file -
When running the command -
This then generates the error of -
Setting cache driver back as per below resolves the issue -
Therefore i would suggest that laravelsail/php80-composer:latest is missing the Redis extension, thus causing the error. |
@MattHadfield113 to be fair, you shouldn't set your cache store when running this command. It's only intended to run at the beginning when you're first installing your dependencies. Just unset the env variable for now to run the command. |
@driesvints I also encountered this issue right now. Yes, I can unset the env variable just before executing this command, but because it's part of my |
I understand but I think it's best to document this internally for now. |
I'm also experience the error. In my case the problem is that After
Sail Version: 1.13 docker-compose.yml:
|
I guess #314 is related since php8.0 inside the container has all needed extensions, however php8.1 doesn't |
Description:
All of our docker installs throughout the company are failing due to PHP Redis not being available inside the docker image.
Trying to run using the following batch file -
docker run --rm -v "%cd%:/opt" -w /opt laravelsail/php80-composer:latest composer install --ignore-platform-reqs
Steps To Reproduce:
Try to run the above command using Docker, downloads latest image, then fails to run due to PHP-Redis being missing. Happening on 4 developer machines at present.
The text was updated successfully, but these errors were encountered: