https://github.com/beardocker/ubuntu12-apache-php53
apache+php5.3
https://github.com/beardocker/ubuntu12-apache-php53
Last synced: 9 months ago
JSON representation
apache+php5.3
- Host: GitHub
- URL: https://github.com/beardocker/ubuntu12-apache-php53
- Owner: BearDocker
- Created: 2016-08-10T06:28:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-10T07:05:37.000Z (over 9 years ago)
- Last Synced: 2025-02-04T04:08:58.984Z (11 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
apache-php
===================================
A Docker image based on Ubuntu 12.04, serving the old PHP 5.3 running as Apache Module. Useful for Web developers in need for an old PHP version. In addition, the `error_reporting` setting in php.ini is configurable per container via environment variable.
Tags
-----
* latest: Ubuntu 12.04 (LTS), Apache 2.2, PHP 5.3.10 with support for setting `error_reporting`
Usage
------
```
$ docker run -d -P imagine10255/ubuntu12-apache-php53
```
With all the options:
```bash
$ docker run -d -p 8080:80 \
-v /home/website/{your-site}:/var/www \
imagine10255/ubuntu12-apache-php53
```
* `-v [local path]:/var/www` maps the container's webroot to a local path
* `-p [local port]:80` maps a local port to the container's HTTP port 80
* `-e PHP_ERROR_REPORTING=[php error_reporting settings]` sets the value of `error_reporting` in the php.ini files.
### Access apache logs
Apache is configured to log both access and error log to STDOUT. So you can simply use `docker logs` to get the log output:
`docker logs -f container-id`
Installed packages
-------------------
* Ubuntu Server 12.04, based on ubuntu docker image
* apache2
* php5
* php5-cli
* libapache2-mod-php5
* php5-gd
* php5-ldap
* php5-mysql
* php5-pgsql
Configurations
----------------
* Apache: .htaccess-Enabled in webroot (mod_rewrite with AllowOverride all)
* php.ini:
* display_errors = On
* error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE (default, overridable per env variable)
Docker File 參考來源 bylexus/apache-php53