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:a3883bb958c05c3683aa87244efb86af7ee05db7eb1f02d5c08dda960b2b8192 Vulnerability Report10-29-2024
8.1.10-cli-bullseye docker pull icr.io/ibmz/php@sha256:2428d658939839797dfcecf316dec22176562f3cd5e00f1057fabdf55ec786c7 Vulnerability Report10-29-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