To change the PHP version in your Docker setup while using 'PHP & MySQL: Novice to Ninja, 7th Edition', you need to modify the Dockerfile. The FROM directive specifies the base PHP image; changing this line allows you to select a different PHP version. For example, instead of 'FROM php:fpm-alpine', you could change it to 'FROM php:8.1.4-fpm-alpine'. Remember that changes to the Dockerfile require you to rebuild your container to take effect.
You can usually change the PHP version by editing the Dockerfile or using a different image tag. What version are you trying to switch to?
Collection
[
|
...
]