Sign inSign up

diekeulect/php52-webserver

By diekeulect

•Updated over 10 years ago

# PHP5.2 Docker Docker with Centos 5, PHP 5.2, Apache 2.2 with some modules

Image
0

10K+

diekeulect/php52-webserver repository overview

⁠PHP5.2 Docker

Docker with Centos 5, PHP 5.2, Apache 2.2 with some modules forked from https://hub.docker.com/r/seti/php52/⁠ (thanks).


⁠Services

  • Apache
  • postfix
  • vixie-cron (crond)

⁠Usage example

###Needed directories on host:

  • vhost
  • webapp
  • logs
⁠Usage example
  • with custom php.ini
  • with webapp root at /home/www/webapp
NAME="php52"
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
docker run -d \
    -p 80:80 \
    -v $DIR/data/webapp:/home/www/webapp \
    -v $DIR/data/logs:/var/log/httpd \
    -v $DIR/data/vhost:/etc/httpd/vhost.d \
    -v $DIR/php.ini:/etc/php.ini \
    --restart=always \
    --name $NAME \
    diekeulect/php52-webserver

Tag summary

Content type

Image

Digest

Size

217.4 MB

Last updated

over 10 years ago

docker pull diekeulect/php52-webserver