Sign inSign up

rgoyard/php-apache-public

By rgoyard

•Updated almost 11 years ago

Image
0

1.0K

rgoyard/php-apache-public repository overview

⁠rgoyard/php-apache-public

This docker repository was created from the php:apache⁠.

I prefer to have my public directory name public so i edited the apache2.conf file to make the apache document root to /var/www/public instead of (/var/www/html).

I also add the apache rewrite module to apache.

For example for an old application based on Zend Framework 1, you can use this docker image like that :

 docker run -d -p 80:80 -v /home/code/myzf1app/:/var/www/ --name myzf1app rgoyard/php-apache-public

So the whole application is mounted in /var/www/ and as the application DocumentRoot is in the public directory. The application is fully accessible.

Tag summary

Content type

Image

Digest

sha256:55184c319…

Size

137.4 MB

Last updated

almost 11 years ago

docker pull rgoyard/php-apache-public