This container provides a development environment for the PHP.net website.
Operating system: Ubuntu 18.04.3 LTS (Bionic Beaver)
Web Server: Apache 2.x
PHP: 7.4
Prerequisite: Install the docker CLI tools for your environment.
-
Check out this repository, or download the files manually.
-
Run
docker-compose up
to run the image as a container. This will pipe local port80
to the Apache instance running in the container. If you wish to forward to a different port, you can edit theports
configuration variable indocker-compose.yml
. Note: The first time you run this command, it will download the server image from the Dockerfile and install the appropriate packages, this may take significant time on slower systems or those with limited bandwidth. -
Check out web-php into the
/phpweb
directory withgit clone https://github.com/php/web-php.git phpweb
. Alternately, if you are unable to use git or github but haversync
available, you may use the providedsync.sh
script to retrieve the php.net source. By default, this script skips all distribution files and syncs only the english manual files. Important Note: The mirroring guidelines warn not to sync more than once every 6 hours, failure to adhere to this guideline may result in your IP address being banned from syncing in the future. -
Visit
http://localhost:[your port here if not 80]
to view a working copy of the PHP.net website.
You can now edit the files contained in /phpweb
and view live updates on your local copy!