Set up PHP Cli in Ubuntu systems (using Ondřej Surý's ppa).
software-properties-common
(will be installed)dirmngr
(will be installed)apt-transport-https
(will be installed)
-
php_cli_ondrej_version
: [default:8.1
]: Version to install (e.g.7.0
,7.1
,7.2
,7.3
,7.4
,8.0
,8.1
and8.2
) -
php_cli_ondrej_install
: [default:[]
]: (Additional) Packages to install -
php_cli_ondrej_update_alternatives
: [default:true
]: Whether to runupdate-alternatives
-
php_cli_ondrej_precision
: [default:14
]: The number of significant digits displayed in floating point numbers -
php_cli_ondrej_serialize_precision
: [default:17
,-1
since7.1
]: When floats & doubles are serialized store serialize_precision significant digits after the floating point -
php_cli_ondrej_disable_functions
: [default:[]
]: This directive allows you to disable certain functions for security reasons -
php_cli_ondrej_max_execution_time
: [default:0
]: Maximum execution time of each script, in seconds -
php_cli_ondrej_date_timezone
: [optional]: The timezone used by all date/time functions -
php_cli_ondrej_memory_limit
: [default:-1
]: Maximum amount of memory a script may consume -
php_cli_ondrej_zend_assertions
: [default:-1
]: When set to1
, assertion code will be generated and executed (development mode
). When set to0
, assertion code will be generated but it will be skipped (not executed) at runtime. When set to-1
, assertion code will not be generated, making the assertions zero-cost (production mode
) (since7.0
) -
php_cli_ondrej_assert_active
: [optional]: Enableassert()
evaluation -
php_cli_ondrej_assert_exception
: [optional]: Issue anAssertionError
exception for the failed assertion (since7.0
) -
php_cli_ondrej_assert_warning
: [optional]: Issue a PHP warning for each failed assertion -
php_cli_ondrej_assert_bail
: [optional]: Terminate script execution on failed assertions -
php_cli_ondrej_assert_callback
: [optional]: User function to call on failed assertions -
php_cli_ondrej_assert_quiet_eval
: [optional]: Use the current setting oferror_reporting()
during assertion expression evaluation (removed as of8.0
) -
php_cli_ondrej_error_reporting
: [default:E_ALL & ~E_DEPRECATED & ~E_STRICT
]: This directive informs PHP of which errors, warnings and notices you would like it to take action for -
php_cli_ondrej_openssl_cafile
: [optional]: The location of a Certificate Authority (CA) file on the local filesystem (since5.6
) -
php_cli_ondrej_openssl_capath
: [optional]: The location of a Certificate Authority (CA) directory on the local filesystem (since5.6
) -
php_cli_ondrej_mods_present
: [default:[{name: json}, {name: xml}, {name: readline}, {name: mysql}, {name: memcache}, {name: memcached}, {name: msgpack}, {name: mstring}, {name: mcrypt}, {name: gd}, {name: curl}]
]: Modules to install (and enable) -
php_cli_ondrej_mods_present.{n}.name
: [required]: The identifier of the module (e.g.curl
) -
php_cli_ondrej_mods_present.{n}.dependencies
: [optional: default:[]
]: Packages needed by the module (e.g.php7.1-curl
) -
php_cli_ondrej_mods_present.{n}.state
: [optional, defaultenabled
]: Modules to disable (e.g.{name: xdebug, state: disabled}
) -
php_cli_ondrej_mods_absent
: [default:[{name: opcache}]
]: Modules to disable -
php_cli_ondrej_mods_absent.{n}.name
: [required]: The identifier of the module (e.g.opcache
)
None
---
- hosts: all
roles:
- oefenweb.php-cli-ondrej
---
- hosts: all
roles:
- role: oefenweb.php-cli-ondrej
php_cli_ondrej_version: 7.0
php_cli_ondrej_update_alternatives: false
- role: oefenweb.php-cli-ondrej
php_cli_ondrej_version: 5.6
MIT
Mischa ter Smitten
Are welcome!