Sign inSign up

macintoshplus/apache2-php

By macintoshplus

•Updated almost 7 years ago

Apache2 and PHP from my image

Image
1

1.3K

macintoshplus/apache2-php repository overview

⁠Use

composer run -d -v /path/sources:/sources -v /path/to/vhost:/etc/apache2/sites-enabled macintoshplus/apache2-php:php72

⁠Exemple of VHost

<VirtualHost *:80>
        ServerAdmin [email protected]

        DocumentRoot /sources/web

        <ifModule mod_headers.c>
                Header set Server "DOCKER"
        </ifModule>
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /sources/web/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Tag summary

Content type

Image

Digest

Size

492.3 MB

Last updated

almost 7 years ago

docker pull macintoshplus/apache2-php:php72