mirror of
https://github.com/cytopia/devilbox.git
synced 2025-05-03 09:13:08 +00:00
Add PHP 5.3 support
This commit is contained in:
parent
58952f884a
commit
87edcfdcdc
14
README.md
14
README.md
@ -122,7 +122,7 @@ Every single attachable container comes with many different versions. In order t
|
|||||||
<tr>
|
<tr>
|
||||||
<td><a target="_blank" title="Apache 2.2" href="https://github.com/devilbox/docker-apache-2.2">2.2</a></td>
|
<td><a target="_blank" title="Apache 2.2" href="https://github.com/devilbox/docker-apache-2.2">2.2</a></td>
|
||||||
<td><a target="_blank" title="Nginx stable" href="https://github.com/devilbox/docker-nginx-stable">stable</a></td>
|
<td><a target="_blank" title="Nginx stable" href="https://github.com/devilbox/docker-nginx-stable">stable</a></td>
|
||||||
<td><a target="_blank" title="PHP 5.4" href="https://github.com/devilbox/docker-php-fpm">5.4</a></td>
|
<td><a target="_blank" title="PHP 5.3" href="https://github.com/devilbox/docker-php-fpm">5.3</a></td>
|
||||||
<td><a target="_blank" title="MySQL 5.5" href="https://github.com/cytopia/docker-mysql-5.5">5.5</a></td>
|
<td><a target="_blank" title="MySQL 5.5" href="https://github.com/cytopia/docker-mysql-5.5">5.5</a></td>
|
||||||
<td><a target="_blank" title="MariaDB 5.5" href="https://github.com/cytopia/docker-mariadb-5.5">5.5</a></td>
|
<td><a target="_blank" title="MariaDB 5.5" href="https://github.com/cytopia/docker-mariadb-5.5">5.5</a></td>
|
||||||
<td><a target="_blank" title="PerconaDB 5.5" href="https://github.com/cytopia/docker-percona-5.5">5.5</a></td>
|
<td><a target="_blank" title="PerconaDB 5.5" href="https://github.com/cytopia/docker-percona-5.5">5.5</a></td>
|
||||||
@ -134,7 +134,7 @@ Every single attachable container comes with many different versions. In order t
|
|||||||
<tr>
|
<tr>
|
||||||
<td><a target="_blank" title="Apache 2.4" href="https://github.com/devilbox/docker-apache-2.4">2.4</a></td>
|
<td><a target="_blank" title="Apache 2.4" href="https://github.com/devilbox/docker-apache-2.4">2.4</a></td>
|
||||||
<td><a target="_blank" title="Nginx mainline" href="https://github.com/devilbox/docker-nginx-mainline">mainline</a></td>
|
<td><a target="_blank" title="Nginx mainline" href="https://github.com/devilbox/docker-nginx-mainline">mainline</a></td>
|
||||||
<td><a target="_blank" title="PHP 5.5" href="https://github.com/devilbox/docker-php-fpm">5.5</a></td>
|
<td><a target="_blank" title="PHP 5.4" href="https://github.com/devilbox/docker-php-fpm">5.4</a></td>
|
||||||
<td><a target="_blank" title="MySQL 5.6" href="https://github.com/cytopia/docker-mysql-5.6">5.6</a></td>
|
<td><a target="_blank" title="MySQL 5.6" href="https://github.com/cytopia/docker-mysql-5.6">5.6</a></td>
|
||||||
<td><a target="_blank" title="MariaDB 10.0" href="https://github.com/cytopia/docker-mariadb-10.0">10.0</a></td>
|
<td><a target="_blank" title="MariaDB 10.0" href="https://github.com/cytopia/docker-mariadb-10.0">10.0</a></td>
|
||||||
<td><a target="_blank" title="PerconaDB 5.6" href="https://github.com/cytopia/docker-percona-5.6">5.6</a></td>
|
<td><a target="_blank" title="PerconaDB 5.6" href="https://github.com/cytopia/docker-percona-5.6">5.6</a></td>
|
||||||
@ -146,7 +146,7 @@ Every single attachable container comes with many different versions. In order t
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><a target="_blank" title="PHP 5.6" href="https://github.com/devilbox/docker-php-fpm">5.6</a></td>
|
<td><a target="_blank" title="PHP 5.5" href="https://github.com/devilbox/docker-php-fpm">5.5</a></td>
|
||||||
<td><a target="_blank" title="MySQL 5.7" href="https://github.com/cytopia/docker-mysql-5.7">5.7</a></td>
|
<td><a target="_blank" title="MySQL 5.7" href="https://github.com/cytopia/docker-mysql-5.7">5.7</a></td>
|
||||||
<td><a target="_blank" title="MariaDB 10.1" href="https://github.com/cytopia/docker-mariadb-10.1">10.1</a></td>
|
<td><a target="_blank" title="MariaDB 10.1" href="https://github.com/cytopia/docker-mariadb-10.1">10.1</a></td>
|
||||||
<td><a target="_blank" title="PerconaDB 5.7" href="https://github.com/cytopia/docker-percona-5.7">5.7</a></td>
|
<td><a target="_blank" title="PerconaDB 5.7" href="https://github.com/cytopia/docker-percona-5.7">5.7</a></td>
|
||||||
@ -158,7 +158,7 @@ Every single attachable container comes with many different versions. In order t
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><a target="_blank" title="PHP 7.0" href="https://github.com/devilbox/docker-php-fpm">7.0</a></td>
|
<td><a target="_blank" title="PHP 5.6" href="https://github.com/devilbox/docker-php-fpm">5.6</a></td>
|
||||||
<td><a target="_blank" title="MySQL 8.0" href="https://github.com/cytopia/docker-mysql-8.0">8.0</a></td>
|
<td><a target="_blank" title="MySQL 8.0" href="https://github.com/cytopia/docker-mysql-8.0">8.0</a></td>
|
||||||
<td><a target="_blank" title="MariaDB 10.2" href="https://github.com/cytopia/docker-mariadb-10.2">10.2</a></td>
|
<td><a target="_blank" title="MariaDB 10.2" href="https://github.com/cytopia/docker-mariadb-10.2">10.2</a></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
@ -170,7 +170,7 @@ Every single attachable container comes with many different versions. In order t
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><a target="_blank" title="PHP 7.1" href="https://github.com/devilbox/docker-php-fpm">7.1</a></td>
|
<td><a target="_blank" title="PHP 7.0" href="https://github.com/devilbox/docker-php-fpm">7.0</a></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><a target="_blank" title="MariaDB 10.3" href="https://github.com/cytopia/docker-mariadb-10.3">10.3</a></td>
|
<td><a target="_blank" title="MariaDB 10.3" href="https://github.com/cytopia/docker-mariadb-10.3">10.3</a></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
@ -182,7 +182,7 @@ Every single attachable container comes with many different versions. In order t
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><a target="_blank" title="PHP 7.2" href="https://github.com/devilbox/docker-php-fpm">7.2</a></td>
|
<td><a target="_blank" title="PHP 7.1" href="https://github.com/devilbox/docker-php-fpm">7.1</a></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
@ -194,7 +194,7 @@ Every single attachable container comes with many different versions. In order t
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td><a target="_blank" title="PHP 7.2" href="https://github.com/devilbox/docker-php-fpm">7.2</a></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
0
cfg/php-fpm-5.3/.keepme
Normal file
0
cfg/php-fpm-5.3/.keepme
Normal file
0
cfg/php-ini-5.3/.keepme
Normal file
0
cfg/php-ini-5.3/.keepme
Normal file
18
cfg/php-ini-5.3/devilbox-custom.ini-example
Normal file
18
cfg/php-ini-5.3/devilbox-custom.ini-example
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[PHP]
|
||||||
|
; Memory
|
||||||
|
memory_limit = 4096M
|
||||||
|
|
||||||
|
; Timeouts
|
||||||
|
max_execution_time = 180
|
||||||
|
max_input_time = 180
|
||||||
|
; Uploads
|
||||||
|
post_max_size = 1990M
|
||||||
|
upload_max_filesize = 1990M
|
||||||
|
|
||||||
|
; Vars
|
||||||
|
max_input_vars = 8000
|
||||||
|
|
||||||
|
; Error reporting
|
||||||
|
error_reporting = E_ALL
|
||||||
|
display_errors = On
|
||||||
|
track_errors = On
|
@ -524,11 +524,11 @@ PHP_SERVER
|
|||||||
|
|
||||||
This variable choses your desired PHP-FPM version to be started.
|
This variable choses your desired PHP-FPM version to be started.
|
||||||
|
|
||||||
+-------------------------+--------------------------------------------------------------------------------------------------------------------------+-----------------+
|
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+-----------------+
|
||||||
| Name | Allowed values | Default value |
|
| Name | Allowed values | Default value |
|
||||||
+=========================+==========================================================================================================================+=================+
|
+=========================+===============================================================================================================================================+=================+
|
||||||
| ``PHP_SERVER`` | ``php-fpm-5.4`` |br| ``php-fpm-5.5`` |br| ``php-fpm-5.6`` |br| ``php-fpm-7.0`` |br| ``php-fpm-7.1`` |br| ``php-fpm-7.2`` | ``php-fpm-7.1`` |
|
| ``PHP_SERVER`` | ``php-fpm-5.3`` |br| ``php-fpm-5.4`` |br| ``php-fpm-5.5`` |br| ``php-fpm-5.6`` |br| ``php-fpm-7.0`` |br| ``php-fpm-7.1`` |br| ``php-fpm-7.2`` | ``php-fpm-7.1`` |
|
||||||
+-------------------------+--------------------------------------------------------------------------------------------------------------------------+-----------------+
|
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+-----------------+
|
||||||
|
|
||||||
All values are already available in the ``.env`` file and just need to be commented or uncommented. If multiple values are uncommented, the last uncommented variable one takes precedences:
|
All values are already available in the ``.env`` file and just need to be commented or uncommented. If multiple values are uncommented, the last uncommented variable one takes precedences:
|
||||||
|
|
||||||
@ -539,14 +539,13 @@ All values are already available in the ``.env`` file and just need to be commen
|
|||||||
|
|
||||||
host> grep PHP_SERVER .env
|
host> grep PHP_SERVER .env
|
||||||
|
|
||||||
|
#PHP_SERVER=php-fpm-5.3
|
||||||
#PHP_SERVER=php-fpm-5.4
|
#PHP_SERVER=php-fpm-5.4
|
||||||
#PHP_SERVER=php-fpm-5.5
|
#PHP_SERVER=php-fpm-5.5
|
||||||
#PHP_SERVER=php-fpm-5.6
|
#PHP_SERVER=php-fpm-5.6
|
||||||
#PHP_SERVER=php-fpm-7.0
|
#PHP_SERVER=php-fpm-7.0
|
||||||
PHP_SERVER=php-fpm-7.1
|
PHP_SERVER=php-fpm-7.1
|
||||||
#PHP_SERVER=php-fpm-7.2
|
#PHP_SERVER=php-fpm-7.2
|
||||||
#PHP_SERVER=php-fpm-7.3
|
|
||||||
#PHP_SERVER=hhvm-latest
|
|
||||||
|
|
||||||
|
|
||||||
.. _env_httpd_server:
|
.. _env_httpd_server:
|
||||||
|
@ -31,6 +31,7 @@ See the directory structure for PHP-FPM configuration directories inside ``./cfg
|
|||||||
|
|
||||||
host> ls -l path/to/devilbox/cfg/ | grep 'php-fpm'
|
host> ls -l path/to/devilbox/cfg/ | grep 'php-fpm'
|
||||||
|
|
||||||
|
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-fpm-5.3/
|
||||||
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-fpm-5.4/
|
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-fpm-5.4/
|
||||||
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-fpm-5.5/
|
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-fpm-5.5/
|
||||||
drwxr-xr-x 2 cytopia cytopia 4096 Apr 3 22:04 php-fpm-5.6/
|
drwxr-xr-x 2 cytopia cytopia 4096 Apr 3 22:04 php-fpm-5.6/
|
||||||
|
@ -24,6 +24,7 @@ See the directory structure for PHP configuration directories inside ``./cfg/``
|
|||||||
|
|
||||||
host> ls -l path/to/devilbox/cfg/ | grep 'php-ini'
|
host> ls -l path/to/devilbox/cfg/ | grep 'php-ini'
|
||||||
|
|
||||||
|
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-ini-5.3/
|
||||||
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-ini-5.4/
|
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-ini-5.4/
|
||||||
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-ini-5.5/
|
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-ini-5.5/
|
||||||
drwxr-xr-x 2 cytopia cytopia 4096 Apr 3 22:04 php-ini-5.6/
|
drwxr-xr-x 2 cytopia cytopia 4096 Apr 3 22:04 php-ini-5.6/
|
||||||
|
@ -40,12 +40,13 @@ It will look something like this:
|
|||||||
:caption: .env
|
:caption: .env
|
||||||
:emphasize-lines: 5
|
:emphasize-lines: 5
|
||||||
|
|
||||||
|
#PHP_SERVER=5.3
|
||||||
#PHP_SERVER=5.4
|
#PHP_SERVER=5.4
|
||||||
#PHP_SERVER=5.5
|
#PHP_SERVER=5.5
|
||||||
#PHP_SERVER=5.6
|
#PHP_SERVER=5.6
|
||||||
#PHP_SERVER=7.0
|
#PHP_SERVER=7.0
|
||||||
PHP_SERVER=7.1
|
PHP_SERVER=7.1
|
||||||
#PHP_SERVER=7.1
|
#PHP_SERVER=7.2
|
||||||
|
|
||||||
As you can see, all available values are already there, but commented. Only one is uncommented.
|
As you can see, all available values are already there, but commented. Only one is uncommented.
|
||||||
In this example it is ``7.1``, which is the PHP version that will be started, once the Devilbox
|
In this example it is ``7.1``, which is the PHP version that will be started, once the Devilbox
|
||||||
@ -61,12 +62,13 @@ In order to enable PHP 5.5, you would change the ``.env`` file like this:
|
|||||||
:caption: .env
|
:caption: .env
|
||||||
:emphasize-lines: 2
|
:emphasize-lines: 2
|
||||||
|
|
||||||
|
#PHP_SERVER=5.3
|
||||||
#PHP_SERVER=5.4
|
#PHP_SERVER=5.4
|
||||||
PHP_SERVER=5.5
|
PHP_SERVER=5.5
|
||||||
#PHP_SERVER=5.6
|
#PHP_SERVER=5.6
|
||||||
#PHP_SERVER=7.0
|
#PHP_SERVER=7.0
|
||||||
#PHP_SERVER=7.1
|
#PHP_SERVER=7.1
|
||||||
#PHP_SERVER=7.1
|
#PHP_SERVER=7.2
|
||||||
|
|
||||||
|
|
||||||
Start the Devilbox
|
Start the Devilbox
|
||||||
@ -97,12 +99,13 @@ Consider this ``.env`` file:
|
|||||||
:caption: .env
|
:caption: .env
|
||||||
:emphasize-lines: 2,4
|
:emphasize-lines: 2,4
|
||||||
|
|
||||||
|
#PHP_SERVER=5.3
|
||||||
#PHP_SERVER=5.4
|
#PHP_SERVER=5.4
|
||||||
PHP_SERVER=5.5
|
PHP_SERVER=5.5
|
||||||
#PHP_SERVER=5.6
|
#PHP_SERVER=5.6
|
||||||
PHP_SERVER=7.0
|
PHP_SERVER=7.0
|
||||||
#PHP_SERVER=7.1
|
#PHP_SERVER=7.1
|
||||||
#PHP_SERVER=7.1
|
#PHP_SERVER=7.2
|
||||||
|
|
||||||
Both, PHP 5.4 and PHP 7.0 are uncommented, however, when you start the Devilbox, it will use
|
Both, PHP 5.4 and PHP 7.0 are uncommented, however, when you start the Devilbox, it will use
|
||||||
PHP 7.0 as this value overwrites any previous ones.
|
PHP 7.0 as this value overwrites any previous ones.
|
||||||
|
6
docs/tutorials/custom-apache-modules.rst
Normal file
6
docs/tutorials/custom-apache-modules.rst
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.. _custom_apache_modules:
|
||||||
|
|
||||||
|
*********************
|
||||||
|
Custom Apache modules
|
||||||
|
*********************
|
||||||
|
|
5
docs/tutorials/custom-php-modules.rst
Normal file
5
docs/tutorials/custom-php-modules.rst
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.. _custom_php_modules:
|
||||||
|
|
||||||
|
******************
|
||||||
|
Custom PHP modules
|
||||||
|
******************
|
11
docs/tutorials/sync-local-and-devilbox-mysql-server.rst
Normal file
11
docs/tutorials/sync-local-and-devilbox-mysql-server.rst
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
.. _tutorial_sync_local_and_devilbox_mysql_server:
|
||||||
|
|
||||||
|
************************************
|
||||||
|
Sync local and Devilbox MySQL server
|
||||||
|
************************************
|
||||||
|
|
||||||
|
|
||||||
|
symlink
|
||||||
|
|
||||||
|
|
||||||
|
.. seealso:: best-practice move data out
|
@ -221,6 +221,7 @@ DEVILBOX_UI_ENABLE=1
|
|||||||
###
|
###
|
||||||
### 1.1 Choose PHP Server Image
|
### 1.1 Choose PHP Server Image
|
||||||
###
|
###
|
||||||
|
#PHP_SERVER=5.3
|
||||||
#PHP_SERVER=5.4
|
#PHP_SERVER=5.4
|
||||||
#PHP_SERVER=5.5
|
#PHP_SERVER=5.5
|
||||||
#PHP_SERVER=5.6
|
#PHP_SERVER=5.6
|
||||||
|
@ -22,11 +22,13 @@ docker pull cytopia/bind:${TAG}
|
|||||||
### PHP
|
### PHP
|
||||||
###
|
###
|
||||||
TAG="$( grep '^[[:space:]]*image:.*\${PHP_SERVER' "${CWD}/docker-compose.yml" | sed 's/^.*://g' )"
|
TAG="$( grep '^[[:space:]]*image:.*\${PHP_SERVER' "${CWD}/docker-compose.yml" | sed 's/^.*://g' )"
|
||||||
|
docker pull devilbox/php-fpm:5.3-work
|
||||||
docker pull devilbox/php-fpm:5.4-work
|
docker pull devilbox/php-fpm:5.4-work
|
||||||
docker pull devilbox/php-fpm:5.5-work
|
docker pull devilbox/php-fpm:5.5-work
|
||||||
docker pull devilbox/php-fpm:5.6-work
|
docker pull devilbox/php-fpm:5.6-work
|
||||||
docker pull devilbox/php-fpm:7.0-work
|
docker pull devilbox/php-fpm:7.0-work
|
||||||
docker pull devilbox/php-fpm:7.1-work
|
docker pull devilbox/php-fpm:7.1-work
|
||||||
|
docker pull devilbox/php-fpm:7.2-work
|
||||||
#docker pull cytopia/hhvm-latest:${TAG}
|
#docker pull cytopia/hhvm-latest:${TAG}
|
||||||
|
|
||||||
###
|
###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user