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:4505f6d918467c8d7f60a938c7b329ed775cdf0ede767dc1b132345a55d4b49d Vulnerability Report11-22-2024
8.1.10-cli-bullseye docker pull icr.io/ibmz/php@sha256:29bc1f4ef3d1d5a535a675cad13b5806bedaa858bbafc546fd81fe5b963a363e Vulnerability Report11-22-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