Return to Image List

php

php

PHP is a server-side scripting language designed for web development, but which can also be used as a general-purpose programming language. PHP can be added to straight HTML or it can be used with a variety of templating engines and web frameworks. PHP code is usually processed by an interpreter, which is either implemented as a native module on the web-server or as a common gateway interface (CGI).

See php.net for more information

This image is built by IBM to run on the IBM Z architecture and is not affiliated with any other community that provides a version of this image.


License

View license information here

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.


Versions

Use the pull string below for the version of this image you require.
8.2.3-cli-bullseye docker pull icr.io/ibmz/php@sha256:9c0499dd45d64f75251bd830818ec65dd59df9de6474bf421e595482c0ea4be5 Vulnerability Report04-30-2024
8.1.10-cli-bullseye docker pull icr.io/ibmz/php@sha256:92775fed64cec90ba5779d443df6b96121a9f1d3e4f2716c93d2012f7c4a2875 Vulnerability Report04-30-2024
Version Pull String Security (IBM Cloud) Created

Usage Notes

Note that we only provide the PHP runtime, PECL, and tooling to to assist in installing extensions. If you wish to use this image to run a web server, it is your responsibility to install the packages required for running a PHP based web server. Create a Dockerfile in your PHP project:

FROM icr.io/ibmz/php:[version]
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "php", "./your-script.php" ]

Then, run the commands to build and run the Docker image:

docker build -t my-php-app .

docker run -it --rm --name my-running-app my-php-app