fballiano / docker-magento2

Cluster ready Magento2 + Varnish 7 + PHP 8.1 + Redis 6.2 + Elasticsearch 7.17 + SSL
355 stars 164 forks source link

The requested PHP extension sockets is missing from your system. #38

Closed AnonJervis closed 4 years ago

AnonJervis commented 4 years ago

I have an Ubuntu18.04 server on VM and got PHP extension sockets failed during magento2 installation readiness checklist.

php extension sockets

How can I resolve this?

Edit: Some of the stuff became irrelevant and I changed my post to pinpoint issue better.

AnonJervis commented 4 years ago

I have solved this issue. I'll leave it here so hopefully it may help others.

After you docker-compose up -d ,

docker exec -it your_apache_container /bin/bash and execute:

docker-php-ext-install sockets
docker-php-ext-configure sockets
docker-php-ext-enable sockets  (optional don't know if that helps)

Once that's done, exit container and execute:

docker-compose restart

That should get you pass magento2 readiness page.

AnonJervis commented 4 years ago

This problem arises again when I need to install extensions through web wizard readiness check. Reopening this hopefully someone can chip in.

sirbob commented 4 years ago

@AnonJervis - docker-compose uses this apache image: https://github.com/fballiano/docker-magento2-apache-php/blob/master/Dockerfile (https://hub.docker.com/r/fballiano/magento2-apache-php). I guess you could fork it and add socket there. Then modify docker-compose.yml to use your modified forked Dockerfile/image.

But not sure how different it would be from your solution above....

fballiano commented 4 years ago

sorry guys, I fixed the image now!