Skip to content

zfarrugia/apache-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

apache-php

ff

PHP 7.3 Web Server runnning Apache

Configuration

Get started by creating a Dockerfile:

FROM zfarrugia/apache-php

Sendmail Config

To setup sendmail for PHP and configure the SMTP account settings. See Msmtp. Add the following to the Dockerfile.

# Set up php sendmail config
RUN echo 'sendmail_path = "/usr/bin/msmtp -t"' >> /usr/local/etc/php/conf.d/php-sendmail.ini; \
    echo "# Set default values for all following accounts.  " >  /etc/msmtprc; \
    echo "defaults                                          " >> /etc/msmtprc; \
    echo "#auth           on                                " >> /etc/msmtprc; \
    echo "#tls            on                                " >> /etc/msmtprc; \
    echo "#tls_trust_file /etc/ssl/certs/ca-certificates.crt" >> /etc/msmtprc; \
    echo "logfile        ~/.msmtp.log                       " >> /etc/msmtprc; \
    echo "                                                  " >> /etc/msmtprc; \
    echo "# Default                                         " >> /etc/msmtprc; \
    echo "account        default                            " >> /etc/msmtprc; \
    echo "host           mail                               " >> /etc/msmtprc; \
    echo "#port           587                               " >> /etc/msmtprc; \
    chmod 600 /etc/msmtprc

About

PHP 7 Web Server runnning Apache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published