Sign inSign up

rahn/php-apache-with-extensions

By rahn

•Updated 5 months ago

Webserver mit PHP und Extensions ähnlich konfiguriert, wie ein Webhosting Server bei HostEurope.

Image
0

1.0K

rahn/php-apache-with-extensions repository overview

⁠Docker-Image rahn/php-apache-with-extensions

Ein Docker-Image mit einem Webserver, PHP und Extensions der ähnlich konfiguriert ist, wie ein Webhosting Server bei HostEurope. Damit kann lokal, z. B. Wordpress, unter ähnlichen Bedingungen getestet werden.

Diese Image basieren auf den offiziellen PHP⁠ Images mit Apache httpd⁠.

Starten mit docker run -i --rm --cap-add=SYS_NICE --cap-add=DAC_READ_SEARCH -p 127.0.0.1:8080:80/tcp --name php-apache-app rahn/php-apache-with-extensions:latest

Aufrufen:

  • http://localhost:8080
  • http://localhost:8080/phpinfo.php Hier werden auch die aktivierten Apache Mods und installierten PHP Extension angezeigt.

⁠Exposed Ports

  • 80/tcp

⁠Versions

  • latest, 8, 8.3, 8.3.31 (PHP/8.3.31, Zend Engine/4.3.31 and Apache/2.4.57) Dockerfile⁠

  • 8.2, 8.2.9 (PHP/8.2.9, Zend Engine/4.2.9 and Apache/2.4.67) Dockerfile⁠

  • 8.1, 8.1.10 (PHP/8.1.10, Zend Engine/4.1.10 and Apache/2.4.54) Dockerfile⁠

  • 8.0, 8.0.13 (PHP/8.0.13, Zend Engine/4.0.13 and Apache/2.4.51) Dockerfile⁠

  • 7, 7.4, 7.4.11 (PHP/7.4.11, Zend Engine/3.4.0 and Apache/2.4.38) Dockerfile⁠

  • 7.3, 7.3.11 (PHP/7.3.11, Zend Engine/3.3.11 and Apache/2.4.38) Dockerfile⁠

  • 7.2, 7.2.13 (PHP/7.2.13, Zend Engine/3.2.0 and Apache/2.4.25) Dockerfile⁠

  • 7.1, 7.1.25 (PHP/7.1.25, Zend Engine/3.1.0 and Apache/2.4.25) Dockerfile⁠

  • 7.1.22 (PHP/7.1.22, Zend Engine/3.1.0 and Apache/2.4.25) Dockerfile⁠

⁠Homepage des Autors

Frank W. Rahn⁠

⁠Nützliche Docker-Befehle und Beispiel

Build einer Version:

docker build -t rahn/php-apache-with-extensions ${VERSION}/

Start des Servers:

docker run -i --rm -p 127.0.0.1:80:80/tcp -v ./www:/var/www/html:rw --name php-apache-app rahn/php-apache-with-extensions

Im lokalen Verzeichnis www befinden sich die PHP-Dateien. Typischerweise gehört das Verzeichnis dem User www-data.

Verbinden mit der bash:

docker exec -it php-apache-app bash

⁠Informationsquellen bei HostEurope

⁠PHP 8.3

Webhosting: http://php83.hosteurope-infos.de/phpinfo.php⁠

Webserver: http://webserver-php83.hosteurope-infos.de/phpinfo.php⁠

Migration: https://www.php.net/manual/de/migration83.incompatible.php⁠

⁠PHP 8.2

Webhosting: http://php82.hosteurope-infos.de/phpinfo.php⁠

Webserver: http://webserver-php82.hosteurope-infos.de/phpinfo.php⁠

Migration: https://www.php.net/manual/de/migration82.incompatible.php⁠

⁠PHP 8.1

Webhosting: http://php81.hosteurope-infos.de/phpinfo.php⁠

Webserver: http://webserver-php81.hosteurope-infos.de/phpinfo.php⁠

Migration: https://www.php.net/manual/de/migration81.incompatible.php⁠

⁠PHP 8.0

Webhosting: http://php8.hosteurope-infos.de/phpinfo.php⁠

Webserver: http://webserver-php8.hosteurope-infos.de/phpinfo.php⁠

Migration: https://www.php.net/manual/de/migration80.incompatible.php⁠

⁠PHP 7.4

Webhosting: http://php74.hosteurope-infos.de/phpinfo.php⁠

Webserver: http://webserver-php74.hosteurope-infos.de/phpinfo.php⁠

Migration: https://php.net/manual/de/migration74.incompatible.php⁠

⁠PHP 7.3

Webhosting: http://php73.hosteurope-infos.de/phpinfo.php⁠

Webserver: http://webserver-php73.hosteurope-infos.de/phpinfo.php⁠

Migration: http://php.net/manual/de/migration73.incompatible.php⁠

⁠PHP 7.2

Webhosting: http://php72.hosteurope-infos.de/phpinfo.php⁠

Webserver: http://webserver-php72.hosteurope-infos.de/phpinfo.php⁠

Migration: http://php.net/manual/de/migration72.incompatible.php⁠

⁠PHP 7.1

Webhosting: http://php71.hosteurope-infos.de/phpinfo.php⁠

Webserver: http://webserver-php71.hosteurope-infos.de/phpinfo.php⁠

Migration: http://php.net/manual/de/migration71.incompatible.php⁠

Tag summary

Content type

Image

Digest

sha256:f7622f0a7…

Size

317.9 MB

Last updated

5 months ago

docker pull rahn/php-apache-with-extensions