Skip to content

rodrigoitj/docker-apache-php-5.3

 
 

Repository files navigation

Apache + PHP5.3 for legacy applications

Build Status

PHP 5.4, despite being a minor update, introduced a series breaking changes in PHP language. There are many legacy applications in the web that won't work with PHP older than 5.3. This docker image aims to fix the problem, providing PHP 5.3 environment for legacy applications.

Basic Usage

Image expects application's document root to be in /web.

Create Dockerfile in root of webapplication, with one line:

FROM koder/apache-php-5.3

Build and run with:

docker build -t <project-name> .
docker run -it --rm -p 8080:80 <project-name>

Dependencies

This image installs dependencies automaticly, just place relevant file in root of your legacy application.

  • bower.json will run bower install
  • package.json will run npm install
  • composer.json will install composer and run composer.phar install

Using custom php.ini

If you place php.ini file in root of your application, it will be used as conf.d.

Email

If possible, you should use smtp to send e-mails from your application. If your legacy app relies on PHP mail() function and is impractical to rewrite, this image comes pre-installed with ssmtp to push your emails to specified external smtp service. To use ssmtp simply place ssmtp.conf file in root of your application. Minimal example:

[email protected]
mailhub=smtp.yourmail.com
hostname=yourserver.example.com
FromLineOverride=YES
[email protected]
AuthPass=password

About

Apache + PHP5.3 for legacy applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ApacheConf 57.7%
  • Shell 42.3%