PHP 8 and GDLib in the Docker container

Rate this post

If you run your own server in order to run your personal or company homepage, you usually need a current PHP version. Most common content management solutions (CMS) also require the correct activation of GDLib. The GDLib is a graphics library for various graphic formats such as PNG and JPEG. However, since support for PHP 7.4 ended, many homepage operators now need to update to PHP 8.1 or higher.

Such an update is quite easy thanks to the use of the official PHP Docker container on DockerHub. Unfortunately, the image comes without additional extensions. They then have to be installed additionally. Here you can use Dockerfile to create your own creation from the original image, which contains all the necessary extensions such as database connections and graphics libraries. In this article I will not go into the creation of a customized PHP Docker image, but will specifically show the problems that arise when installing GDLib. Because a little has changed here when switching from PHP 7 to PHP 8.

Abonnement / Subscription

[English] This content is only available to subscribers.

[Deutsch] Diese Inhalte sind nur für Abonnenten verfügbar.

This entry was posted in Subscription and tagged by Elmar Dott. Bookmark the permalink.
Elmar Dott

About Elmar Dott

Elmar Dott has been implementing large web applications as a freelance consultant in international projects for over 20 years. His focus is on DevOps, configuration management, software architectures & release management. As a trainer, he shares his knowledge in training courses and also speaks regularly on current topics at conferences.

Leave a Reply