2014-01-03 07:10:51 +01:00
|
|
|
===
|
2013-06-13 00:09:57 +02:00
|
|
|
php
|
2014-01-03 07:10:51 +01:00
|
|
|
===
|
2013-07-30 00:37:17 +02:00
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
Formulas to set up and configure php and various php libraries.
|
2013-07-30 00:37:17 +02:00
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
.. note::
|
2013-07-30 00:37:17 +02:00
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
See the full `Salt Formulas installation and usage instructions
|
2014-07-29 01:18:08 +02:00
|
|
|
<http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
|
2013-07-30 00:37:17 +02:00
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
Available states
|
|
|
|
================
|
2013-07-30 00:37:17 +02:00
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
.. contents::
|
|
|
|
:local:
|
2013-07-30 00:37:17 +02:00
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
``php``
|
|
|
|
-------
|
|
|
|
|
|
|
|
Installs the php package.
|
|
|
|
|
|
|
|
``php.apc``
|
|
|
|
-----------
|
|
|
|
|
|
|
|
Installs the php-apc package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled by default on opensuse need server:php repo
|
2014-01-03 07:10:51 +01:00
|
|
|
|
2015-04-25 12:35:29 +02:00
|
|
|
``php.apcu``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the php-apcu package.
|
|
|
|
Disabled by default on opensuse need server:php repo
|
|
|
|
|
2014-02-17 17:11:16 +01:00
|
|
|
``php.adodb``
|
2014-06-06 19:14:44 +02:00
|
|
|
-------------
|
2014-02-17 17:11:16 +01:00
|
|
|
|
2014-04-09 16:53:26 +02:00
|
|
|
Installs the php-adodb package.
|
2014-04-09 16:52:01 +02:00
|
|
|
|
2014-04-09 20:06:30 +02:00
|
|
|
``php.cgi``
|
2014-06-06 19:14:44 +02:00
|
|
|
-----------
|
2014-04-09 20:06:30 +02:00
|
|
|
|
|
|
|
Installs the php-cgi package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse not available, only fastcgi
|
2014-04-09 20:06:30 +02:00
|
|
|
|
2014-04-09 16:52:01 +02:00
|
|
|
``php.cli``
|
2014-06-06 19:14:44 +02:00
|
|
|
-----------
|
2014-04-09 16:52:01 +02:00
|
|
|
|
2014-04-09 16:53:26 +02:00
|
|
|
Installs the php-cli package.
|
2014-02-17 17:11:16 +01:00
|
|
|
|
2015-02-20 11:12:19 +01:00
|
|
|
``php.composer``
|
|
|
|
-----------
|
|
|
|
|
|
|
|
Installs [composer](https://getcomposer.org) and keeps it updated.
|
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
``php.curl``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the php5-curl package on Debian, and ensures that curl itself is
|
|
|
|
installed for RedHat systems, this is due to the curl libs being provided by
|
|
|
|
php-common, which will get installed with the main php package.
|
|
|
|
|
|
|
|
``php.fpm``
|
|
|
|
-----------
|
|
|
|
|
|
|
|
Installs the php-fpm package, starts the service, and enables it.
|
|
|
|
|
|
|
|
``php.gd``
|
|
|
|
----------
|
|
|
|
|
|
|
|
Installs the php-gd package.
|
|
|
|
|
2014-08-11 03:51:16 +02:00
|
|
|
``php.intl``
|
2014-08-21 12:22:20 +02:00
|
|
|
------------
|
2014-08-11 03:51:16 +02:00
|
|
|
|
|
|
|
Installs the php-intl package.
|
|
|
|
|
2014-02-17 17:11:16 +01:00
|
|
|
``php.imagick``
|
2014-06-06 19:14:44 +02:00
|
|
|
---------------
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
Installs the php-imagick package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse not available.
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
``php.imap``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the php-imap package.
|
|
|
|
|
2014-05-22 16:43:58 +02:00
|
|
|
``php.json``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the php-json package.
|
|
|
|
|
2014-02-17 17:11:16 +01:00
|
|
|
``php.ldap``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the php-ldap package.
|
|
|
|
|
|
|
|
``php.mbstring``
|
2014-06-06 19:14:44 +02:00
|
|
|
----------------
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
Installs the php-mbstring package.
|
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
``php.mcrypt``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-mcrypt package.
|
|
|
|
|
2014-02-17 17:11:16 +01:00
|
|
|
``php.memcache``
|
2014-06-06 19:14:44 +02:00
|
|
|
----------------
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
Installs the php-memcache package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse need server:php:extensions repo
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
``php.memcached``
|
2014-06-06 19:14:44 +02:00
|
|
|
-----------------
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
Installs the php-memcached package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse need server:php:extensions repo
|
2014-02-17 17:11:16 +01:00
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
``php.mysql``
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Installs the php-mysql package.
|
|
|
|
|
2014-04-09 16:43:58 +02:00
|
|
|
``php.mysqlnd``
|
2014-06-06 19:14:44 +02:00
|
|
|
---------------
|
2014-04-09 16:43:58 +02:00
|
|
|
|
|
|
|
Installs the php-mysqlnd package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse no package.
|
2014-04-09 16:43:58 +02:00
|
|
|
|
2014-01-03 07:10:51 +01:00
|
|
|
``php.pear``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the php-pear package.
|
2014-02-17 17:11:16 +01:00
|
|
|
|
2014-12-17 10:53:35 +01:00
|
|
|
``php.redis``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the php-redis package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse need server:php:extensions repo
|
2014-12-17 10:53:35 +01:00
|
|
|
|
2014-02-17 17:11:16 +01:00
|
|
|
``php.pgsql``
|
2014-06-06 19:14:44 +02:00
|
|
|
-------------
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
Installs the php-pgsql package.
|
|
|
|
|
|
|
|
``php.soap``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the php-soap package.
|
|
|
|
|
2015-03-06 15:42:00 +01:00
|
|
|
``php.sqlite``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-sqlite package,
|
|
|
|
|
2014-02-17 17:11:16 +01:00
|
|
|
``php.suhosin``
|
2014-06-06 19:14:44 +02:00
|
|
|
---------------
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
Installs the php-suhosin package.
|
|
|
|
|
2014-08-21 12:22:20 +02:00
|
|
|
``php.mongo``
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Installs the php-mongo package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse need server:php:extensions repo
|
2014-08-21 12:22:20 +02:00
|
|
|
|
2014-02-17 17:11:16 +01:00
|
|
|
``php.xml``
|
2014-06-06 19:14:44 +02:00
|
|
|
-----------
|
2014-02-17 17:11:16 +01:00
|
|
|
|
|
|
|
Installs the php-xml package.
|
2014-06-06 19:14:44 +02:00
|
|
|
|
|
|
|
Next-generation, alternate approach
|
|
|
|
===================================
|
|
|
|
|
|
|
|
The following states provide an alternate approach to managing PHP and FPM
|
|
|
|
pools, as well as code organization. Please provide feedback by filing issues,
|
|
|
|
discussing in ``#salt`` in Freenode and the mailing list as normal.
|
|
|
|
|
|
|
|
**Note:** php.ng states require the merge parameter of salt.modules.pillar.get(),
|
|
|
|
first available in the Helium release.
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
``php.ng``
|
|
|
|
----------
|
|
|
|
|
|
|
|
Installs the php package.
|
|
|
|
|
|
|
|
``php.ng.adodb``
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Installs the php-adodb package.
|
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
``php.ng.apache2``
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Meta-state that combines `php.ng.apache2.install`_ and `php.ng.apache2.ini`_.
|
|
|
|
|
|
|
|
``php.ng.apache2.ini``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Manages the apache2 php.ini file
|
|
|
|
|
|
|
|
``php.ng.apache2.install``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the apache2 and libapache2-mod-php5 package. Debian Only.
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.apc``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-apc package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse need server:php repo
|
2014-06-06 19:14:44 +02:00
|
|
|
|
2015-04-25 12:35:29 +02:00
|
|
|
``php.ng.apcu``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-apcu package.
|
|
|
|
Disabled on opensuse need server:php repo
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.cgi``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-cgi package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse only php5-fastcgi available.
|
2014-06-06 19:14:44 +02:00
|
|
|
|
|
|
|
``php.ng.cli``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Meta-state that combines `php.ng.cli.install`_ and `php.ng.cli.ini`_.
|
|
|
|
|
|
|
|
``php.ng.cli.ini``
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Manages the php-cli ini file.
|
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
``php.ng.cli.install``
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
Installs the php-cli package.
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.curl``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php5-curl package on Debian, and ensures that curl itself is
|
|
|
|
installed for RedHat systems, this is due to the curl libs being provided by
|
|
|
|
php-common, which will get installed with the main php package.
|
|
|
|
|
2016-07-06 11:31:15 +02:00
|
|
|
``php.ng.gearman``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-gearman package.
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.fpm``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Meta-state that combines all php.ng.fpm states.
|
|
|
|
|
|
|
|
``php.ng.fpm.config``
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
Manages the (non-pool) php-fpm config files.
|
|
|
|
|
|
|
|
``php.ng.fpm.install``
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
Installs the php-fpm package.
|
|
|
|
|
|
|
|
``php.ng.fpm.pools``
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
Meta-state that combines `php.ng.fpm.service`_ and `php.ng.fpm.pools_config`_
|
|
|
|
|
|
|
|
``php.ng.fpm.pools_config``
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
Manages php-fpm pool config files.
|
|
|
|
|
|
|
|
``php.ng.fpm.service``
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
Manages the php-fpm service.
|
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
``php.ng.gd``
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Installs the php-gd package.
|
|
|
|
|
|
|
|
``php.ng.geoip``
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
Installs the php-geoip package.
|
|
|
|
|
|
|
|
``php.ng.gmp``
|
|
|
|
----------
|
|
|
|
|
|
|
|
Installs the php-gmp package. Debian Only.
|
|
|
|
|
2015-07-25 22:15:28 +02:00
|
|
|
``php.ng.hhvm``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Meta-state that combines php.ng.hhvm states
|
|
|
|
|
|
|
|
``php.ng.hhvm.config``
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
Manages the php-hhvm config files
|
|
|
|
|
|
|
|
``php.ng.hhvm.install``
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
Installs the php-hhvm package
|
|
|
|
|
|
|
|
``php.ng.hhvm.repo``
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
Configures the hhvm repo for debian/ubuntu
|
|
|
|
|
|
|
|
``php.ng.hhvm.service``
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
Manages the php-hhvm service.
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.imagick``
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Installs the php-imagick package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse no package.
|
2014-06-06 19:14:44 +02:00
|
|
|
|
|
|
|
``php.ng.imap``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-imap package.
|
|
|
|
|
2014-08-11 03:51:16 +02:00
|
|
|
``php.ng.intl``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-intl package.
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.json``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-json package.
|
|
|
|
|
|
|
|
``php.ng.ldap``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-ldap package.
|
|
|
|
|
|
|
|
``php.ng.mbstring``
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Installs the php-mbstring package.
|
|
|
|
|
|
|
|
``php.ng.mcrypt``
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Installs the php-mcrypt package.
|
|
|
|
|
|
|
|
``php.ng.memcache``
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Installs the php-memcache package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse need server:php:extensions repo
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.memcached``
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
Installs the php-memcached package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse need server:php:extensions repo
|
|
|
|
|
2016-12-07 22:10:19 +01:00
|
|
|
``php.ng.mongo``
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
Installs the php-mongo package.
|
|
|
|
|
|
|
|
``php.ng.mongodb``
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
Installs the php-mongodb package.
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.mysql``
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Installs the php-mysql package.
|
|
|
|
|
|
|
|
``php.ng.mysqlnd``
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Installs the php-mysqlnd package.
|
2015-03-09 22:22:48 +01:00
|
|
|
Disabled on opensuse no package.
|
2014-06-06 19:14:44 +02:00
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
``php.ng.oauth``
|
2014-06-06 19:14:44 +02:00
|
|
|
---------------
|
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
Installs the php-oauth package.
|
2014-06-06 19:14:44 +02:00
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
``php.ng.pear``
|
2014-12-17 10:53:35 +01:00
|
|
|
---------------
|
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
Installs the php-pear package.
|
2014-12-17 10:53:35 +01:00
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.pgsql``
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Installs the php-pgsql package.
|
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
``php.ng.pspell``
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Installs the php-pspell package.
|
|
|
|
|
|
|
|
``php.ng.redis``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-redis package.
|
|
|
|
Disabled on opensuse need server:php:extensions repo
|
|
|
|
|
2016-06-28 11:48:37 +02:00
|
|
|
``php.ng.snmp``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-snmp package.
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.soap``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Installs the php-soap package.
|
|
|
|
|
2015-03-06 15:42:00 +01:00
|
|
|
``php.ng.sqlite``
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Installs the php-sqlite package,
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.suhosin``
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Installs the php-suhosin package.
|
|
|
|
|
2015-10-22 17:20:28 +02:00
|
|
|
``php.ng.xcache``
|
|
|
|
---------------
|
|
|
|
|
2015-10-23 23:35:05 +02:00
|
|
|
Meta-state that combines `php.ng.xcache.install`_ and `php.ng.xcache.ini`_.
|
|
|
|
|
|
|
|
``php.ng.xcache.ini``
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Manages the php-xcache ini file
|
|
|
|
|
|
|
|
``php.ng.xcache.install``
|
|
|
|
---------------
|
|
|
|
|
2015-10-22 17:20:28 +02:00
|
|
|
Installs the php-xcache package.
|
|
|
|
Disabled on opensuse need server:php:extensions repo
|
|
|
|
|
2015-10-22 18:44:42 +02:00
|
|
|
``php.ng.xdebug``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-xdebug package.
|
|
|
|
|
2014-06-06 19:14:44 +02:00
|
|
|
``php.ng.xml``
|
|
|
|
--------------
|
|
|
|
|
2014-07-29 01:18:08 +02:00
|
|
|
Installs the php-xml package.
|
2015-10-22 18:44:42 +02:00
|
|
|
|
|
|
|
``php.ng.xsl``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-xsl package.
|
2016-07-13 09:59:30 +02:00
|
|
|
|
|
|
|
``php.ng.dev``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php5-dev and build-essential package.
|
|
|
|
|
|
|
|
``php.ng.gettext``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-gettext package.
|
|
|
|
|
|
|
|
``php.ng.geshi``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-geshi package.
|
|
|
|
|
|
|
|
``php.ng.mdb2``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-mdb2 package.
|
|
|
|
|
|
|
|
``php.ng.mdb2-driver-mysql``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-mdb2-driver-mysql package.
|
|
|
|
|
|
|
|
``php.ng.mdb2-driver-pgsql``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-mdb2-driver-pgsql package.
|
|
|
|
|
|
|
|
``php.ng.seclib``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-seclib package.
|
|
|
|
|
|
|
|
``php.ng.tidy``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-tidy package.
|
|
|
|
|
|
|
|
``php.ng.tcpdf``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-tcpdf package.
|
|
|
|
|
|
|
|
``php.ng.cache-lite``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-cache-lite package.
|
|
|
|
|
|
|
|
``php.ng.console-table``
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Installs the php-console-table package.
|