Formulas to set up and configure php and various php libraries.
Note
See the full Salt Formulas installation and usage instructions.
Installs the php package.
Installs the php-apc package. Disabled by default on opensuse need server:php repo
Installs the php-apcu package. Disabled by default on opensuse need server:php repo
Installs the php-adodb package.
Installs the php-cgi package. Disabled on opensuse not available, only fastcgi
Installs the php-cli package.
Installs [composer](https://getcomposer.org) and keeps it updated.
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.
Installs the php-fpm package, starts the service, and enables it.
Installs the php-gd package.
Installs the php-intl package.
Installs the php-imagick package. Disabled on opensuse not available.
Installs the php-imap package.
Installs the php-json package.
Installs the php-ldap package.
Installs the php-mbstring package.
Installs the php-mcrypt package.
Installs the php-memcache package. Disabled on opensuse need server:php:extensions repo
Installs the php-memcached package. Disabled on opensuse need server:php:extensions repo
Installs the php-mysql package.
Installs the php-mysqlnd package. Disabled on opensuse no package.
Installs the php-pear package.
Installs the php-redis package. Disabled on opensuse need server:php:extensions repo
Installs the php-pgsql package.
Installs the php-soap package.
Installs the php-sqlite package,
Installs the php-suhosin package.
Installs the php-mongo package. Disabled on opensuse need server:php:extensions repo
Installs the php-sybase package for Sybase/MS-SQL. Debian / Ubuntu as RedHat has no similar package.
Installs the php-xml package.
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.ngphp.ng.adodbphp.ng.apache2php.ng.apache2.iniphp.ng.apache2.installphp.ng.apcphp.ng.apcuphp.ng.cgiphp.ng.cliphp.ng.cli.iniphp.ng.cli.installphp.ng.composerphp.ng.curlphp.ng.gearmanphp.ng.fpmphp.ng.fpm.configphp.ng.fpm.installphp.ng.fpm.poolsphp.ng.fpm.pools_configphp.ng.fpm.servicephp.ng.gdphp.ng.geoipphp.ng.gmpphp.ng.hhvmphp.ng.hhvm.configphp.ng.hhvm.installphp.ng.hhvm.repophp.ng.hhvm.servicephp.ng.imagickphp.ng.imapphp.ng.intlphp.ng.jsonphp.ng.ldapphp.ng.mbstringphp.ng.mcryptphp.ng.memcachephp.ng.memcachedphp.ng.mongophp.ng.mongodbphp.ng.mysqlphp.ng.mysqlndphp.ng.oauthphp.ng.pearphp.ng.pgsqlphp.ng.pspellphp.ng.redisphp.ng.snmpphp.ng.soapphp.ng.sqlitephp.ng.suhosinphp.ng.sybasephp.ng.xcachephp.ng.xcache.iniphp.ng.xcache.installphp.ng.xdebugphp.ng.xmlphp.ng.xslphp.ng.devphp.ng.gettextphp.ng.geshiphp.ng.mdb2php.ng.mdb2-driver-mysqlphp.ng.mdb2-driver-pgsqlphp.ng.seclibphp.ng.tidyphp.ng.tcpdfphp.ng.cache-litephp.ng.console-tablephp.ng.filterphp.ng.hashphp.ng.opensslphp.ng.pharphp.ng.ctypephp.ng.sessionphp.ng.posix
Installs the php package.
Installs the php-adodb package.
Meta-state that combines php.ng.apache2.install and php.ng.apache2.ini.
Manages the apache2 php.ini file
Installs the apache2 and libapache2-mod-php5 package. Debian Only.
Installs the php-apc package. Disabled on opensuse need server:php repo
Installs the php-apcu package. Disabled on opensuse need server:php repo
Installs the php-cgi package. Disabled on opensuse only php5-fastcgi available.
Meta-state that combines php.ng.cli.install and php.ng.cli.ini.
Manages the php-cli ini file.
Installs the php-cli package.
Installs [composer](https://getcomposer.org) and keeps it updated.
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.
Installs the php-gearman package.
Meta-state that combines all php.ng.fpm states.
Manages the (non-pool) php-fpm config files.
Installs the php-fpm package.
Meta-state that combines php.ng.fpm.service and php.ng.fpm.pools_config
Manages php-fpm pool config files.
Manages the php-fpm service.
Installs the php-gd package.
Installs the php-geoip package.
Installs the php-gmp package. Debian Only.
Meta-state that combines php.ng.hhvm states
Manages the php-hhvm config files
Installs the php-hhvm package
Configures the hhvm repo for debian/ubuntu
Manages the php-hhvm service.
Installs the php-imagick package. Disabled on opensuse no package.
Installs the php-imap package.
Installs the php-intl package.
Installs the php-json package.
Installs the php-ldap package.
Installs the php-mbstring package.
Installs the php-mcrypt package.
Installs the php-memcache package. Disabled on opensuse need server:php:extensions repo
Installs the php-memcached package. Disabled on opensuse need server:php:extensions repo
Installs the php-mongo package.
Installs the php-mongodb package.
Installs the php-mysql package.
Installs the php-mysqlnd package. Disabled on opensuse no package.
Installs the php-oauth package.
Installs the php-pear package.
Installs the php-pgsql package.
Installs the php-pspell package.
Installs the php-redis package. Disabled on opensuse need server:php:extensions repo
Installs the php-snmp package.
Installs the php-soap package.
Installs the php-sqlite package,
Installs the php-suhosin package.
Installs the php-sybase package.
Meta-state that combines php.ng.xcache.install and php.ng.xcache.ini.
Manages the php-xcache ini file
Installs the php-xcache package. Disabled on opensuse need server:php:extensions repo
Installs the php-xdebug package.
Installs the php-xml package.
Installs the php-xsl package.
Installs the php5-dev and build-essential package.
Installs the php-gettext package.
Installs the php-geshi package.
Installs the php-mdb2 package.
Installs the php-mdb2-driver-mysql package.
Installs the php-mdb2-driver-pgsql package.
Installs the php-seclib package.
Installs the php-tidy package.
Installs the php-tcpdf package.
Installs the php-cache-lite package.
Installs the php-console-table package.
Installs the php-filter package.
Installs the php-hash package.
Installs the php-openssl package.
Installs the php-phar package.
Installs the php-ctype package.
Installs the php-session package.
Installs the php-posix package.