php-formula/README.rst
Niels Abspoel f5c967fb6c Improve config file handling hhvm.
In order to reuse the default structure of this formula
I changed the config a little bit to configure hhvm files.
2015-07-25 22:15:28 +02:00

6.5 KiB

php

Formulas to set up and configure php and various php libraries.

Available states

php

Installs the php package.

php.apc

Installs the php-apc package. Disabled by default on opensuse need server:php repo

php.apcu

Installs the php-apcu package. Disabled by default on opensuse need server:php repo

php.adodb

Installs the php-adodb package.

php.cgi

Installs the php-cgi package. Disabled on opensuse not available, only fastcgi

php.cli

Installs the php-cli package.

php.composer -----------

Installs [composer](https://getcomposer.org) and keeps it updated.

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.

php.intl

Installs the php-intl package.

php.imagick

Installs the php-imagick package. Disabled on opensuse not available.

php.imap

Installs the php-imap package.

php.json

Installs the php-json package.

php.ldap

Installs the php-ldap package.

php.mbstring

Installs the php-mbstring package.

php.mcrypt

Installs the php-mcrypt package.

php.memcache

Installs the php-memcache package. Disabled on opensuse need server:php:extensions repo

php.memcached

Installs the php-memcached package. Disabled on opensuse need server:php:extensions repo

php.mysql

Installs the php-mysql package.

php.mysqlnd

Installs the php-mysqlnd package. Disabled on opensuse no package.

php.pear

Installs the php-pear package.

php.redis ------------

Installs the php-redis package. Disabled on opensuse need server:php:extensions repo

php.pgsql

Installs the php-pgsql package.

php.soap

Installs the php-soap package.

php.sqlite

Installs the php-sqlite package,

php.suhosin

Installs the php-suhosin package.

php.mongo

Installs the php-mongo package. Disabled on opensuse need server:php:extensions repo

php.xml

Installs the php-xml package.

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.

php.ng

Installs the php package.

php.ng.adodb

Installs the php-adodb package.

php.ng.apc

Installs the php-apc package. Disabled on opensuse need server:php repo

php.ng.apcu

Installs the php-apcu package. Disabled on opensuse need server:php repo

php.ng.cgi

Installs the php-cgi package. Disabled on opensuse only php5-fastcgi available.

php.ng.cli

Meta-state that combines php.ng.cli.install and php.ng.cli.ini.

php.ng.cli.install

Installs the php-cli package.

php.ng.cli.ini

Manages the php-cli ini file.

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.

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.

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.

php.ng.gd

Installs the php-gd package.

php.ng.imagick

Installs the php-imagick package. Disabled on opensuse no package.

php.ng.imap

Installs the php-imap package.

php.ng.intl

Installs the php-intl package.

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. Disabled on opensuse need server:php:extensions repo

php.ng.memcached

Installs the php-memcached package. Disabled on opensuse need server:php:extensions repo

php.ng.mysql

Installs the php-mysql package.

php.ng.mysqlnd

Installs the php-mysqlnd package. Disabled on opensuse no package.

php.ng.pear

Installs the php-pear package.

php.ng.redis ---------------

Installs the php-redis package. Disabled on opensuse need server:php:extensions repo

php.ng.pgsql

Installs the php-pgsql package.

php.ng.soap

Installs the php-soap package.

php.ng.sqlite

Installs the php-sqlite package,

php.ng.suhosin

Installs the php-suhosin package.

php.ng.xml

Installs the php-xml package.