mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-18 10:46:23 +00:00
Documentation about PHP 5.2
This commit is contained in:
parent
f1a350c5b3
commit
7d0e0a8fa6
@ -525,20 +525,28 @@ PHP_SERVER
|
||||
|
||||
This variable choses your desired PHP-FPM version to be started.
|
||||
|
||||
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+
|
||||
| Name | Allowed values | Default value |
|
||||
+=========================+====================================================================================================================================================================+=================+
|
||||
| ``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`` |br| ``php-fpm-7.2`` | ``php-fpm-7.1`` |
|
||||
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+
|
||||
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+
|
||||
| Name | Allowed values | Default value |
|
||||
+=========================+=========================================================================================================================================================================================+=================+
|
||||
| ``PHP_SERVER`` | ``php-fpm-5.2`` |br| ``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`` |br| ``php-fpm-7.3`` | ``php-fpm-7.1`` |
|
||||
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+
|
||||
|
||||
.. important::
|
||||
**PHP 5.2** is available to use, but it is not officially supported. The Devilbox intranet does
|
||||
not work with this version as PHP 5.2 does not support namespaces. Furthermore PHP 5.2 does only
|
||||
work with Apache 2.4, Nginx stable and Nginx mainline. It does not work with Apache 2.2.
|
||||
**Use at your own risk.**
|
||||
|
||||
|
||||
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:
|
||||
|
||||
.. code-block:: bash
|
||||
:caption: .env
|
||||
:emphasize-lines: 7
|
||||
:emphasize-lines: 9
|
||||
|
||||
host> grep PHP_SERVER .env
|
||||
|
||||
#PHP_SERVER=php-fpm-5.2
|
||||
#PHP_SERVER=php-fpm-5.3
|
||||
#PHP_SERVER=php-fpm-5.4
|
||||
#PHP_SERVER=php-fpm-5.5
|
||||
|
@ -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'
|
||||
|
||||
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-fpm-5.2/
|
||||
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.5/
|
||||
|
@ -24,6 +24,7 @@ See the directory structure for PHP configuration directories inside ``./cfg/``
|
||||
|
||||
host> ls -l path/to/devilbox/cfg/ | grep 'php-ini'
|
||||
|
||||
drwxr-xr-x 2 cytopia cytopia 4096 Mar 5 21:53 php-ini-5.2/
|
||||
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.5/
|
||||
|
@ -77,8 +77,9 @@ It will look something like this:
|
||||
|
||||
.. code-block:: bash
|
||||
:caption: .env
|
||||
:emphasize-lines: 6
|
||||
:emphasize-lines: 7
|
||||
|
||||
#PHP_SERVER=5.2
|
||||
#PHP_SERVER=5.3
|
||||
#PHP_SERVER=5.4
|
||||
#PHP_SERVER=5.5
|
||||
@ -99,8 +100,9 @@ In order to enable PHP 5.5, you would change the ``.env`` file like this:
|
||||
|
||||
.. code-block:: bash
|
||||
:caption: .env
|
||||
:emphasize-lines: 3
|
||||
:emphasize-lines: 4
|
||||
|
||||
#PHP_SERVER=5.2
|
||||
#PHP_SERVER=5.3
|
||||
#PHP_SERVER=5.4
|
||||
PHP_SERVER=5.5
|
||||
@ -216,8 +218,9 @@ Consider this ``.env`` file:
|
||||
|
||||
.. code-block:: bash
|
||||
:caption: .env
|
||||
:emphasize-lines: 3,5
|
||||
:emphasize-lines: 4,6
|
||||
|
||||
#PHP_SERVER=5.2
|
||||
#PHP_SERVER=5.3
|
||||
#PHP_SERVER=5.4
|
||||
PHP_SERVER=5.5
|
||||
|
@ -219,6 +219,11 @@ DEVILBOX_UI_ENABLE=1
|
||||
###
|
||||
### 1.1 Choose PHP Server Image
|
||||
###
|
||||
### Note: PHP 5.2 is not officially supported. Intranet won't work (due to lack of namespace support).
|
||||
### PHP 5.2 only works with Apache 2.4, Nginx stable and Nginx mainline.
|
||||
### Use at your own risk.
|
||||
###
|
||||
#PHP_SERVER=5.2
|
||||
#PHP_SERVER=5.3
|
||||
#PHP_SERVER=5.4
|
||||
#PHP_SERVER=5.5
|
||||
|
Loading…
Reference in New Issue
Block a user