PHP slow using official docker image + nginx (move to an fpm image?)
-
I am using the official wordpress:latest docker container with my own separate nginx reverse proxy container. This is the only way I access the admin interface on my multisite install. To be clear nginx is not being used as the WordPress web server – that’s still Apache as per the official container.
And boy is the admin interface slow – EVERY time a php loads or does a redirect to itself to force the cron job it takes 5s – so this means a 5s to 10s delay transitioning between admin sections / pages. I noticed on my client that the php is not cached locally in any way (to be clear i know nothing about php / coding).
- is this normal is there a simple fix to speed up php serving (i have tried all the basics around reducing plugins, increasing memory limits, checking container and docker host disk, cpu, memory constraints, etc)
- will moving to an FPM image variant and the configuring my nginx reverse proxy to do a fastcgi_pass solve this?
- If the answer to 2 is yes – is it ok for me to just swap out the image tag in my compose / stack files or is it more complicated than that
Or am i thinking about this is utterly the wrong way?
- The topic ‘PHP slow using official docker image + nginx (move to an fpm image?)’ is closed to new replies.