File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717## PHP version
1818
19- To use a specific PHP version, append the version number to the image name.
19+ To use a specific PHP version, append the version number to the image name.
2020
2121Eg: ` image: yappabe/php:5.6`
2222
2323The following PHP versions are available :
2424
25- * PHP 7.0.0 (jessie stable)
25+ * PHP 7.0 (jessie stable)
2626* PHP 5.6 (jessie stable)
2727* PHP 5.4 (wheezy stable)
2828* PHP 5.3 (squeeze stable)
2929
30+ # # Configurations
31+
32+ You can configure the following environment vars, these are the defaults.
33+
34+ ```
35+ ENV ENVIRONMENT dev
36+ ENV PHP_FPM_USER www-data
37+ ENV PHP_FPM_PORT 9000
38+ ENV PHP_ERROR_REPORTING "E_ALL \& ~ E_NOTICE \& ~ E_STRICT \& ~ E_DEPRECATED"
39+ ```
40+
41+ ## Development and permissions
42+
43+ Run php-fpm process as `root` user to avoid cli and fpm permission collissions.
44+ Never ever use this in production!
45+
46+ ```
47+ ENV PHP_FPM_USER www-data
48+ ```
49+
50+
You can’t perform that action at this time.
0 commit comments